1.Cocos2dx v4.0?
1)創(chuàng)建新工程
????cocos new MyGame -p com.test.MyGame -l cpp -d ~/Desktop/MyCompany
2)創(chuàng)建 編譯運(yùn)行ios 平臺(tái)工程
cocos run -sdk iphoneos -p ios
2.初始化pod工程
1)pod init
2)pod install
3.配置工程
1)配置Build工程

2)設(shè)置Other Linker Flags 和Framework Search Paths 和Library Search Paths添加$(inherited)