問(wèn)題1: bitcode報(bào)錯(cuò), 提示錯(cuò)誤如下圖如下,具體是xxx does not contain bitcode
解決方法:
Xcode中選中項(xiàng)目 -> Build Settings -> 搜索bitcode, 找到Enable bitcode, 設(shè)置為NO
問(wèn)題2: 網(wǎng)絡(luò)請(qǐng)求失敗返回404
解決方法:
找到Info.plist, 右擊 -> Open as-> Source Code,添加以下代碼
<pre>
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
</pre>
問(wèn)題3: 分享出現(xiàn)-canOpenURL: failed for URL:(主要是第三方分享)
找到Info.plist, 右擊 -> Open as-> Source Code,添加以下代碼(我只有微信和qq,其他平臺(tái)待收集)
<pre>
`
<key>LSApplicationQueriesSchemes</key>
<array>
<string>mqqOpensdkSSoLogin</string>
<string>mqzone</string>
<string>safepay</string>
<string>mqq</string>
<string>mqqapi</string>
<string>mqqopensdkapiV3</string>
<string>mqqopensdkapiV2</string>
<string>mqqapiwallet</string>
<string>mqqwpa</string>
<string>mqqbrowser</string>
<string>wtloginmqq2</string>
<string>weixin</string>
<string>wechat</string>
</array>
`</pre>
其他scheme鏈接如下
http://wiki.mob.com/ios9-對(duì)sharesdk的影響(適配ios-9必讀)/
問(wèn)題4: 發(fā)布app的時(shí)候提示錯(cuò)誤 .bundle' does not contain a bundle executable,如下圖所示
搜索所有項(xiàng)目中在xxx.bundle的Info.plist文件,如果該bundle不是可執(zhí)行的,需要重復(fù)以下步驟,
- 刪除CFBundleExecutable
- 將CFBundlePackageType 配置為 BNDL,默認(rèn)好像就已經(jīng)配好了