pods issue, linker command failed with exit code 1

淺唱寂寞╮ 提交于 2019-11-29 02:27:11

问题


when I run my project, I get errors like this:

It seems that all frameworks in my cocoapods have problem. Is it my problem of my cocoapods? I have reinstalled my cocoapods, and used 'pod setup' or 'pod install' and others, but it doesn't work, and I still have the same errors... And in Xcode, red 'rd' on the 'Podfile' like this, I don't know if it is related to errors.

pod 1.0.0 ruby 2.0.0 xcode 7.3.1 Anyone have the same problem?


回答1:


I faced similar problem in my project. After hours of searching I found that in GENERAL settings of the project in section "Linked Frameworks and Libraries" there are two files for pods: "libPods.a" and "Pods_ProjectName.framework"

Deleting "libPods.a" helped in my case.




回答2:


This worked for me:

pod deintegrate 
pod install 



回答3:


Actually issue is related to dependency management for xcode project. You can refer below answer link for solving "linker issue" in xcode. That worked for me.

https://stackoverflow.com/a/38371271/6827175




回答4:


There are can be a few different cases;

Also, it would help to know all information from your print screen :)

Have you tried to clean your delivery data ?

  1. Go to Xcode -> Preferences -> Open "Location Menu" -> Open Folder With DeliveryData

  2. Close your XCode;(even go to "Force Quit.." menu and close XCode there);

  3. Clean trash bin;

  4. And try build again.

Second case:

  1. Open your target -> Build Settings -> Build Active Architecture Only-> set "No" option
  2. Do the same with all your pods' target



回答5:


Try to deleting Podfile.lock file and Pods folder. Then try to pods install.




回答6:


I changed Deployment target from 10.0 to 11.0, and this work !




回答7:


I spent 2 days to find the real culprit. It turns out that I tried to run the "Project" instead of running the "Workspace". How this will help others!




回答8:


First, you need to check your Xcode version and than check pod version which you installed. If your Xcode version under 9.0 then you should reinstall pod with but old version not latest. It will work.




回答9:


In my case, I plugged out my real device but in the simulator still it looks Generic iOS device. So I changed it with some simulator and it is fixed.




回答10:


in my case i changed run simulator to iphone x with ios 11.4 , then it compailed and run OK , then i run in iphone 4s with ios 9.3 , and it wont got error

i think probably issue is in ui test and unit testing components , i hope that apple fix them




回答11:


This happened to my project because I used Admob in my Unity project and then build it for iOS. I did not note that Unity-iPhone.xcworkspace is created to open instead of Unity-iPhone.xcodeproj. I was keep opening Unity-iPhone.xcodeproj and it was giving the error. Opening the project with Unity-iPhone.xcworkspace fixed the problem for me.




回答12:


Same issues here. I had not made any changes other than adding some icons to the project. After a few hours of clicking around, I clicked on the pods project and changed the search path to Yes. That solved it for me.



来源:https://stackoverflow.com/questions/37290207/pods-issue-linker-command-failed-with-exit-code-1

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