更新到 Xcode 7 后出错 [英] Error after updating to Xcode 7

查看:42
本文介绍了更新到 Xcode 7 后出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Ionic Framework 开发移动应用程序,但我刚刚收到一个非常奇怪的错误,该错误破坏了我的整个构建.

I am developing mobile app with Ionic Framework and I just received very strange error that broke my whole build.

'myapp/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(FBLikeButtonBackgroundSelectedPNG.o)'不包含位码.您必须在启用位码的情况下重建它(Xcode 设置 ENABLE_BITCODE),从供应商,或禁用此目标的位码.用于架构 arm64clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

'myapp/Plugins/com.phonegap.plugins.facebookconnect/FacebookSDK.framework/FacebookSDK(FBLikeButtonBackgroundSelectedPNG.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

发生在 .在升级到新的 Xcode 7.0 版之前,它运行良好.我试图禁用该项目的 BITCODE,但该 APP 的 Facebook 功能没有按预期工作.

That happen after . It worked perfectly before upgrading to the new Xcode version 7.0. I have tried to disable the BITCODE for the project but the Facebook functionality of the APP does not work as expected.

编辑

如果我为项目禁用 BITCODE,Facebook 插件会打开浏览器而不是应用程序,因此 禁用 BITCODE 在这种情况下不是解决方案.

If I disable BITCODE for the project the Facebook plugin opens the browser instead of the app therefore Disabling BITCODE is not a solution in that case.

推荐答案

这对我有用:

我是从这里偷的:https://github.com/Wizcorp/phonegap-facebook-plugin/issues/1116

  1. 使用 e Facebook 的 iOS 9 指南中的第 2 步和第 3 步更新 plist莉>
  2. 关闭位码设置(你已经知道怎么做了 :smile:)
  1. Update the plist with steps 2 and 3 from e Facebook's iOS 9 guide
  2. Turn off the bitcode setting (you already know how to do that :smile:)

这篇关于更新到 Xcode 7 后出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆