xcode 库未加载:@rpath/FBLPromises.framework/FBLPromises iOS 13.3.1
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/60096258/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Library not loaded: @rpath/FBLPromises.framework/FBLPromises iOS 13.3.1
提问by arata
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.
我在自己的设备(iPhone 11 pro)iOS 13.3.1上使用了它。在我将设备更新到 iOS 13.3.1 之前,它运行良好。我的应用程序在模拟器(iPhone 11 - iOS 13.3)上也能正常运行。使用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.4and didn't work.
更新:尝试使用Xcode Beta 11.4构建它,但没有成功。
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)
- 我使用的唯一 Pod 是
Firebase/Auth, Firebase/Core, Firebase/Firestore
. - 评论
use_frameworks!
和使用use_modular_headers!
给了我这些错误:(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.
对于项目中的所有 pod)
采纳答案by Saico
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.
您可能正在使用免费的开发者帐户。Apple 在 13.3.1 升级后阻止在免费帐户上使用外部框架。如果仍有可能,请尝试降级到 13.3 或购买 Apple Developer License。
UPDATE 04/2020: Upgrading to iOS 13.4 and XCode 11.4 currently solves this issue.
更新 04/2020:升级到 iOS 13.4 和 XCode 11.4 目前解决了这个问题。
回答by Kirow
As was mentioned above:
如上所述:
Apple blocked utilizing external frameworks on free accounts with 13.3.1 upgrade.
Apple 在 13.3.1 升级后阻止在免费帐户上使用外部框架。
So use developer account with active subscription or use static libraries.
因此,请使用具有活动订阅的开发者帐户或使用静态库。
Solution for Cocoapods- use use_modular_headers!
Cocoapods 的解决方案- 使用use_modular_headers!
回答by Konrad Leszczyński
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.
将 iPhone 更新到 iOS 13.3.1 后,我遇到了同样的问题。对我有用的修复:在 Podfile 中删除use_frameworks!
并,:modular_headers => true
在每个 Pod 之后添加。关闭 xcode,更新 pod 并重建。
My full Podfile looks like this:
我的完整 Podfile 如下所示:
target 'HeatingClient' do
# use_frameworks!
pod 'RxSwift',:modular_headers => true
pod 'RxCocoa',:modular_headers => true
end
回答by 3ameration
Are you using a non-developer Apple ID to install the app on your phone? It looks like iOS 13.3.1 has broken apps installed with free Apple IDs, but only if they contain embedded frameworks. If it's possible to link all your dependencies as static libraries rather than frameworks (for example, if you're using Cocoapods you can remove use_frameworks! from your Podfile), that should fix the issue for now.
您是否使用非开发人员的 Apple ID 在手机上安装该应用程序?看起来 iOS 13.3.1 安装了带有免费 Apple ID 的损坏的应用程序,但前提是它们包含嵌入式框架。如果可以将所有依赖项链接为静态库而不是框架(例如,如果您使用 Cocoapods,则可以从 Podfile 中删除 use_frameworks!),那么现在应该可以解决问题。
回答by Mudassir Asghar
I was using apple free account, switched to apple paid account and it worked in iOS 13.3.1
我正在使用苹果免费帐户,切换到苹果付费帐户,它在 iOS 13.3.1 中工作
回答by MarcoPolokk
This issue is specific to iOS 13.3.1devices with free dev account, i was struggling with it for 4 days and got the solution.
此问题特定于具有免费开发帐户的iOS 13.3.1设备,我为此苦苦挣扎了 4 天并得到了解决方案。
Uninstall Pods from your project folder, use terminal:
sudo gem install cocoapods-deintegrate cocoapods-clean pod deintegrate pod clean rm Podfile
Initialize pods again in project, terminal:
pod init
In Podfile change this line:
target 'exampleproject' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks!
to this lines:
target 'exampleproject' do # Comment the next line if you don't want to use dynamic frameworks # use_frameworks! use_modular_headers!
Install Pods again in terminal:
pod install
Open project by file .xcworkspace and do
Product > Clean Build Folder
(Command+Shift+K)Run and build with free developer account on your iOS 13.3.1device.
从你的项目文件夹中卸载 Pods,使用终端:
sudo gem install cocoapods-deintegrate cocoapods-clean pod deintegrate pod clean rm Podfile
在项目中再次初始化 pod,终端:
pod init
在 Podfile 中更改这一行:
target 'exampleproject' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks!
到这一行:
target 'exampleproject' do # Comment the next line if you don't want to use dynamic frameworks # use_frameworks! use_modular_headers!
在终端中再次安装 Pods:
pod install
按文件.xcworkspace打开项目,做
Product > Clean Build Folder
(Command+ Shift+ K)在您的iOS 13.3.1设备上使用免费的开发者帐户运行和构建。
回答by mahad shahib
the issue is with iOS 13.3.1 and free developer accounts . the issue is fixed on latest iOS 13.4 beta I confirm it. for now you can use
问题在于 iOS 13.3.1 和免费开发者帐户。该问题已在最新的 iOS 13.4 beta 上得到解决,我确认。现在你可以使用
use_modular_headers!
使用_modular_headers!
instead of
代替
use_frameworks!
使用_框架!
in project Podfile
在项目 Podfile 中
回答by Vlad Bruno
Looks like whe only way to avoid error on free account is use ios 13.3, because even in iOS 13.4 beta apple didn't fix it.
Using use_modular_headers!
is not working for Firebase.
看起来在免费帐户上避免错误的唯一方法是使用 ios 13.3,因为即使在 iOS 13.4 beta 中,苹果也没有修复它。使用use_modular_headers!
不适用于 Firebase。
回答by Makwan BK
Probably the problem on the Xcode or the framework itself, I was got the same error on Xcode 11.4 beta and iOS 13.4 beta 1. Use the Xcode 11.3.1 for running on real devices until the next beta of Xcode will be released.
可能是 Xcode 或框架本身的问题,我在 Xcode 11.4 beta 和 iOS 13.4 beta 1 上遇到了同样的错误。使用 Xcode 11.3.1 在真实设备上运行,直到 Xcode 的下一个 beta 版发布。
回答by ikbal
Open the file extension and make sure it's in the library.
打开文件扩展名并确保它在库中。
Open Xcode -> Products -> YourApp.app -> "Show in Finder"
打开 Xcode -> Products -> YourApp.app -> “在 Finder 中显示”
And you see
你看
"YourApp.app" -> This file "right click" and click -> "Show package contents"
“YourApp.app”->此文件“右键单击”并单击->“显示包内容”
If libraries are missing here, you need to check their framework connections.
如果此处缺少库,则需要检查它们的框架连接。