Apple Mach-O-Linker Error CocoaPods

前端 未结 3 1502
無奈伤痛
無奈伤痛 2020-12-17 19:42

I\'ve been trying to get my app up and running. From what I could tell the app was missing Cocoapods as a dependency. So. I installed and added Cocoapods. But I\'m still get

相关标签:
3条回答
  • 2020-12-17 20:13

    Xcode started displaying this message and I tried pretty much everything to solve it. What finally did the trick for me was deleting all content from ~/Library/Developer/Xcode/DerivedData/

    0 讨论(0)
  • 2020-12-17 20:17

    Open workspace file, not project file. Cocoapods automatically creates a xcworkspace file on the same directory as xcproject file.

    0 讨论(0)
  • 2020-12-17 20:20

    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.

    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.

    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.

    Good luck

    0 讨论(0)
提交回复
热议问题