Does React Native dev build on device expire?

I'm not sure if this is a thing, or perhaps a problem. I hope others have experienced this. But every time I install dev on my iphone via xcode, the application works fine on the device, and disconnects from the computer for about a week. Then the application crashes to the screen saver. Every developer program downloaded to my device did this. Even examples of applications that I downloaded from the Internet.

Is the version of the application expiring, or maybe the certificate is expiring or some other problem that causes the application on the device to crash after it has been on the device for a certain time?

+5
source share
4 answers

Solution 1: Disable WiFi on your iPhone or just make sure your phone and your computer are not on the same WiFi network.

Solution 2. Launch the application on the device using the Static Js package. To build a static package, follow these instructions to run on the device through a static package

Cause. This is because when your phone and PC are on the same WiFi network, the application on the phone tries to connect to the application development server to download the latest Js package, but when it could not connect to the development server or might not receive the latest Js package, after which the application crashes. Turning off Wi-Fi or changing the Wi-Fi network forces the application to download the pre-build package and prevents the application from crashing.

+6
source

I came across the same thing and finally figured it out. If you use the Xcode provisioning profile rather than signing up for the Apple Developer Program and paying annually, then what you do is a temporary profile that lasts about a week. After this period, any device with the installed application will stop working until it is restored with a new profile. You can view your profile / expiration date if you go to the "General"> "Signing" section and press the "i" next to the preparation profile.

+3
source

I hope that if the application opens to fill the screen, then there will be no errors in creating the application. After Splash, you are going to use any web services or related to your localhost site. If so, then there is definitely a problem. Let me know if this is helpful.

+2
source

When building on your phone, you want to change the layout to Release . Please follow this https://facebook.imtqy.com/react-native/docs/running-on-device.html , which will show you how to change the scheme to Release .

If you made a lot of updates during development, you may need to delete the node_modules folder and do a clean npm install again before building the phone process.

+1
source

Source: https://habr.com/ru/post/1263069/


All Articles