STEP1:啟動xcode
打開更新的AikeMark文件夾,運行AikeMark-->BankA-->ios-->BankA.xcworkspace
STEP2:替換zip包
若想看最新H5代碼在模擬機上的效果,在自己的項目中build一下,再把項目文件打一個zip包,如私項目運行npm run zip,會生成sicaih5.zip,把這個包覆蓋到AikeMark-->BankA-->ios-->resources目錄下,再在xcode下重新運行模擬器(command+r)
STEP3:xcode與safir真機調試???
注意事項:
*==.xcode版本要求高于或等于AikeMark中IOS的開發版本需求;
*==.默認會起8081端口,但是可能8081端口會被占用而報錯,可以命令殺掉對應8081進程;
ERROR Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
at exports._errnoException (util.js:953:11)
at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)
*==.在運行模擬機時,終端不要另起其它服務;
*==.在平安七樓項目組是,IOS用把更新的IOS代碼放在AikeMark文件夾中,若是IOS更新代碼后,我們要從對應GIT上面拉取最新AikeMark文件夾中的文件,不然可能會報錯或有些功能不能用;
*==. BKAConfig.m
( //RN加載的bundle包路徑
//#ifdef RN_DEV
//若是真機調試請將localhost改變為自己電腦的ip地址
define kRNUrlPath @"http://localhost:8081/sicaiDeveloper.ios.bundle?platform=ios&dev=true"
//#define kRNUrlPath [[NSBundle mainBundle] pathForResource:@"main" ofType:@"jsbundle"]
//#else
//#define kRNUrlPath [[NSBundle mainBundle] pathForResource:@"main" ofType:@"jsbundle"]
//#endif )
*. PAPPControllerManager 更換模式: