xcode 8.3 框架未找到架构 armv7 的 FileProvider

xcode 8.3 framework not found FileProvider for architecture armv7

当我使用 xcode 9 beta 6 构建 react-native 项目时,它工作正常。

但是我改成xcode 8.3后,编译失败,并显示这些信息:

ld: framework not found FileProvider for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Apple Mach-O Linker (ld) Error Group
: Linker command failed with exit code 1 (use -v to see invocation)

用xcode8.3开发怎么办?由于这个原因,我无法使用 xcode 9:Xcode was crashed after adding ART.xcodeproj into Library

感谢所有兄弟:)

解决此问题的一种方法是转到:

/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/

并将 FileProvider.framework 放入您的项目(例如复制、粘贴,然后拖放到项目的框架组)。

然后等到XCode9释放出来再去掉

编辑:尽管这种方法存在问题,iOS < 11 上的应用程序 运行 将崩溃,因为找不到 FileProvider 的二进制文件。

要解决此问题:

  • 将 FileProvider.framework 添加到您在 XCode 上的项目 8.x

  • link 带库的二进制文件

  • 然后取消link它。

项目现在应该没有问题了。

我也有这个问题,我通过clean and rebuild project解决了。

尝试重新启动计算机并清理派生数据。

FileProvide 框架仅在 Xcode 9 中可用。 如果您想继续使用 [=],您需要手动下载并安装 Xcode 9 42=] 8 环境,

通过 cocoapods 更新我的框架后,我也遇到了这个错误:

ld: framework not found FileProvider for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

您需要将 Xcode9 的 FileProvider 框架复制到 Xcode8 的目录中。

  1. 下载 Xcode 9 发布版本 here
  2. 安装后,转到 Application 文件夹,右键单击 Xcode9.app、select Show Package Contents.
  3. 转到此目录:

    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/

  4. 复制FileProvider.framework,并粘贴到Xcode8.app.
  5. 的同一目录
  6. 重新启动您的 Xcode8,清理您的项目并重建它。

当你用模拟器构建时,你应该将 FileProvider.framework 复制到

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/