Generating Signed IPA - iOS
打包步驟
$ react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios (Xcode選單)Product → Scheme → Edit Scheme (cmd + <)
確保左側是選擇到 Run,如下圖




參考
Last updated
$ react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios (Xcode選單)Product → Scheme → Edit Scheme (cmd + <)
確保左側是選擇到 Run,如下圖




Last updated
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle”];到證書(Mac)存放位於 /Users/XXXXX/Library/MobileDevice/Provisioning Profiles
把證書刪光(會怕的話請先備份) > 左鍵雙擊證書 匯入Xcode > 重啟Xcode > 再次Archive即可
ps.不確定是否匯入證書後重啟Xcode ,是否就可行#ifdef DEBUG
NSLog(@"........Debug For Developer(USB Connect).......");
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
#else
NSLog(@"........Rlease For Archive.......");
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif