cocos2d-x的Podfile要怎么写

cocos2d-x的Podfile要怎么写,这是我写的

Uncomment the next line to define a global platform for your project

platform :ios, ‘9.2’

pod ‘AFNetworking’,’~> 3.1.0’

target ‘Project_HCMJ-mobile’ do

Uncomment the next line if you’re using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for Project_HCMJ-mobile

end

Pod update和pod install都正常,但是就是不生成libPods-xxxx.a文件,如果我用下面的写法

Uncomment the next line to define a global platform for your project

platform :ios, ‘9.2’

pod ‘AFNetworking’,’~> 3.1.0’
target ‘Project_HCMJ-desktop’ do
end

target ‘Project_HCMJ-mobile’ do

Uncomment the next line if you’re using Swift or would like to use dynamic frameworks

use_frameworks!

Pods for Project_HCMJ-mobile

end

可以生成libPods-Project_HCMJ-desktop.a文件,但是没法用吧

到底 怎么弄啊,头疼