I got this error.
ld: warning: directory not found for option
'-L/Users/span/Desktop/testbridge/platforms/ios/build/Debug-iphoneos'
ld: library not found for -lMMWormhole clang: error: linker command
failed with exit code 1 (use -v to see invocation)
After run pod install or pod update you must use the new .xcworkspace file instead of the old .xcodeproj file.
It happens because .xcworkspace contains your .xcodeproj and the pods.
After that you should be able to run normally.
Related
I wanted to test firebase initial app on Unity. I made a build from Unity in macOS and in Xcode project folder, I have runned the pod command successfully.
pod install
After this I opened Xcode project and I clicked to build button. Before this, I was getting framework not found error. I fixed it and now I am getting
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/FirebaseAuth'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/FirebaseCore'
ld: warning: directory not found for option '-L/Users/aliavci/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/GTMSessionFetcher'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/ali/Library/Developer/Xcode/DerivedData/Unity-iPhone-giljorflztrrychfchrkhcfbqtbh/Build/Products/ReleaseForRunning-iphoneos/nanopb'
ld: library not found for -lFirebaseAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have already added library pathes to library search path. I added some screenshots as attachments.
I solved the error by opening ".xcworkspace" file, instead of ".xcodeproj" file.
I'm trying to use a cocoapod with my Xcode project (Swift).
When I try to Build the project it fails with:
Apple Mach-O Linker Error Group
- "_OBJC_CLASS_$_FSCalendar", referenced from:
- clang: error: linker command failed with exit code 1 (use -v to see invocation)
Errors
Any ideas what could be causing this?
(The cocoapod I am using is: https://github.com/WenchaoD/FSCalendar
UPDATE
I have added the frameworks and now I am just getting "clang: error: linker command failed with exit code 1 (use -v to see invocation)"
UPDATE
Full error:
ld: warning: directory not found for option '-F/Users/me/Documents/APP/build/Debug-iphoneos/FSCalendar'
ld: warning: directory not found for option '-F/Users/me/Documents/APP/build/Debug-iphoneos'
ld: framework not found FSCalendar
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried everything suggested on the internet for the same issue and nothing resolved this. I fully re-installed Xcode and Cocoapods, set up the project exactly the same as before and it is now working.
After I ran pod install on the new name I changed my project to, I had this error cause the pod framework was not linking to NEW project name and was still looking for OLD name.
I resolved by going into my projects 'Linked Frameworks and Libraries' in the Targets section and removing the OLD framework that has the OLD project name.
Targets > General > Linked Frameworks and Libraries > -(Pods_OLD_PROJECT_NAME.framework)
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
when build project,show this error,nothing to add in link binary with libraries,i don't know the reason
library not found for -lPods-Doppio-Mantle
I guess you were meaning after you install pod you have an error like that:
ld: library not found for -lPods-Doppio
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Did you open the xworkspace that Cocoapods created, instead of xcodeproj?
Or check if you install pod in the right directory. I mean in the directory of your Project:
cd myProject
pod install
I'm using xcode 5 for my mobile app project. I got this error when I try build the project.
ld: warning: directory not found for option '-L\\\\\\\"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WorklightSDK\\\\\\\"'
ld: warning: directory not found for option '-L/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: warning: directory not found for option '-F"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/Frameworks"'
ld: warning: directory not found for option '-F/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: framework not found sqlcipher
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: warning: directory not found for option '-L\\\\\\\"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WorklightSDK\\\\\\\"'
ld: warning: directory not found for option '-L/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: warning: directory not found for option '-F"/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/Frameworks"'
ld: warning: directory not found for option '-F/Applications/MAMP/htdocs/rmbp/apps/rmbp/iphone/native/WikitudeSDK'
ld: framework not found sqlcipher
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Why?
This error is because of some missing libraries in your project.
Check in your Build Phases -> Link Binary With Libraries. Any of your framework may had been removed from there.
Add it and Clean and Build your project. It should work fine.
Hope it helps you.
There is another probability that you are using Cocoa Pods to install the library but not open the workspace (*.xcworkspace) file of the project after pod install was successfully executed.