无法建立离子/科尔多瓦的iOS由于与权利文件或供应曲线

问题描述:

当试图建立我的离子应用的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仍会创建启用了自动签名的项目。 –

由于科尔多瓦V7.0.1中,我体验定期这个问题(仅指定--release与构建命令时,只有与iOS)。

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

  1. 打开Xcode项目
  2. 取消选中Automatically manage signing
  3. 选择一个合格的调试从下拉
  4. 预置简档选择符合条件的发行供应从下拉式配置
  5. 运行cordova build ios --release
  6. 重新检查Automatically manage signing(用于归档项目,并发送至iTunesConnect)

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