iOS9快速踩坑

问题1: bitcode报错, 提示错误如下图如下,具体是xxx does not contain bitcode

2222.png

解决方法:
Xcode中选中项目 -> Build Settings -> 搜索bitcode, 找到Enable bitcode, 设置为NO

问题2: 网络请求失败返回404

解决方法:
找到Info.plist, 右击 -> Open as-> Source Code,添加以下代码


NSAppTransportSecurity NSAllowsArbitraryLoads

问题3: 分享出现-canOpenURL: failed for URL:(主要是第三方分享)

找到Info.plist, 右击 -> Open as-> Source Code,添加以下代码(我只有微信和qq,其他平台待收集)


`
LSApplicationQueriesSchemes

mqqOpensdkSSoLogin
mqzone
safepay
mqq
mqqapi
mqqopensdkapiV3
mqqopensdkapiV2
mqqapiwallet
mqqwpa
mqqbrowser
wtloginmqq2
weixin
wechat

`


其他scheme链接如下
http://wiki.mob.com/ios9-对sharesdk的影响(适配ios-9必读)/

问题4: 发布app的时候提示错误 .bundle' does not contain a bundle executable,如下图所示

333.png

搜索所有项目中在xxx.bundle的Info.plist文件,如果该bundle不是可执行的,需要重复以下步骤,

  1. 删除CFBundleExecutable
  2. 将CFBundlePackageType 配置为 BNDL,默认好像就已经配好了

你可能感兴趣的:(iOS9快速踩坑)