xcode error: linker command failed with exit code 1 googletoolboxmac - ios

ld: warning: directory not found for option
'-F/Users/nicksfikas/Library/Developer/Xcode/DerivedData/Tic_Toe-alfdrybbuuvwxqfdmqfxrrljmyli/Build/Intermediates.noindex/SwiftMigration/Tic
Toe/Products/Debug-iphoneos/GoogleToolboxForMac' ld: framework not
found GoogleToolboxForMac clang: error: linker command failed with
exit code 1 (use -v to see invocation)
what should I do?

This is because a 3rd party library is missing from your system..
try
I encountered the same problem and my solution is as follow:
Close the current project in xcode ---> Go to your project file and open the project by clicking the .xcworkspace file. Note: not the .xodeproj file.
or
You can clean the project in Product Tab and select clean. To build select build in product tab in Xcode.
hope it works.. :)

Maybe you installed a pod file and you are still trying to build from the .xcodeproj file instead of .xcworkspace

Related

React Native 0.63.2 iOS Build Error with `ld: library not found for -lAppAuth`

I was trying to build my RN project for iOS and having an error
ld: library not found for -lAppAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Do you have any ideas on how to solve this? I also tried to open .xcworkspace file but I am not sure if my xcode is opening the correct file. How do you tell if the xcode is opening xcworkspace or xcodeproj file?
I am on Mac Catalina with XCode 11.4.1. RN 0.63.2.
-- Updated --
I found out that there is an extra -L in front of -L....AppAuth as following. Is this bug related to this?
- L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L -L/Users/aungmt/Library/Developer/Xcode/DerivedData/myanlearn_for_students-asipdyxbdtsgxofrgmvaagrgceyh/Build/Products/Debug-iphonesimulator/AppAuth
Got exactly the same error.
Go to Project Build Settings
Find "Search Paths"
Remove $(inherited) from "Library Search Paths"
Close the xcode and open .xcodeworkspace rather than .xcodeproj file and clean build

"Linker command failed with exit code 1" message when building project after adding RMQClient framework to XCODe 7.3 Project

I am trying to add RMQClient framework to my XCODE 7.3 project.
I am following the steps as specified in https://github.com/rabbitmq/rabbitmq-objc-client as well as in the RabbitMQ official site.
After adding the framework and running Tools->Build I am receiving
ld: framework not found RMQClient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error messages and can't import any of the header files from the framework.
Any suggestions for this issue?
Copying the framework package to the Project tree on Xcode solved the problem.
remember to make sure the framework is also linked and files are copied in the Build Phases section

Library not found | linker command failed

I try to build and run my Xcode project but I continue to see it fail due to this issue below.
I tried to clean and build - didn't work
set bitcoede to no - didn't work
reinstall cocoa pods/updatecocoapods - didn't work
Troubleshooting cocoa pods with their link (https://guides.cocoapods.org/using/troubleshooting.html) - didn't work
any ideas? I am using the Firebase cocoa pods and I am in the process of creating a user login page.
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had something similar. My project is setup a bit differently.
1) First I change my .xcodeproj to a workspace. From "Files->Save As Workspace.." menu option.
2)Ensured that in my project folder that "pod install" had worked and had all the frameworks under the pods folder.
3)Drag the pod.xcodeproj from the project folder into xcode to the top of the project list.
Compiling now succeeded for me.
Hope this helps if you are still having this issue.

xCode error: linker command failed with exit code 1 (use -v to see invocation)

So I am trying to change my application directory (I moved my project in new folder) and this error occurred. I tried to clean and rebuild my project, restart xCode and mac, nothing helps. Looks like the problem is that I need to update old path somewhere, but I don't know where exactly.
Error stack:
ld: file not found: /Users/panich/Library/Developer/Xcode/DerivedData/BuildingLoyalty-ezexzzfxemzfmsfdygvetpstlugg/Build/Products/Debug-iphoneos/BuildingLoyalty.app/BuildingLoyalty
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My project name - BuildingLoyalty. The error is also connected with BuildingLoyaltyTests. Thx.
Screenshot:
Go to your Project, then select your Test target, then under Testing clear the values of Debug and Release like this
You should try to delete your DerivedData folder.
In your case, it seems to be located here : /Users/panich/Library/Developer/Xcode/DerivedData

Library not fount -lPods

I got follwing errro in my application.
ld: warning: directory not found for option '-L/Users/idev/Desktop/Swami/Project/Sources/Xcode/chronicle/chronicle/Vendor/openssl-1.0.1e/lib'
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please help me...
You need to open ".xcworkspace" instead of ".xcodeproj". the .xcworkspace is generated when you install pod on the project.
Xcode is not able to find the library, and hence the library error. Click on the project target, go to build settings, under search paths -> frameworks search paths, delete paths. You may have moved your desktop folder along with the library.
It seems project has been using http://cocoapods.org/. and that files are missing from your project.
You cant just download it from git. You need to install it from cocoapods.
you may follow Introduction to http://www.raywenderlich.com/64546/introduction-to-cocoapods-2 Tutorial

Resources