尝试构建我的 Ionic 应用程序的 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
运行“ionic build ios”或“cordova build ios”命令时会出现此消息。我可以很好地模拟应用程序(“离子模拟 ios”)。当我尝试将它构建到实际设备(如连接到我的 mac 的 ipad)时,我在 XCode 中也会收到相同的消息。
首先,我不确定我是否理解“删除权利”或“切换到手动签名并通过从开发人员网站下载配置文件来解决问题”的含义。
我遇到的更大的问题是,当我从他们的模板创建一个简单的 Ionic 应用程序时,为什么我能够很好地构建到 iOS?
ionic start cutePuppyPics --v2
cd cutePuppyPics
ionic build ios --prod