xcodebuild:检查依赖关系配置文件"iOS Team Provisioning Profile doesn't include the currently selected device "iPhone”
xcodebuild: Check dependencies Provisioning profile "iOS Team Provisioning Profile doesn't include the currently selected device "iPhone"
我正在尝试使用 xcodebuild 自动化我们的构建过程,并尝试在创建 IPA 之前存档构建,但我收到以下错误:
Check dependencies
Provisioning profile "iOS Team Provisioning Profile: com.meme.myApp" doesn't include the currently selected device "iPhone".
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
这就是我尝试创建存档的方式:
xcodebuild -workspace myApp.xcworkspace \
-scheme MyAccount \
-configuration Debug \
clean archive \
-archivePath $PWD/build/myApp.xcarchive \
DEVELOPMENT_TEAM=X12345ABCD
你们中有人知道我做错了什么吗?或者为什么会出错?
非常感谢你的帮助。
您应该使用 -destination 'generic/platform=iOS'
将通用构建目标添加到您的 xcodebuild 命令以消除此错误。或者干脆断开 iPhone 与机器的连接 :)
如果您的目标是生成 IPA,也强烈建议使用 Release 配置而不是 Debug 进行构建:
xcodebuild -workspace myApp.xcworkspace \
-scheme MyAccount \
-configuration Release \
-destination 'generic/platform=iOS'
clean archive \
-archivePath $PWD/build/myApp.xcarchive \
DEVELOPMENT_TEAM=X12345ABCD
我正在尝试使用 xcodebuild 自动化我们的构建过程,并尝试在创建 IPA 之前存档构建,但我收到以下错误:
Check dependencies
Provisioning profile "iOS Team Provisioning Profile: com.meme.myApp" doesn't include the currently selected device "iPhone".
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
Code signing is required for product type 'Application' in SDK 'iOS 10.3'
这就是我尝试创建存档的方式:
xcodebuild -workspace myApp.xcworkspace \
-scheme MyAccount \
-configuration Debug \
clean archive \
-archivePath $PWD/build/myApp.xcarchive \
DEVELOPMENT_TEAM=X12345ABCD
你们中有人知道我做错了什么吗?或者为什么会出错?
非常感谢你的帮助。
您应该使用 -destination 'generic/platform=iOS'
将通用构建目标添加到您的 xcodebuild 命令以消除此错误。或者干脆断开 iPhone 与机器的连接 :)
如果您的目标是生成 IPA,也强烈建议使用 Release 配置而不是 Debug 进行构建:
xcodebuild -workspace myApp.xcworkspace \
-scheme MyAccount \
-configuration Release \
-destination 'generic/platform=iOS'
clean archive \
-archivePath $PWD/build/myApp.xcarchive \
DEVELOPMENT_TEAM=X12345ABCD