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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/45994854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:12:21  来源:igfitidea点击:

xcode 8.3 framework not found FileProvider for architecture armv7

objective-cxcodereact-nativexcode8xcode9-beta

提问by Ci Kai

When I'm using xcode 9 beta 6 building a react-native project, it works fine.

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

But after I change to xcode 8.3, it builds failed, and shows me these information:

但是在我更改为 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)

How could I do if I use xcode 8.3 to develop ? I'm not able to use xcode 9 because of this: Xcode was crashed after adding ART.xcodeproj into Library

如果我使用 xcode 8.3 开发,我该怎么办?由于这个原因,我无法使用 xcode 9:将 ART.xcodeproj 添加到库后,Xcode 崩溃了

Thanks to all bros : )

感谢所有兄弟:)

回答by felixwcf

FileProvide framework is only available in Xcode 9.You need to download and install Xcode 9 manually if you want to continue working on Xcode 8 environment,

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

I get this error too after updating my framework via cocoapods:

通过 cocoapods 更新我的框架后,我也收到此错误:

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

You need to copy the FileProvider framework from Xcode 9 into the directory of Xcode 8.

您需要将 FileProvider 框架从 Xcode 9 复制到 Xcode 8 的目录中。

  1. Download the Xcode 9 release version here.
  2. After install, go to Applicationfolder, right click on the Xcode9.app, select Show Package Contents.
  3. Go to this directory:

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

  4. Copy the FileProvider.framework, and paste into the same directory of Xcode8.app.
  5. Restart your Xcode8, clean your project and rebuild it.
  1. 此处下载 Xcode 9 发行版。
  2. 安装后,进入Application文件夹,右键单击 Xcode9.app,选择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. 重启你的 Xcode8,清理你的项目并重建它。

回答by EwyynTomato

One way to fix this is to go to:

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

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

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

and put FileProvider.framework to your project (such as copy, paste, then drag and drop to Project's Frameworks Group).

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

Then wait until XCode 9 is released and remove it.

然后等到 XCode 9 发布并删除它。

Edit: There is a problem with this approach though, the app ran on iOS < 11 will crash because the binary for FileProvider won't be found.

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

To work around this problem:

要解决此问题:

  • add FileProvider.framework to your project on XCode 8.x

  • link binary with libraries

  • then unlink it.

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

  • 将二进制文件与库链接

  • 然后取消链接。

the project should build without problem now.

该项目现在应该可以正常构建。

回答by Leo_Lee

And when you build with simulator, you should copy the FileProvider.frameworkinto

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

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

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

回答by zenone

I also have this problem, and I solved it by clean and rebuild project.

我也有这个问题,我通过清理和重建项目解决了它。

回答by mikezs

Try to restart your computer and clean derived data.

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