这是我的.travis.yml:
language: objective-cxcode_workspace: "Mac linux USB Loader.xcworkspace"xcode_scheme: "Mac linux USB Loader"
这是错误(我已经编写了许多以前的引用Cocoapods的行,因为它们不相关:
Check dependencIEsCode Sign error: No code signing IDentitIEs found: No valID signing IDentitIEs (i.e. certificate and private key pair) matching the team ID “T47PR9EQY5” were found.解决方法 你尝试添加这个你travis.yml:
language: objective-cscript: - xcodebuild [DEFAulT_OPTIONS] CODE_SIGNING_required=NO
或者导入一个开发(如果你要在你的build上使用发行版),那么钥匙串的cert / key就可以复制你的团队配置配置文件,以使代码签名工作。喜欢这个:
language: objective-cbefore_script:- ./scripts/add-key.shscript: - xcodebuild [DEFAulT_OPTIONS] CODE_SIGNING_required=NO
add-key.sh
#!/bin/shKEY_CHAIN=ios-build.keychainsecurity create-keychain -p travis $KEY_CHAIN# Make the keychain the default so IDentitIEs are foundsecurity default-keychain -s $KEY_CHAIN# Unlock the keychainsecurity unlock-keychain -p travis $KEY_CHAIN# Set keychain locking timeout to 3600 secondssecurity set-keychain-settings -t 3600 -u $KEY_CHAIN# Add certificates to keychain and allow codesign to access themsecurity import ./scripts/certs/dist.cer -k $KEY_CHAIN -T /usr/bin/codesignsecurity import ./scripts/certs/dev.cer -k $KEY_CHAIN -T /usr/bin/codesignsecurity import ./scripts/certs/dist.p12 -k $KEY_CHAIN -P disTRIBUTION_KEY_PASSWORD -T /usr/bin/codesignsecurity import ./scripts/certs/dev.p12 -k $KEY_CHAIN -P DEVELOPMENT_KEY_PASSWORD -T /usr/bin/codesignecho "List keychains: "security List-keychainsecho " ****** "echo "find indentitIEs keychains: "security find-IDentity -p codesigning ~/library/Keychains/ios-build.keychainecho " ****** "# Put the provisioning profile in placemkdir -p ~/library/MobileDevice/Provisioning\ Profilescp "./scripts/profiles/iOSTeam_Provisioning_Profile_.mobileprovision" ~/library/MobileDevice/Provisioning\ Profiles/cp "./scripts/profiles/disTRIBUTION_PROfile_name.mobileprovision" ~/library/MobileDevice/Provisioning\ Profiles/总结
以上是内存溢出为你收集整理的xcode – Travis CI无法构建代码签名错误全部内容,希望文章能够帮你解决xcode – Travis CI无法构建代码签名错误所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)