I'm trying to use Microsoft Code Push to update the JS bundle without submitting the app to iTunes again.
On debug and release mode, the app can successfully load the bundle via Code Push and install updates at the next startup.
Unlike the debug / release Xcode app, when I archive the app and install it from TestFlight, I'm experiencing a white blank screen just after the native splashscreen. No crashes appears in the App Center.
I didn't used Cocoapod before adding Code Push support so I don't trust the Podfile and I'm a total newbie on this part.
Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyApp' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for MyApp
pod 'yoga', path: '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
pod 'React', path: '../node_modules/react-native', subspecs: [
'DevSupport',
]
pod 'AppCenter/Crashes', '~> 1.7.1'
pod 'AppCenter/Analytics', '~> 1.7.1'
pod 'AppCenterReactNativeShared', '~> 1.6.0'
pod 'CodePush', :path => '../node_modules/react-native-code-push'
platform :ios, '9.0'
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
end
target 'MyApp-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for MyApp-tvOS
target 'MyApp-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
Environment
- react-native-code-push version: 5.4.0
- react-native version: 0.53.3
- iOS/Android/Windows version: iOS 10.2
- Does this reproduce on a debug build or release build? Nop, it's working perfectly
- Does this reproduce on a simulator, or only on a physical device? Works great on simulator