I have an Ionic app I've developed using Visual Studio on a Windows machine. I now want to package the app for iOS deployment and I can't get the remote build on the Mac to work to save my life. I've wasted 3 days on this problem.
My build.json in my app is:
"ios": {
"release": {
"developmentTeam": "XXXXXXXXXX",
"codeSignIdentity": "iPhone Distribution",
"packageType": "app-store",
"provisioningProfile": "XXXXXXXX-XXXXX-XXXX-XXXX-XXXXXXXXXXXX",
"buildFlag": [
"EMBEDDED_CONTENT_CONTAINS_SWIFT = YES",
"ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO",
"LD_RUNPATH_SEARCH_PATHS = \"@executable_path/Frameworks\""
]
}
}
I created an iOS distribution certificate using the latest XCODE on my MacInCloud:
Here is the certificate in the developer portal:
And then in the developer portal, I created Provisioning Profile, then downloaded it to my PC, opened it, extracted the Provisioning Profile UUID and put it into my build.json:
So then I do a remote build using my Mac in Cloud and I can watch the build take place but then by the end of the long build process, I eventually get this error:
Error Domain=IDEProvisioningErrorDomain Code=9 ""Cincy Christmas.app" requires a provisioning profile." UserInfo={NSLocalizedDescription="Cincy Christmas.app" requires a provisioning profile., NSLocalizedRecoverySuggestion=Add a profile to the "provisioningProfiles" dictionary in your Export Options property list.}
I tried many different codeSignIdentity (iOS Distribution, iPhone Developer, etc...) and gotten multiple different errors (conflicting provisions, change to iPhone Developer, etc...) I've also updated Cordova (7.0) and Cordova-ios (4.5.3) to see if that would fix it. No dice.
What am I doing wrong? Any ideas? I'm at my wit's end!
I suspect the provisioning profile isn't installed on the Mac you're using to build the app with. There are two ways to install profiles:
Launch Xcode and navigate to Xcode > Preferences > Accounts, then click on "Download Manual Profiles" or "Download All Profiles" (depending on whether you're using Xcode 9 or an older version).
You can download the profile from the Apple Developer portal to that Mac, then double-click the profile. This will launch Xcode and, unfortunately, you don't get any further UI feedback.
Next, open your project in Xcode and inspect the the "Signing" group under "General" and verify that the correct profile is selected.