关于Cocos2dx v4.0 和 Cocoapods配合使用
2020-11-12 本文已影响0人
Sofine
1.Cocos2dx v4.0
1)创建新工程
cocos new MyGame -p com.test.MyGame -l cpp -d ~/Desktop/MyCompany
2)创建 编译运行ios 平台工程
cocos run -sdk iphoneos -p ios
2.初始化pod工程
1)pod init
2)pod install
3.配置工程
1)配置Build工程

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