Port overriding failing on 0.61.4
See original GitHub issueWith the standard port of 8081 in use, overriding the port to 8088 does not work. When running the iOS app, the app will still look for port 8081.
React Native version: System: OS: macOS 10.15.1 CPU: (12) x64 Intel® Core™ i7-8850H CPU @ 2.60GHz Memory: 431.70 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.4.0 - ~/.nvm/versions/node/v11.4.0/bin/node npm: 6.10.2 - ~/.nvm/versions/node/v11.4.0/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1 Android SDK: API Levels: 24, 27, 28, 29 Build Tools: 27.0.3, 28.0.3, 29.0.0, 29.0.2 System Images: android-28 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.5 AI-191.8026.42.35.5977832 Xcode: 11.2.1/11B53 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.4 => 0.61.4
Steps To Reproduce
npx react-native init Test
cd Test
npx react-native start --port=8088
- open ios/Test.xcworkspace in Xcode
- Edit Start Packager build phase of “Test” target to change port from 8081 to 8088
- Press Build and Run in Xcode
- Simulator will start, app will start, but error:
No bundle URL present.
Make sure you're running a packager server or have included a .jsbundle file in your application bundle.
RCTFatal
__28-[RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
- Debug console in Xcode shows that the app is still looking for port 8081:
2019-11-15 13:19:17.348467-0600 Test[39853:298200] Task <DCCAD9E5-5E8F-4253-BB54-F2386A778CD3>.<1> HTTP load failed, 564/0 bytes (error code: -1005 [4:-4])
2019-11-15 13:19:17.354410-0600 Test[39853:298200] Task <DCCAD9E5-5E8F-4253-BB54-F2386A778CD3>.<1> finished with error [-1005] Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={NSUnderlyingError=0x60000335fcc0 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={NSErrorPeerAddressKey=<CFData 0x6000019cd560 [0x7fff80615350]>{length = 28, capacity = 28, bytes = 0x1c1e1f91000000000000000000000000 ... 0000000100000000}, _kCFStreamErrorCodeKey=-4, _kCFStreamErrorDomainKey=4}}, NSErrorFailingURLStringKey=http://localhost:8081/status, NSErrorFailingURLKey=http://localhost:8081/status, _kCFStreamErrorDomainKey=4, _kCFStreamErrorCodeKey=-4, NSLocalizedDescription=The network connection was lost.}
2019-11-15 13:19:17.454 [fatal][tid:main] No bundle URL present.
Make sure you're running a packager server or have included a .jsbundle file in your application bundle.
2019-11-15 13:21:29.544057-0600 Test[39853:297947] Returning local object of class NSString
Describe what you expected to happen
I expect to see the starter app running in the simulator
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:7
Top GitHub Comments
I’m also experiencing this problem after upgrading to v0.61.4 from v.0.59.5
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.