开发中遇到的问题及解决方案

一、使用cocoapods集成第三方框架时提示

[!] The dependency `DTCoreText` is not used in any concrete target.

解决方案:podfile文件中的内容格式需要修改

platform :ios, '8.0'

#use_frameworks!个别需要用到它,比如reactiveCocoa

target 'MyApp' do

pod 'AFNetworking', '~> 2.6'

pod 'ORStackView', '~> 3.0'

pod 'SwiftyJSON', '~> 2.3'

end

 

里面的 MyApp 记得替换为自己攻城里面的target。这样就基本OK了,执行pod install / pod update 就都可以了

 

二、使用真机调试时提示:“The certificate used to sign "myappname" has either expired or has been revoked. An updated certificate is required to sign and install the application.”

解决方法,在xcode->preference ->view detaild->里面将IOS develop reset一下 再点击down.再次运行时发现修复了此问题。

 

 

三、测试苹果iap支付

查询商品信息时提示 Error Domain=SKErrorDomain Code=0 。原因是网络问题,手机没有连上网络。

posted @ 2016-10-15 14:18  shycieSATINE  阅读(570)  评论(0编辑  收藏  举报