【发布时间】:2017-05-17 18:30:57
【问题描述】:
我在构建(归档)工作区时遇到问题,因为每当我运行时
xcodebuild archive -workspace app.xcworkspace/ -scheme app-scheme -configuration Production -derivedDataPath ./build -archivePath ./build/Products/app.xcarchive DEVELOPMENT_TEAM=AAABBBCCCD PROVISIONING_PROFILE_SPECIFIER="prod DistProf" CODE_SIGN_IDENTITY="iPhone Distribution"
我明白了
XXX does not support provisioning profiles. XXX does not support provisioning profiles, but provisioning profile YYY has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor.
对于每个 pod。
当我省略 DEVELOPMENT_TEAM 标志时,我得到了
Signing for "myAPP" requires a development team. Select a development team in the build settings editor that matches the selected profile "YYY".
所有 pod 都不需要签名。在命令行中指定标志似乎忽略了不同项目的设置。我不能使用自动签名,因为我不是颁发证书的团队的成员,我的机器上只有证书和配置文件,所以任何 fastlane 解决方案都不起作用。此外,我无法在项目中设置一次,因为它来自第 3 方公司,我们无法分享我们的个人资料。 如何将此项目设置为持续集成链?
【问题讨论】:
-
您找到解决方案了吗?我有完全相同的问题
-
我找到了一种解决方法,它不是那么优雅但有效。我使用两个附加标志
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO构建工作区,这导致 Xcode 不会抱怨签名。然后我使用floatsign 脚本对 ipa 文件进行签名,它就可以工作了。
标签: xcode continuous-integration cocoapods code-signing xcodebuild