且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Apple Mach-O-Linker错误CocoaPods

更新时间:2023-12-03 14:55:04

当您没有正确的框架(可能缺少一个框架)或者链接器标记中没有正确的框架时,通常会发生此错误。

This error usually occurs either when you don't have the correct frameworks (might be missing one) or when you don't have the right thing in linker flags.

转到应用程序的主页面(在导航栏上点击您的应用程序名称或顶部部分) - >构建设置并在链接器标志下,确保没有任何内容你的其他链接器标志。当我在其他链接器标志中使用-ObjC时,我遇到了同样的错误。

Go to the main page for the app (on the navigation thing on the left click on your apps name or the top section) -> Build Settings and under Linker Flags, make sure there is nothing in your Other Linker Flags. I had this same error when I had -ObjC in my other Linker Flags.

您可能还想尝试将-lPods添加到其他链接器标志或添加CoreGraphics框架如果你还没有它。

You might also want to try adding -lPods to your Other Linker Flags or adding the CoreGraphics framework if you don't already have it.

祝你好运