最新的 xcodebuild archive 带了 CODE_SIGN_IDENTIFIER 和 PROVISION_PROFILE, 我们的项目里面有 pod。
xcodebuild archive \
-workspace AAA.xcworkspace \
-scheme AAA \
-configuration Debug \
-archivePath xxx \
PRODUCT_BUNDLE_IDENTIFIER=com.xxx.xxx \
CODE_SIGN_IDENTITY="iPhone Developer: xxx(xxx)" \
DEVELOPMENT_TEAM=XXX \
PROVISION_PROFILE=xxxxx \
PROVISION_PROFILE_SPECIFIER=ABCD
运行上面的 cmd 拿到 xcarchive,但是会报错。具体如下:
=== BUILD TARGET AFNetworking OF PROJECT Pods WITH CONFIGURATION Debug ===
Check dependencies
Code Signing Error: AFNetworking does not support provisioning profiles. AFNetworking does not support provisioning profiles, but provisioning profile ABCD has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor.
** ARCHIVE FAILED **
想问下有木有 ios 大侠知道是为什么的。