描述
dyld[3576]: 无法加载库:'@rpath/FBLPromises.framework/FBLPromises'
引用自:'/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/RPPGCommon.framework/RPPGCommon'
重现步骤
在iPhone上运行带有scode的应用程序时,遇到了这个库问题。
React Native版本
0.73.0
受影响的平台
运行时 - iOS
npx react-native info
的输出
System:
OS: macOS 13.5
CPU: (8) arm64 Apple M1
Memory: 83.06 MB / 8.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.17.1
path: /usr/local/bin/node
Yarn:
version: 1.22.22
path: /usr/local/bin/yarn
npm:
version: 9.6.7
path: /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /Users/wegile-1003/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10227.8.2321.11479570
Xcode:
version: 15.1/15C65
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /Library/Java/JavaVirtualMachines/temurin-17.jdk/Contents/Home/bin/javac
Ruby:
version: 3.1.2
path: /Users/wegile-1003/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 13.6.6
wanted: ^13.6.6
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.73.0
wanted: 0.73.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: false
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
堆栈跟踪或日志
dyld[3576]: Library not loaded: '@rpath/FBLPromises.framework/FBLPromises'
Referenced from: '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/RPPGCommon.framework/RPPGCommon'
Reason: tried: '/usr/lib/swift/FBLPromises.framework/FBLPromises' (no such file), '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/RPPGCommon.framework/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/../../Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/usr/lib/swift/FBLPromises.framework/FBLPromises' (no such file), '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/usr/lib/swift/FBLPromises.framework/FBLPromises' (no such file), '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/private/var/containers/Bundle/Application/82E9282B-6536-40AC-B088-72A6947FF86A/vastmindz.app/Frameworks/FBLPromises.framework/FBLPromises' (no such file), '/System/Library/Frameworks/FBLPromises.framework/FBLPromises' (no such file)
5条答案
按热度按时间carvr3hs1#
jtjikinw2#
lbsnaicq3#
根据您提供的错误信息,问题出在您的React Native版本与项目要求的版本不匹配。您的React Native版本是0.73.8,而项目需要的版本是0.73.6。为了解决这个问题,您可以尝试降级React Native版本到0.73.6。请按照以下步骤操作:
cd /path/to/your/project
。将
YourProjectName
替换为您的项目名称。完成以上步骤后,您的React Native版本应该已经降级到0.73.6,并且项目应该可以正常运行了。
r55awzrz4#
我认为错误信息表明找不到FBLPromises框架。这个框架是Firebase SDK的一部分,并被Firebase库内部使用。
确保在Podfile中包含了FBLPromises。Firebase依赖项应该会自动拉取这个框架,但最好进行验证。
安装CocoaPods依赖项
清理并重建项目
然后,在Xcode中打开您的项目并再次构建它:
验证框架搜索路径
lx0bsm1f5#
你好,你的问题是什么?我会尽力帮助你。