设置主工程的指定配置
s.xcconfig = {
'USER_HEADER_SEARCH_PATHS' => [
'$(inherited)',
'${PODS_ROOT}/AMapSearch/AMapSearchKit.framework/Headers',
'${PODS_ROOT}/AMapNavi/AMapNaviKit.framework/Headers',
'${PODS_ROOT}/AMapFoundation/AMapFoundationKit.framework/Headers',
'${PODS_ROOT}/AMap3DMap/MAMapKit.framework/Headers',
'${PODS_ROOT}/AMapLocation/AMapLocationKit.framework/Headers'
]
}
设置pod工程的指定配置
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64' }
s.ios.deployment_target = '8.0'
s.dependency 'FMDB', '~> 2.7.2'
资源
s.resource_bundles = {
'my_camera' => ['Assets/Resources/*.png','Classes/Tool/WHToast/wtoast_icon/*.png'],#(.png的资源)
}
指定target
s.test_spec 'Tests' do |test_spec|
test_spec.source_files = 'Tests/**/*'
test_spec.dependency 'OCMock','3.5'
end