SDK compiled with xcode 9 does not work fine in xcode 8

混江龙づ霸主 提交于 2019-12-12 09:53:20

问题


I've an SDK that I built with Xcode-9-Beta. However, I'm trying to use this framework in a project that's running Xcode 8.3.3. However, I get a build error which says, ld framework not found "FileProvider" for architecture x86_64

Now, this FileProvider has been introduced in iOS-11 and I'm not using it anywhere in the SDK code. What could be the possible error. Please comment if you need further data around this.


回答1:


FileProvide framework is only available in Xcode 9.

You need to download and install Xcode 9 manually and copy the FileProvider framework from Xcode 9 to the same directory of Xcode 8 if you want to continue working on Xcode 8 environment.

  1. Download the Xcode9 release version here.
  2. Go to

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

You can refer to this answer.




回答2:


Follow these steps

1) Add FileProvider.framework in Link Binary With Library section in Build Phase.

2) Make it Optional in place of Required.

3) Clean the project.

4) Run.

Application will run without crash.




回答3:


I run into this bug, too.

I think this might be a Xcode bug, I have already filed a bug report.

If you want to solve this, you can add FileProvider.framework into your target's linked frameworks and libraries, and select status to optional.

this will solve this error, but any function related to Fileprovider will not work.



来源:https://stackoverflow.com/questions/46078489/sdk-compiled-with-xcode-9-does-not-work-fine-in-xcode-8

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!