简体   繁体   中英

How to run React Native app on ios simulator and ios device at the same time on different ports?

currently running my app on port 8081 and it works fine on both simulator and real device but when i run simulator with --port 8082 i get the following error:

在此处输入图像描述

I just want to run app on two different devices to test out push notifications.

Thanks for any help!

following these steps:

(1) open ios file project with code
(2) in the project bundle delete main.jsbundle file
(3) add a new empty file by main.jsbundle name
(4) Run command: react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
now react-native run-ios

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM