上周项目遇到的问题
1. 编译报错:
"LayerWebView::LayerWebView()", referenced from: VipFunc::rechargeCallback(cocos2d::CCObject*) in VipFuncModel.o
原因:在新建targets时用到的文件没有add to targets。(该文件已经加到了别的target,但是新建target时忘记add到新建的target了)。
解决:delete references 重新 add to targets。
2. 编译ok,运行失败,提示如下:
iPhone: Failed to launch simulated application: Unknown error
各种重启machine xcode、clean,都无效。
根据stackoverflow上别人的回答 http://stackoverflow.com/questions/779115/iphone-failed-to-launch-simulated-application-unknown-error,
"1)Restart Xcode; 2) Use "Get Info" on Info.plist and uncheck current target (Info.plist would be added anyway). That's all."
大概知道是自己操作了原始的info.plist文件,原先它对所有的target都是uncheck状态,我手贱把它add到了默认的target了。但是这样改过来还是一样,于是clean, then debug ok。
//**********************************************fjut****************************************************//