error: exportArchive: No profiles for 'io.ionic.starter' were found

前端 未结 4 1954
梦如初夏
梦如初夏 2021-01-19 18:42

I am trying to build my ionic 3 application and deploy and live reload on my device for that reason I am trying following command:

ionic cordova run ios --de         


        
相关标签:
4条回答
  • 2021-01-19 18:54

    I had the same issue and I solved it writing my email but instead of the "@"I wrote a quote "-". That gave me the certificate and now it is working.

    0 讨论(0)
  • 2021-01-19 18:58

    I had the same issue before and I fixed it by actually archive and validate the ios app using xcode GUI. That creates the provisioning profile you need if you check the "automatic managing signing". (P.s. If that fails to validate, then it is because of some other reason which you need to google) After all the necessary provisioning profiles are automatically created by xcode. Then, try run the command again. It should work this time! I hope that can solve your problem.

    0 讨论(0)
  • 2021-01-19 19:06

    To deploy and test an app on an iOS device you need to create a developer certificate and a provisioning profile.

    iOS developers need to generate a provisioning profile to code sign their apps for testing. The good news is that, as of iOS 9, you can develop and test your apps on your iOS device without a paid Apple Developer account. This is particularly great for developers who want to try out mobile development with Ionic since it saves the cost but still provides a lot of the features of having a full Apple Developer account. For a full breakdown of the features included, check out Apple’s docs.

    Basic Requirements to run your iOS app:

    • MacOS (10.10 or higher)
    • Xcode 7 or higher
    • iOS 9
    • A free Apple ID or paid Apple Developer account

    Need to Generate Certificate & Profile:

    Open your Xcode > Go to Preferences > Account > Add account

    Add Your Apple account credential:

    Now Come back to the ionic project and follow below steps:

    • Run a build (production or debug) of your app with below command

      $ionic cordova build ios --prod

    • Open the .xcworkspace file from path platforms/ios/ in Xcode.

    For Profile Selection from XCode follow below steps:

    Now Go to your App Setting (By clicking on App name in Left Menu panel)

    Check "Automatically manage signin" (by checking this Xcode will create a profile automatically)

    After setting all this now your app is ready to test on the device there are 2 ways to run your app on the device.

    1. Directly run your app from XCode by hitting on the play button on the top left corner.

    2. run $ionic cordova run ios --device through your ionic project terminal.

    Hope above steps will help to run your app on the iOS device.

    Useful links :

    1. How to deploy app on device (android & iOS)
    2. Apple Certificate Sign in flow
    0 讨论(0)
  • 2021-01-19 19:08

    just add quotes between the name bundle identifier!

    ex:

    "io.ionic.starter"

    or

    -io.ionic.starter-

    0 讨论(0)
提交回复
热议问题