When trying to build the iOS version of my Ionic app, it keeps failing with the following message
=== 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
This message occurs when running the "ionic build ios" or "cordova build ios" command. I can emulate the app just fine ("ionic emulate ios"). I also get the same message in XCode when I try to build it to an actual device (like an ipad connected to my mac).
First, I am not sure I understand what it means to either "remove the entitlements" or "switch to manual signing and resolve the issue by downloading a provisioning profile from the developer website".
The bigger question I have is why I am able to build to iOS just fine when I create a simple Ionic app from their template like such?
ionic start cutePuppyPics --v2
cd cutePuppyPics
ionic build ios --prod