Arvind Chourasiya
Arvind Chourasiya

Reputation: 17412

How to debug real iOS device from windows machine in Ionic

I am working on ionic application. I am able to debug app in real android device.

So, is it possible to debug ionic app in iPhone by connecting it through USB cable from CPU?

Upvotes: 0

Views: 1236

Answers (1)

Tachyon
Tachyon

Reputation: 2411

You require an iPhone and a mac with XCode installed.

If you are building for iOS, you’ll need to sign up for an Apple Developer account to test as a native app on an iPhone or iPad. Unfortunately, this costs $99 per year (don’t blame us!). Once you have an account and you have set up Xcode with your certificates to enable device testing, you’ll want to open the Xcode project from platforms/ios/ and do your testing from Xcode.

Source

As you have mentioned you do have an iPhone and Mac with XCode, see the steps below:

  1. Run ionic cordova prepare ios
  2. Copy across your platform/ios folder to your Mac
  3. Open the XCode project on your Mac that is located in the platform/ios folder.
  4. Select a device or target simulator in XCode and then click on the play button to start debugging.

Upvotes: 1

Related Questions