美文网首页
编译失败问题总结

编译失败问题总结

作者: 雪贝壳 | 来源:发表于2021-12-20 15:47 被阅读0次

在开发过程经常会遇到各种各样的报错问题,在此记录方便以后查阅 也给出现相同问题的伙伴一点思路。

问题1. 启动app崩溃 报错如下:
dyld: Library not loaded: @rpath/App.framework/App
Referenced from: /Users/XXX/Library/Developer/CoreSimulator/Devices/4AD13456-EB2E-4B89-8402-1B32914599DC/data/Containers/Bundle/Application/236DC619-7B0C-4293-ADBF-9B21986F3879/xxx.app/xxx
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_SHARED_CACHE_DIR=/Users/zhangbeibei4/Library/Developer/CoreSimulator/Caches/dyld/20G80/com.apple.CoreSimulator.SimRuntime.iOS-14-2.18B79
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/xxx/Library/Developer/Xcode/DerivedData/xxx-fxdbdflsqnzzdxbhlcllflspvmcg/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode_12.2.app/Contents/Developer/Platforms/iPhoneOS.p

解决方案
在Pods-xxx-frameworks.sh中添加

 install_framework "${PODS_ROOT}/gm_bangbang_module/ios_lib/bin/App.framework"

如图:


1639985288847.jpg

相关文章

网友评论

      本文标题:编译失败问题总结

      本文链接:https://www.haomeiwen.com/subject/eilzfrtx.html