Skip to content

Commit

Permalink
Remove instructions about IP address on iOS
Browse files Browse the repository at this point in the history
Summary:
The documentation was not updated after this change : Implemented automatic IP detection for iOS (8c29a52)

Fixes #8651.
Closes #8660

Differential Revision: D3539749

fbshipit-source-id: fe3b37c446a8c37941adbb08c4301284950a176a
  • Loading branch information
charpeni authored and Facebook Github Bot 9 committed Jul 9, 2016
1 parent d73446c commit 65ff819
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/RunningOnDeviceIOS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ Running an iOS app on a device requires an [Apple Developer account](https://dev

You can iterate quickly on device using the development server. First, ensure that you are on the same Wi-Fi network as your computer.

1. Open `ios/YourApp/AppDelegate.m`
2. Change the host in the URL from `localhost` to your laptop's IP address. On Mac, you can find the IP address in System Preferences / Network.
3. In Xcode, select your phone as build target and press "Build and run"
In Xcode, select your phone as build target and press "Build and run"

> Hint
>
Expand Down

2 comments on commit 65ff819

@inetfuture
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if I want to manually set the host?

In our team, we only have one Mac for the time being, so I install the iOS version for others, before, I can change the host to others' packager host before installing, how can I do it now?

@charpeni
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@inetfuture You can refer to this 8c29a52, specially in the comments bellow.

Please sign in to comment.