使用旧版 macOS 上提供的协同设计版本签名的应用程序(例如 Catalina (10.15))将无法在 iOS 15 上运行,因为您可以安装的最新版本是 Xcode 12.4。
Xcode 12.5 似乎改变了协同设计的行为。安装时出现错误消息:
不再支持代码签名版本
有解决方法吗?
我正在尝试为iPhone应用程序设置自动构建服务器.我希望能够安装夜间adhoc测试版,以便测试人员可以跟踪开发.
我已成功设置xcode xcode来执行adhoc构建,我也可以从命令行启动构建:
xcodebuild -configuration AdHoc -sdk iphoneos2.2干净的构建
我遇到的问题是,以下行无法从分叉终端(使用nohup或屏幕)工作,并且失败并出现以下情况
CodeSign错误:代码签名标识'iPhone Distribution:XXXXX'与您的钥匙串中的任何代码签名证书都不匹配.添加到钥匙串后,触摸文件或清理项目以继续.
我在我的shell和nohup或屏幕中检查了我的环境变量,但没有找到线索.我想我的问题是分叉终端无法访问钥匙串,但我不知道如何允许它.
谢谢你的帮助
我正在使用xcodebuild
命令行编译我的iPhone应用程序.有没有办法传递某种选项来设置配置文件?一般来说,关于xcodebuild的信息似乎不多.
下面是我的构建脚本(不使用xcodebuild插件).
它像解锁命令一样,并没有真正成功.当我尝试从命令行运行codesign时
codesign -f -s "iPhone Developer: mycert" -v sample.app/ --keychain /Users/Shared/Jenkins/Library/Keychains/JenkinsCI.keychain
Run Code Online (Sandbox Code Playgroud)
我明白了
CSSM_SignData returned: 000186AD
sample.app/: unknown error -2070=fffffffffffff7ea
Run Code Online (Sandbox Code Playgroud)
虽然我不确定我是否正确地从命令行模拟,因为你可以充其量
sudo -u jenkins bash
xcodebuild ONLY_ACTIVE_ARCH="NO" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" -scheme "MySchemeName" CONFIGURATION_BUILD_DIR="`pwd`"
security list-keychains -s /Users/Shared/Jenkins/Library/Keychains/JenkinsCI.keychain
+ security default-keychain -d user -s /Users/Shared/Jenkins/Library/Keychains/JenkinsCI.keychain
+ security unlock-keychain -p jenkins /Users/Shared/Jenkins/Library/Keychains/JenkinsCI.keychain
+ security list-keychains
"/Users/Shared/Jenkins/Library/Keychains/JenkinsCI.keychain"
"/Library/Keychains/System.keychain"
+ security default-keychain
"/Users/Shared/Jenkins/Library/Keychains/JenkinsCI.keychain"
+ codesign -f -s '$IDENTITY_GOES_HERE.' -v sample.app/
sample.app/: User interaction is not allowed.
Run Code Online (Sandbox Code Playgroud)
任何帮助是极大的赞赏.
我试图在Jenkins上运行自动xcodebuild,但我遇到了错误
不允许用户交互.命令/ usr/bin/codesign失败,退出代码为1
我已经引用了"不允许用户交互"尝试使用codesign和其他类似线程签署OSX应用程序,但没有一个解决方案似乎能够正确地修复错误.
这是我已经尝试过的:
我已经允许所有项目访问钥匙串,并且我已经特别添加了代码签名到"始终允许"列表(在此处完成/sf/answers/1584652751/)
我已经将钥匙串设置为不通过Keychain Access的设置和命令自动锁定超时
security set-keychain-settings -t 3600 -l <KEYCHAIN>
Run Code Online (Sandbox Code Playgroud)我试过打电话
codesign --sign <CODE SIGN IDENTITY> --force ...
Run Code Online (Sandbox Code Playgroud)
在项目编译之前(更具体地说,这个解决方案/sf/answers/1414567311/),虽然这成功地构建了项目,但我认为编译前的协同设置是正确或可靠的.(编辑:从jenkins运行时也失败了)
以下是我正在执行的命令:
security unlock-keychain -p <PASSWORD> <KEYCHAIN>
xcodebuild -scheme <SCHEME> -workspace <WORKSPACE> -derivedDataPath <BUILD DIRECTORY> -configuration <CONFIGURATION> "CONFIGURATION_BUILD_DIR=<BUILD DIRECTORY>" "CODE_SIGN_IDENTITY=<CODE SIGN ID>" "PROVISIONING_PROFILE=<PROVISIONING PROFILE>" clean build
Run Code Online (Sandbox Code Playgroud)
有趣的是要在机器上构建项目使用上面的命令,但尝试通过ssh(和jenkins)运行完全相同的命令会导致错误.
在此先感谢您的帮助!
我一直在调查使用Xcode Server进行CI.我已经解决了一些问题,但现在有一个困扰我的问题.
构建似乎工作正常,但在测试阶段挂起,并在日志的底部生成:
2015-11-25 14:44:45.650 xcodebuild[58280:821560] iPhoneSimulator: D7097422-C058-44DB-A275-CE1A44B11023: Executable terminated at path: /Applications/Xcode7.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest (status = 6)
Sampling process 58280 for 10 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Sample analysis of process 58280 written to file /Library/Developer/XcodeServer/Integrations/Integration-269b1638e732255aefa82f1688077c72/58280.sample
sample[59879]: sample cannot find any existing process you have access to which has a name like 'Interface Builder Cocoa Touch Tool'; try running with `sudo`.
sample[59880]: sample cannot find any existing process you have access to which …
Run Code Online (Sandbox Code Playgroud) 我的Xcode bot集成失败,出现以下错误.
断言:运行任务已终止,因为它没有产生太长时间的活动.
从日志的底部:
Sampling completed, processing symbols...
Sample analysis of process 4470 written to file /Library/Developer/XcodeServer/Integrations/Integration-ef7a2c98cd2307fc71923f1123ea23f7/4470.sample
sample[5774]: sample cannot find any existing process you have access to which has a name like 'Interface Builder Cocoa Touch Tool'; try running with `sudo`.
sample[5775]: sample cannot find any existing process you have access to which has a name like 'ibtool'; try running with `sudo`.
sample[5776]: sample cannot find any existing process you have access to which has a name like 'ibtoold'; …
Run Code Online (Sandbox Code Playgroud) 我想自动化目前在台式计算机 (Mac) 上完全手动的 iOS 应用程序构建过程。在 Gnu/Linux 机器上运行的中央构建服务器 Hudson/Jenkins 已经在组织基础架构中可用。
是否可以使用 Jenkins 构建这个 iOS 应用程序,使用像Jenkins 分布式构建这样的工具(因此将 Mac 机器配置为从属机器)?
你有任何例子,知道任何技术或替代方法吗?
我遇到了与此处描述完全相同的问题: “不允许用户交互”尝试使用 codesign 对 OSX 应用程序进行签名
所以现在我想将私钥访问控制更改为允许所有应用程序访问此项。当我选中此选项时,一切看起来都很好;我被要求输入管理员密码,然后窗口关闭。
但是,当我再次检查密钥的访问控制时,会再次检查其他选项;只允许应用程序列表...
xcode ×7
ios ×6
jenkins ×3
xcodebuild ×3
code-signing ×2
iphone ×2
macos ×2
xcode-server ×2
codesign ×1
hudson ×1
provisioning ×1
ssh ×1
xcode-bots ×1
xcode7 ×1