3

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.

prabodhprakash
  • 3,825
  • 24
  • 48

3 Answers3

2

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.

felixwcf
  • 2,078
  • 1
  • 28
  • 45
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.

1

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.

Randall Wang
  • 1,007
  • 3
  • 10
  • 24