dbaq / cordova-plugin-filepickerio

Cordova plugin for FileStack.com native Android and iOS SDK
https://www.filestack.com
20 stars 18 forks source link

dyld: Library not loaded: @rpath/FSPicker.framework/FSPicker #8

Closed infiniteloopltd closed 7 years ago

infiniteloopltd commented 7 years ago

After adding this filepicker plugin to my cordova project, I got this error at build time in Xcode:

dyld: Library not loaded: @rpath/FSPicker.framework/FSPicker

Referenced from: /Users/fiachreid/Library/Developer/CoreSimulator/....

Reason: image not found

Has anyone seen this error?

dbaq commented 7 years ago

dyld: Library not loaded: @rpath/FSPicker.framework/FSPicker

it looks like the library FSPicker is not imported correctly in your xcode project.

Make sure all these frameworks are included properly: https://github.com/dbaq/cordova-plugin-filepickerio/blob/master/plugin.xml#L44-L53

infiniteloopltd commented 7 years ago

Ok, found the solution;

In the embedded binaries section of the target (General tab), you have to add FSPicker.framework, AFNetworking.framework, and FileStack.framework.

I also discovered, if you try to submit an app with these frameworks, Apple complains that there are unsupported architectures; I found a solution to this also using this build script; http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

Thanks!

dbaq commented 7 years ago

I also discovered, if you try to submit an app with these frameworks, Apple complains that there are unsupported architectures; I found a solution to this also using this build script; http://ikennd.ac/blog/2015/02/stripping-unwanted-architectures-from-dynamic-libraries-in-xcode/

very true, I used the same blog post when I pushed the app to the store. I should add it to the readme file.

I am closing the issue since you solved it. Have a good weekend.