2017-07-27 52 views
0

我想使用xcodebuild自動化我們的構建過程並嘗試在創建IPA之前對構建進行存檔,但是我收到以下錯誤:xcodebuild:檢查依賴項配置文件「iOS團隊配置配置文件不包括當前選定的設備」iPhone「

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 

任何的你知道我做錯了或者錯誤的原因

我會非常感謝你的幫助。

+1

嘗試選擇「通用iOS設備」,或者將您的iPhone添加到您正在使用的開發人員團隊中。 –

+0

@ l'L'l,我在xcodebuild中使用終端 – user2924482

回答

1

您應該使用-destination 'generic/platform=iOS'將通用構建目標添加到xcodebuild命令中,以使此錯誤消失。或者簡單地從你的機器:)

如果你的目標是產生一個IPA,它也是非常明智的建立與釋放的配置,而不是調試斷開你的iPhone:

xcodebuild -workspace myApp.xcworkspace \ 
-scheme MyAccount \ 
-configuration Release \ 
-destination 'generic/platform=iOS' 
clean archive \ 
-archivePath $PWD/build/myApp.xcarchive \ 
DEVELOPMENT_TEAM=X12345ABCD