DRDD2016 / native

Spark - React Native
3 stars 1 forks source link

Launching app on the device #39

Open minaorangina opened 7 years ago

minaorangina commented 7 years ago

From @heron2014 on December 20, 2016 13:9

Reference: https://facebook.github.io/react-native/docs/running-on-device.html

https://developer.apple.com/library/content/documentation/IDEs/Conceptual/AppDistributionGuide/LaunchingYourApponDevices/LaunchingYourApponDevices.html#//apple_ref/doc/uid/TP40012582-CH27-SW4

Copied from original issue: DRDD2016/sparkn2#53

minaorangina commented 7 years ago

From @heron2014 on December 20, 2016 16:16

The setup below includes how to remove the Tests folder, which can cause problems with running the app on the device.

One-time setup

Tests folder

If you see a tests folder ([your-app-name]Tests), do the following:

screen shot 2016-12-20 at 16 02 29

screen shot 2016-12-20 at 16 11 11

We already have deleted the AppnameTests folder but it was located there as the image above.

Reference stackoverflow issue which helped us out: http://stackoverflow.com/questions/13870019/xcode-can-i-delete-test-target

http://stackoverflow.com/questions/26324163/xcode-how-to-delete-target-in-xcode-6-1

screen shot 2016-12-20 at 16 08 18

You would need your apple id and password

screen shot 2016-12-20 at 16 06 22

As the following screenshot you need to enable Developer App certificate in your device, follow the instructions.

screen shot 2016-12-20 at 14 57 40

minaorangina commented 7 years ago

Emulating your app onto your device

The project should open up automatically on your device. If it doesn't, try disconnecting and reconnecting your device to your Mac, and click Run again.