Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missinig provisoning profile error when building an ios ionic app using xcode 10

Tags:

xcode

ionic3

I updated my version of xcode yesterday, and now when I build an ionic app that worked perfectly before I get the following error when validating the ipa:

Unable to process application at this time due to the following error: Missing Provisioning Profile - Apps must contain a provisioning profile in a file named embedded.mobileprovision..

How can I get the embedded.mobileprovision to be generated/ included?

Thanks, Yuval

like image 900
Yuval Avatar asked Sep 19 '18 19:09

Yuval


People also ask

Where are provisioning profiles stored on Mac?

All your provisioning profiles should be located in ~/Library/MobileDevice/Provisioning Profiles .


2 Answers

Currently the best workaround is to opt-out of the new build system:

If you're building on the command-line, you can specify --buildFlag="-UseModernBuildSystem=0":

Cordova CLI

cordova run ios --buildFlag='-UseModernBuildSystem=0'
cordova build ios --buildFlag='-UseModernBuildSystem=0'

Ionic CLI

ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0"
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"

If you're building with a build.json config file, you can add the following under the iOS release or debug config:

"buildFlag": [
  "-UseModernBuildSystem=0"
]

If you are opening the project in the Xcode IDE, you need to change the build system in Workspace Settings to "Legacy Build System" enter image description here enter image description here

Solution from here Worked For Me. Cheers.

like image 120
manish kumar Avatar answered Sep 30 '22 04:09

manish kumar


https://github.com/apache/cordova-ios/issues/407 has an answer, \just build with the --buildFlag="-UseModernBuildSystem=0" and adjust project settings to build using legacy mode.

like image 40
Yuval Avatar answered Sep 30 '22 02:09

Yuval