使用ReactNative仿造的Git@OSC! (感谢 xiekw2010 )
npm install
if error about 'EACCS' try
sudo chown -R $(whoami) "$HOME/.npm"
open the project in ios dir cd ios
pod install
edit xcode project OSCGit
's scheme to release
mode
bundle the JS resources, in project root dir (如果第一次运行没生存index.ios.jsbundle,再运行一次)
react-native bundle --entry-file index.ios.js --bundle-output ./ios/bundle/index.ios.jsbundle --platform ios --assets-dest ./ios/bundle --dev false --sourcemap-output ./ios/bundle/source.map --verbose
xcode run!
Edit xcode project OSCGit
edit scheme to debug
mode
Xcode run!
- 还未测试.(下一步准备让android也运行起来,然后再总结.)
```bash cnpm install -g code-push-cli --verbose code-push register (会弹出网页,按照步骤安装) ode-push access-key ls code-push app add RN_OSCGit code-push deployment ls RN_OSCGit code-push release-react RN_OSCGit ios --entryFile ./ios/bundle/index.ios.jsbundle #release RN_OSCGit ./ios/bundle 1.0.7 -d Production ```
code-push deployment ls RN_OSCGit
#release RN_OSCGit ./ios/bundle 1.0.7 -d Production code-push release-react RN_OSCGit ios --entryFile ./ios/bundle/index.ios.jsbundle
一次RN跨平台开发之旅
GPL. Copyright (c) rplees .