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?
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.
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 ?
Go to Xcode -> Preferences -> Open "Location Menu" -> Open Folder With DeliveryData
Close your XCode;(even go to "Force Quit.." menu and close XCode there);
Clean trash bin;
And try build again.
Second case:
- Open your target -> Build Settings -> Build Active Architecture Only-> set "No" option
- Do the same with all your pods' target
Try to deleting Podfile.lock file and Pods folder. Then try to pods install.
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!
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.
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