Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kumarandena/a69fa30431b549935f1584b5b103dfec to your computer and use it in GitHub Desktop.
Save kumarandena/a69fa30431b549935f1584b5b103dfec to your computer and use it in GitHub Desktop.
How to run the app in debug mode in an iOS real device
Run in iOS device
* tns run ios
* If no certificate found, You will get an error
Prepare certificate
* tns prepare ios
* Open xcWorkspace file which is in platform/ios using xcode
* build the app Once certificate ready then head over to visual studio code then try to run again
* Possible error while generating certificate
Possible 1:
* On the time of generation it will ask keytool access "login", give credentials then allow.
* If tap allow also sometimes it will not take means then goto keychain accesstool
* Lock the login then unlock it.
* Go to category -> My credentials
* Then it will list the certificates, double tap private key
-> Access Control -> select Allow all applications to access this item -> Save changes -> Close keychain access
Possible 2:
* If developer account not linked on xcode,
-> Preference -> Account -> + Add apple developer account
After successfully build we can run the app using xcode
-> build
-> select device
-> tap run
visual code
-> tns run ios
Once the application installed on device the it will alert for untrusted developer error, to solve
-> Settings
-> General
-> Device management(developer id)
-> Trust
-> Try to open an app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment