简体   繁体   中英

How to test Cordova/ionic app on iOS device?

I'm building an app which now runs fine in the iOS emulator, so I now want to test the app on an iOS device. I registered with the Apple Developer Program and ran ionic run ios , which ended with the following message:

Code Sign error: No provisioning profiles found: No non–expired provisioning profiles were found. CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 8.2'

So I opened XCode and went to Preferences > Accounts and added my Apple ID. I then clicked View Details... and then the refresh icon so it fetched two Signing Identities. The box below which should display the Provisioning Profiles is empty though:

在此输入图像描述

I then read this article on the Apple Developer site which explains that I need to:

  1. Set a bundle ID
  2. Assign my app to a team
  3. Create the Team Provisioning Profile

The bundle ID should supposedly be set in XCode. Because I am under the assumption that the bundle ID is set in my ionic config.xml file I'm unsure of how to proceed though.

Does anybody know how I can (preferably very easily) test my app on iOS devices? All tips are welcome!

What I did was to create a new project into Xcode, as soon it is created is showing the General tab, under Identity is showing a message saying that can not find the proper certified, something like that, and there is a button "Fix..." just click it, the passport is requested and you are done. I just try again and works. Xcode fixed my provisioning profiles sync for me.

Try this

  • Select Preferences from Xcode
  • Go to accounts and select agent name
  • Select view details to check status of your profiles
  • Select any profile and click refresh on corner below to update profiles. This should update your profile with expiration dates 在此输入图像描述

Go to project General and downgrade to 8.1 .

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM