Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IOS Testflight loads old code of my app even after updating to new version

I have build an app using react-native and I have been uploading new builds with new version numbers to the app store and the status of the build is 'Testing'(for internal users), but when i update my app through Testflight i dont see my latest changes the version number and build number are updated but it loads very old code. This old code is 2-3 months old. But when i run the same app on simulator or on my device(through xcode) it shows up the latest code. Does anyone have any suggestions what i might be doing wrong here ?

enter image description here

like image 690
Vamsi Abhishek Avatar asked Jul 05 '19 10:07

Vamsi Abhishek


People also ask

How do you get the code from the TestFlight app?

The redeem code is sent by mail when you add an external or internal new tester in TestFlight. When you open your app in App Store Connect, go to "My Apps" and select your app. Then go to the "TestFlight" section, complete the "Information" section, and then add external testers as needed and the build to test.

Do TestFlight apps expire?

Each early access version is only available for 90 days after its release. TestFlight will tell you how many days until your current version expires. Once expired, you won't be able to use the Register app until you update to newer early access version or revert to the regular version of the Register app.


1 Answers

I had the exact same problem but even creating new certificates didn't help. I created a new main.jsbundle and that did the trick! Really difficult issue to get your head around.

Here is the exact command I used in the root of the project directory:

react-native bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios'
like image 199
Lemon Avatar answered Oct 13 '22 10:10

Lemon