# Cordova App Build Fail: framework not found FileProvider for architecture i386

**URL:** <https://discuss.bitrise.io/t/cordova-app-build-fail-framework-not-found-fileprovider-for-architecture-i386/4153>\
**Category:** Builds\
**Created:** [February 14, 2018, 9:52pm UTC](https://discuss.bitrise.io/t/cordova-app-build-fail-framework-not-found-fileprovider-for-architecture-i386/4153 "2018-02-14T21:52:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeystein](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@joeystein](https://discuss.bitrise.io/u/joeystein)\
**Post date:** [February 14, 2018, 9:52pm UTC](https://discuss.bitrise.io/t/cordova-app-build-fail-framework-not-found-fileprovider-for-architecture-i386/4153/1 "2018-02-14T21:52:34Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

Pasted the code block with the error below. I get this issue when I try to run my builds. I tried adding a provisioning profile and certificate to our build to see if that would fix the issue and it did not. It seems like this ‘framework’ is just missing.

```auto
Ld /Users/vagrant/Library/Developer/Xcode/DerivedData/Medici-aizfvindntoaoqhenbpuwtdrjvef/Build/Intermediates/Medici.build/Release-iphonesimulator/Medici.build/Objects-normal/i386/Medici normal i386
    cd /Users/vagrant/git/patient/cordova/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/vagrant/.bitrise/tools:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/sbin:~/bin:/usr/local/opt/go/libexec/bin:/Users/vagrant/go/bin:/Users/vagrant/bitrise/tools/cmd-bridge/bin/osx:/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/tools:/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/tools/bin:/Users/vagrant/Library/Developer/Xamarin/android-sdk-macosx/platform-tools"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk -L/Users/vagrant/git/patient/cordova/platforms/ios/build/emulator -L/Users/vagrant/git/patient/cordova/platforms/ios/Medici/Plugins/cordova-plugin-iosrtc -L/Users/vagrant/git/patient/cordova/platforms/ios/Medici/Plugins/pushwoosh-cordova-plugin -F/Users/vagrant/git/patient/cordova/platforms/ios/build/emulator -FMedici/Plugins/com.adjust.sdk -FMedici/Plugins/cordova-fabric-plugin -FMedici/Plugins/cordova-plugin-facebook4 -FMedici/Plugins/cordova-plugin-googleplus -filelist /Users/vagrant/Library/Developer/Xcode/DerivedData/Medici-aizfvindntoaoqhenbpuwtdrjvef/Build/Intermediates/Medici.build/Release-iphonesimulator/Medici.build/Objects-normal/i386/Medici.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Medici-aizfvindntoaoqhenbpuwtdrjvef/Build/Intermediates/Medici.build/Release-iphonesimulator/Medici.build/Objects-normal/i386/Medici_lto.o -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Medici-aizfvindntoaoqhenbpuwtdrjvef/Build/Intermediates/Medici.build/Release-iphonesimulator/Medici.build/Objects-normal/i386/Medici.swiftmodule -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker__ entitlements -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Medici-aizfvindntoaoqhenbpuwtdrjvef/Build/Intermediates/Medici.build/Release-iphonesimulator/Medici.build/Medici.app.xcent /Users/vagrant/git/patient/cordova/platforms/ios/build/emulator/libCordova.a -framework AdjustSdk -weak_framework AdSupport -weak_framework iAd -lz -lc++ -framework SystemConfiguration -weak_framework Security -framework Fabric -framework Crashlytics -weak_framework ImageIO -framework CoreLocation -framework AVFoundation -weak_framework AddressBook -weak_framework AddressBookUI -lz -framework CoreMotion -framework Bolts -framework FBSDKCoreKit -framework FBSDKLoginKit -framework FBSDKShareKit -framework GoogleAppUtilities -framework GoogleAuthUtilities -framework GoogleNetworkingUtilities -framework GoogleSignIn -framework GoogleSymbolUtilities -framework GoogleUtilities -weak_framework CoreText -weak_framework SafariServices -lWebRTC-LATEST-Universal-Release -framework CoreMedia -framework GLKit -framework OpenGLES -framework CoreVideo -framework CoreAudio -framework QuartzCore -framework AudioToolbox -lstdc++ -lsqlite3.0 -framework VideoToolbox -framework Foundation -framework CoreTelephony -weak_framework WebKit -weak_framework Social -weak_framework MessageUI -framework CoreBluetooth -framework Photos -framework EventKit -framework Contacts -framework UserNotifications -framework CallKit /Users/vagrant/git/patient/cordova/platforms/ios/Medici/Plugins/pushwoosh-cordova-plugin/Pushwoosh -framework Storekit -Xlinker -dependency_info -Xlinker /Users/vagrant/Library/Developer/Xcode/DerivedData/Medici-aizfvindntoaoqhenbpuwtdrjvef/Build/Intermediates/Medici.build/Release-iphonesimulator/Medici.build/Objects-normal/i386/Medici_dependency_info.dat -o /Users/vagrant/Library/Developer/Xcode/DerivedData/Medici-aizfvindntoaoqhenbpuwtdrjvef/Build/Intermediates/Medici.build/Release-iphonesimulator/Medici.build/Objects-normal/i386/Medici
ld: framework not found FileProvider for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

```

## Environment:

This issue happened while trying to build our project using bitrise

If on [Bitrise.io](http://Bitrise.io): which stack? If not on [Bitrise.io](http://Bitrise.io): on what operating system? (Plus any other information you can share)

The stack is Hybrid stack, with both Android tools and Xcode 8. The step that the issue occurs in: cordova-archive@1.0.1.

E.g.: Git Clone v3.6.0

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : YES/NO  
No

- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : YES/NO  
No

- _Does the issue happen sporadically, or every time?_ :  
Every time.

- _Does upgrading the build Step to the latest version help?_ : YES/NO  
Not sure where to edit this.

- _When did the issue start?_ :

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

### Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [Bitrise CLI](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [Running your build locally in Docker](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._

## Build log

_Please copy paste the build’s [bitrise.io](http://bitrise.io) URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - [Contact us](https://www.bitrise.io/contact) ), with a link to the related Discuss issue._

[https://www.bitrise.io/build/e2b8907919f7a222](https://www.bitrise.io/build/e2b8907919f7a222)

---

<div class="post-metadata">

**Author:** ![joeystein](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@joeystein](https://discuss.bitrise.io/u/joeystein)\
**Post date:** [February 20, 2018, 6:03pm UTC](https://discuss.bitrise.io/t/cordova-app-build-fail-framework-not-found-fileprovider-for-architecture-i386/4153/2 "2018-02-20T18:03:32Z")

</div>

Turns out this was a versioning issue. We were running cordova 7.0.1 locally and ^6.5.0 in the project. We needed to run the 7.0.1 version in our stack, and add that we wanted to run ^6.5.0 in the cordova config settings.

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [February 21, 2018, 12:37pm UTC](https://discuss.bitrise.io/t/cordova-app-build-fail-framework-not-found-fileprovider-for-architecture-i386/4153/3 "2018-02-21T12:37:59Z")

</div>

Glad to hear you managed to solve the issue @joeystein!

Sorry for the delay and thanks for sharing both the issue & the solution, I’m sure this will help others too! 😉
