Library not loaded: @rpath/FBLPromises.framework/FBLPromises iOS 13.3.1 [duplicate]
My app crashes on lunch and getting this error:
dyld: Library not loaded: @rpath/FBLPromises.framework/FBLPromises
Referenced from: /private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Zeta
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises'
/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=25
/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises'
/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=1
/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises: code signature invalid for '/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises'
/private/var/containers/Bundle/Application/11X3EC15-5A16-4E27-AC4A-FB0503E6F1E2/Zeta.app/Frameworks/FBLPromises.framework/FBLPromises: stat() failed with errno=1
(lldb)
I used it on my own device (iPhone 11 pro) iOS 13.3.1. It was working perfectly fine before I update my device to iOS 13.3.1 . My app also works perfectly fine on the simulator (iPhone 11 - iOS 13.3). Using Xcode 11.3.1.
Removing the profile from my device and trusting again didn't work.
UPDATE: Tried to build it using Xcode Beta 11.4 and didn't work.
UPDATE II:
- The only pods that I'm using are
Firebase/Auth, Firebase/Core, Firebase/Firestore
. - Commenting
use_frameworks!
and usinguse_modular_headers!
gave me these errors:Showing Recent Issues The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 4.3, but the range of supported deployment target versions is 8.0 to 13.2.99.
(For all the pods in the project)
You are probably using free developer account. Apple blocked utilizing external frameworks on free accounts with 13.3.1 upgrade. Try downgrading to 13.3 if still possible or buy Apple Developer License.
UPDATE 04/2020: Upgrading to iOS 13.4 and XCode 11.4 currently solves this issue.
I had the same problem after updating my iPhone to iOS 13.3.1.
The fix that has worked for me:
In the Podfile remove use_frameworks!
and add ,:modular_headers => true
after each pod.
Close xcode, update pods and rebuild.
My full Podfile looks like this:
target 'HeatingClient' do
# use_frameworks!
pod 'RxSwift',:modular_headers => true
pod 'RxCocoa',:modular_headers => true
end
As was mentioned above:
Apple blocked utilizing external frameworks on free accounts with 13.3.1 upgrade.
So use developer account with active subscription or use static libraries.
Solution for Cocoapods - use use_modular_headers!