Undefined symbols for architecture armv7: cocoaPods iPhone 5

有些话、适合烂在心里 提交于 2019-12-01 03:29:21

In Xcode, hold the option key and select Product / Clean Build Folder. Then rebuild. I've had this exact problem and this "deep clean" resolves it for me.

Also, ensure that for your Pods project that the build setting for Build Active Architecture Only is set to NO.

This works great in most cases :

  1. Make sure your Project targets have $(inherited) present in the Other Linker Flags in Build Settings.
  2. If the above hasn't solved it already, Close Xcode.
  3. Open Finder, and select Go in Menu bar and then Go to folder
  4. Paste the following - ~/Library/Developer/Xcode
  5. Find the (devil) folder named DerivedData
  6. Delete it, that is move to trash (Optional : Clean the trash)
  7. Open your Workspace in Xcode now (Optional : Clean your project)
  8. Build your project... thank me later.

If this doesnt work, create a new question and post your logs of pod install there. Something is going wrong in installation itself. Make sure you are using a stable latest version of Cocoapod.

None of the answers above helped me. It turns out using frameworks for my pods instead of static libraries fixed it. Adding use_frameworks! to Podfile fixed it:

platform :ios, '9.3'
use_frameworks!

...rest of podfile
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!