Advertisement
duongntb94

[Feature] [RN] Simulator Build for Facebook Review

Apr 5th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. https://developers.facebook.com/docs/ios/getting-started/advanced/#sim_build
  2.  
  3. // Step 1: Need to bundle offline iOS first.
  4. react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios
  5.  
  6. // Step 2: Create Simulator Build
  7. ditto -ck --sequesterRsrc --keepParent `ls -1 -d -t ~/Library/Developer/Xcode/DerivedData/*/Build/Products/*-iphonesimulator/*.app | head -n 1` /Users/duong/Desktop/file.zip
  8.  
  9. // Step 3: Verify this build by unzip file.zip and drop drag File.app file into iOS simulator
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement