美文网首页
iOS9快速踩坑

iOS9快速踩坑

作者: xuq | 来源:发表于2015-09-18 14:26 被阅读214次

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

    2222.png

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

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

    解决方法:
    找到Info.plist, 右击 -> Open as-> Source Code,添加以下代码
    <pre>
    <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict></pre>

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

    找到Info.plist, 右击 -> Open as-> Source Code,添加以下代码(我只有微信和qq,其他平台待收集)
    <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-对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快速踩坑

          本文链接:https://www.haomeiwen.com/subject/vcvbcttx.html