iOS打包步驟(一、二、三可不按照順序)
步驟一: 選擇iOS Device(以下兩者選其中一個即可)
- 選擇 Generic iOS Device (個人建議使用這個)

選擇Generic iOS Device.png
- 選擇 你的iOS設(shè)備

選擇你的iOS設(shè)備.png
步驟二: 運(yùn)行環(huán)境下的編譯設(shè)置(Debug/Release)
- Xcode-->Product-->Scheme-->Edit Scheme...
(或者如set_the_active_scheme.png所示進(jìn)行操作)

set_the_active_scheme.png
- Run-->Info-->Build Configuration選擇Release模式。最終結(jié)果如Release.png所示:

Release.png
步驟三: “告別”Node服務(wù)器,“擁抱”main.jsbundle
在AppDelegate.m文件中
// jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
步驟四: 歸檔(Archive)
Xcode-->Product-->Archive-->等待...直到如Archive.png所示.

Archive.png