Showing posts with label Simulator. Show all posts
Showing posts with label Simulator. Show all posts

Thursday, February 21, 2019

Run app on actual device

We can run app on actual device without developer account.
Reg an free Apple ID, no need 99$ now.
Open Xcode, go to Xcode → Preferences → Accounts, press plus symbol below and choose Add Apple ID.

Fill in form, click Sign in, this require internet connection.
Connect iphone with Mac via USB, click iphone name on bar, choose iphone name from list.


Run app, a pop up window show, click Fix Issue.
On iphone, go to Setting > Developer > Developer center > Trust this app on this device
Click this row, iphone need internet connect.
This step may repeat many times when run app with free Apple ID.

It just stop require after you buy developer account success.


Simulator can’t connect internet

Some app need internet to test. Your Mac already have internet but simulator show nothing. On simulator, choose Hardware >Home. Then go to Setting, scroll down and choose Developer, swipe to turn the button at row Allow HTTP Services become green.

Now simulator can connect internet.