菜鸟笔记-ios sdk 接入流程(pod方式),上传应用商店以及打包iap

(1)进入到发布后的目录proj.ios_mac目录下,创建Podfile文件,将sdk接入IOS项目中。下面是Podfile书写格式。

platform :ios, '9.0' //iOS最低版本

target “xxxx-mobile" do //项目名称

pod 'AppsFlyerFramework’ //使用的SDK

pod ‘xxxxxx’

 

end

(2)使用终端,cd到当前目录中,执行命令 pod install。

注:pod install后常见的问题

a)CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `xxxx-mobile` to `Target Support Files/Pods-xxxx-mobile/Pods-xxxx-mobile.debug.xcconfig` or include the `Target Support Files/Pods-xxxx-mobile/Pods-xxxx-mobile.debug.xcconfig` in your build configuration (`ios/UserConfigIOS.debug.xcconfig`)

解决方案:

通过”xxxx.xcworkspace”打开Xcode,project---> info -->Configurations中debug和release模式下全部改为Pod模式。

 

b)[!] The `xxxx-mobile [Release]` target overrides the `VALID_ARCHS` build setting defined in `Pods/Target Support Files/Pods-xxxx-mobile/Pods-xxxx-mobile.release.xcconfig'. This can lead to problems with the CocoaPods installation

解决方案:

通过targets —-> BuildSettings —->Architectures ,增加属性 “ $(inherited) ”,

 

(3).包名,签名证书配置在targets -->  Setting & Capabilities 下配置。项目名版本号在General中配置。

 

(4)如果出现弱引用问题,targets - -> Build Settings ,找到Apple Clang - Language - Objecttive-C,修改Weak属性为YES。

 

(5)打包ipa,调试方式调整为Generic IOS Device模式,菜单栏选择Product - - > Archive - -> Distribute App ,如果提交审核选择第一个,ipa包根据情况选第一个或者第二个。然后一直next就可以。

 

posted @ 2020-10-21 14:53  一只韩菜鸟  阅读(477)  评论(0)    收藏  举报