pods issue, linker command failed with exit code 1

懵懂的女人 提交于 2019-11-30 04:53:00

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.

al_mukthar

This worked for me:

pod deintegrate 
pod install 

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

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
Mahesh Verma

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

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

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!

Prasann

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.

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.

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

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.

Chris Zeis

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.

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