Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"ionic run ios" How to add provisioning profiles

I wish to use Ionic to run my app on my iOs device with livereload enabled. According to the docs this should be easy:

ionic run ios --device -l

Of course I have to add provisioning profiles, but how am I supposed to do it?

I have the .mobileprovision and the .p12 of the certificate, but no matter what I do I still get this error when running the command:

No matching provisioning profiles found: No provisioning profiles with a valid signing identity (i.e. certificate and private key pair) matching the bundle identifier “<MyBundleID>” were found

How am I supposed to add my provisioning profiles? I'm not able to find any info about this in the framework docs.

Note: I can reploy the project using Xcode, but then I don't get the livereload. Plus I'd prefer doing everything from the CLI.

like image 540
Publicus Avatar asked Feb 17 '16 15:02

Publicus


People also ask

Where are iOS provisioning profiles stored?

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

How do I create a provisioning profile in keychain?

Upload keychain and provisioning profile files sectionClick on "Choose File" and select the keychain or provisioning profile file. 2. Click on "Upload". The keychain or provisioning profile file is automatically uploaded and stored on the jenkins.


1 Answers

You need to go into XCode and add those provisioning profiles to your device.

Set those provisioning profiles into the build process and add the profile to the device as well.

Though you may not be using Visual Studio, their explanation on the setup works for all methods of building Ionic apps.

The documentation is here, but to tell you what's going on:

  1. Make sure you have a developer account to make provisioning profiles.
  2. You would sign into Itunes Connect to add your device as a testing device
  3. Create an App ID
  4. Create a provisioning profile associated to that App ID
  5. Download the provisioning file into Xcode
  6. Add the provisioning file to your device via Xcode
  7. Run ionic run ios --device -l

That should do the trick.

Follow the setup guide by Microsoft starting at create your provisioning profile.

like image 112
Chris Avatar answered Sep 20 '22 08:09

Chris