Skip to content

Commit

Permalink
Use LAN IP when connecting from iOS Simulator
Browse files Browse the repository at this point in the history
Fixes: #326
  • Loading branch information
larixer committed Sep 4, 2017
1 parent bd87f23 commit a7af2d4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/webpack.run.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,7 @@ async function startExpoProject(config, platform) {
console.error(error.message);
}
} else if (platform === 'ios') {
const localAddress = await UrlUtils.constructManifestUrlAsync(projectRoot, {
hostType: 'localhost',
});
const { success, msg } = await Simulator.openUrlInSimulatorSafeAsync(localAddress);
const { success, msg } = await Simulator.openUrlInSimulatorSafeAsync(address);

if (!success) {
console.error("Failed to start Simulator: ", msg);
Expand Down

0 comments on commit a7af2d4

Please sign in to comment.