gpt4 book ai didi

ios - swift dyld : Library not loaded - using CocoaPods

转载 作者:搜寻专家 更新时间:2023-10-30 22:00:18 25 4
gpt4 key购买 nike

我很抱歉这个问题看起来问得太多了,但无论我问了多少相关问题的答案,似乎都没有用。请参阅(按顺序)here , here , here , 和 here .

我在 iOS 8(仅限 iPhone)上运行 Xcode 6.4,使用 CocoaPods。提供了许多其他答案,似乎有一个build设置或一般设置在我的 Xcode 版本中不存在,得出许多没有帮助的结论。

作为引用,我关注了This CocoaPods Tutorial这很容易工作。但只有当我尝试将应用程序加载到我的手机上时(是的,我有有效的证书,并且我的其他应用程序在不使用其他依赖项的情况下也能正常工作),应用程序在即将加载时立即崩溃。

dyld: Library not loaded: @rpath/Pods_ExamplePods.framework/Pods_ExamplePods
Referenced from: /private/var/mobile/Containers/Bundle/Application/F109A377-3EA4-48C2-9042-CB6C384C9F30/ExamplePods.app/ExamplePods
Reason: image not found
(lldb)

在这里看到我将我的应用程序命名为“ExamplePods”

enter image description here

然后这是我的文件夹结构,在工作区模式下打开。请注意,只有 3 个依赖项。

enter image description here

然后查看“常规设置”和“build设置”

enter image description here

enter image description here

我完全不知所措,非常感谢帮助!

最佳答案

我看到您也收到了警告。警告是这样的吗?

ld: warning: -weak_framework is treated as -framework when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES). Weak linking may still happen based on availability mark-up in headers

如果是这样,您应该尝试保持框架弱链接并禁用位码..

在此处找到此屏幕截图。

如果这不起作用,请尝试禁用您未编译的任何其他内容。检查 pod 更新等。

关于ios - swift dyld : Library not loaded - using CocoaPods,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31754840/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com