I have created the project, when I am trying to run the project I get the following error and build fails.
ld: file not found: /Users/mohammad/Library/Developer/Xcode/DerivedData/SPA-clncipsgigcqmgaourubdrurgfyz/Build/Products/Debug-iphonesimulator/SPA.app/SPA
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any suggestions.
when i got this type of error , i was removed derived data folder from following path :
/Library/Developer/Xcode/DerivedData
see this link for more help
How can I safely delete in my ~/Library/Developer/Xcode/DerivedData directory?
Related
I am trying to build an already existing iOS project. And I get this error:
ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried deleting Library Search Paths, installing pods with pod install, running .workspace but nothing is working.
Try following:
1. Go build setting
2. Find other linker command
3. Delete lAFNetworking from there
4. Clean and build
Following error is shown while building the project in Xcode
Apple Mach-O Linker Error Group
: Linker command failed with exit code 1 (use -v to see invocation)
try this way.
Go to ProjectTraget->BuidPhase->Compile Source And check duplicate .h File .If Duplicate File Found then Remove it.and try again to Build.
Referring to : https://github.com/kevinzhow/PNChart/
I downloaded the latest PNChart. Besides of the error "UICountingLabel/UICountingLabel.h not found" which is fixed by setting the build-debug-cert.
I am also getting this error which I can't fix. I tried to set the 'Build Settings -> Search Paths' to YES, but same problem. Anyone knows how to fix this ?
ld: warning: directory not found for option '-L/Users/xxx/Library/Developer/Xcode/DerivedData/PNChartDemo-giizuxibyqufwkdlwownbowndyew/Build/Products/Debug-iphonesimulator/Expecta'
ld: warning: directory not found for option '-L/Users/xxx/Library/Developer/Xcode/DerivedData/PNChartDemo-giizuxibyqufwkdlwownbowndyew/Build/Products/Debug-iphonesimulator/UICountingLabel'
ld: library not found for -lExpecta
clang: error: linker command failed with exit code 1 (use -v to see invocation)
.
I also don't understand what is meant by this line :
"Add a pod entry for PNChart to your Podfile pod 'PNChart' "
I tried sending the command "pod 'PNChart'" and error appeared. Ignore this error ? The command 'pod install' works.
Thanks
I cloned the project and tried to build it but got stuck due to the following error, can you tell me how to deal with it?
ld: library not found for -lJGProgressHUD
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have done pods install, but the error exists.
Need some help in solving this issue.
Well, That's what worked for me :
Open Build settings
Search for Other Linker flags
remove -l"Pods-XXXLibrary"
Thats it !
I used google signIn in my App. "build success" with simulator but an error appeared when I run with iPhone.
error message is as below:
linker command failed with exit code 1 (use -v to see invocation)
Thanks for any help.
ld: library not found for -lFMDB clang: error: linker command failed
with exit code 1 (use -v to see invocation)
I was getting same error and I got it resolved this way.
Try to set Build Active Architecture Only to NO for 'Pods' project and
your app's target
Make sure that you are using the .xcworkspace file
Don't use .xcodeproj file even if it run the app successfully on your device. It wouldn't help you to make a general build.
for more details
https://stackoverflow.com/a/28111728/348589