2

當試圖建立我的離子應用的iOS版本,它一直與下面的消息無法建立離子/科爾多瓦的iOS由於與權利文件或供應曲線

=== BUILD TARGET tlpApp OF PROJECT tlpApp WITH CONFIGURATION Debug === 

Check dependencies 

Automatic signing is unable to resolve an issue with the "tlpApp" target's 
entitlements file. Remove the entitlements or switch to manual signing and 
resolve the issue by downloading a provisioning profile from the developer 
website. 

Provisioning profile "iOS Team Provisioning Profile: com.ionicframework.tlpapp360156" 
doesn't include the aps-environment entitlement. 

Code signing is required for product type 'Application' in SDK 'iOS 10.2' 

Code signing is required for product type 'Application' in SDK 'iOS 10.2' 

** ARCHIVE FAILED ** 

The following build commands failed: 
    Check dependencies 
(1 failure) 

Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/kenkern/Workspaces/tlp/tlp2/tlp-ionic/platforms/ios/cordova/build-debug.xcconfig,-workspace,tlpApp.xcworkspace,-scheme,tlpApp,-configuration,Debug,-destination,generic/platform=iOS,-archivePath,tlpApp.xcarchive,archive,CONFIGURATION_BUILD_DIR=/Users/kenkern/Workspaces/tlp/tlp2/tlp-ionic/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/kenkern/Workspaces/tlp/tlp2/tlp-ionic/platforms/ios/build/sharedpch 

此消息出現失敗的問題當運行「ion build ios」或「cordova build ios」命令時。我可以模擬應用程序就好(「離子模擬ios」)。當我嘗試將其構建到實際設備時(例如連接到我的mac的ipad),我也會在XCode中收到相同的消息。

首先,我不知道我理解這意味着什麼或者「刪除的權利」或「切換到手動簽署和通過下載從開發商網站供應配置文件解決問題」。

更大的問題我也就是爲什麼我能當我創建像這樣的模板簡單離子的應用程序建立到iOS就好了?

ionic start cutePuppyPics --v2 
cd cutePuppyPics 
ionic build ios --prod 
+0

你有沒有解決這個問題?我遇到了這個問題。看起來,因爲我使用的是推送,自動簽名不起作用(儘管它正在爲另一個項目工作,因爲在某個位置爲應用程序ID指定了一個特定的團隊配置文件)。同樣,即使我在build.json中指定了配置文件GUID,cordova仍會創建啓用了自動簽名的項目。 –

回答

0

由於科爾多瓦V7.0.1中,我體驗定期這個問題(僅指定--release與構建命令時,只有與iOS)。

我(不理想)解決方案已被如下:

  1. 打開Xcode項目
  2. 取消選中Automatically manage signing
  3. 選擇一個合格的調試從下拉
  4. 預置簡檔選擇符合條件的發行供應從下拉式配置
  5. 運行cordova build ios --release
  6. 重新檢查Automatically manage signing(用於歸檔項目,併發送至iTunesConnect)
0

如果您在使用上的PhoneGap或離子項目推送通知,可以肯定的,如果推送通知是在capabilites啓用。