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)
Related
I am currently having issues archiving my react native project in Xcode. Building and running my project works fine in Debug but archiving is a problem. The following error appears when attempting to archive:
ld: library not found for lBoringSSL-GRPC
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried removing 'Firebase/Firestore' from my Podfile, running pod install and then trying to archive but that doesn't seem to help. I would get the error:
ld: library not found for lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have tried removing the quotes from the library search paths in the build settings as suggested from someone who had a similar issue. This didn't help unfortunately.
I am opening the workspace. Although, when opening .workspace it does direct me to my project .xcodeproj. Not sure if this is the problem.
Can someone please assist? I would really appreciate it. I'm clueless here. I'm fairly new to Xcode and React Native.
Thank you.
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
I am new to IOS development and i tried to resolve the error but nothing works. Provide some suggestion.
ld: library not found for -lPods-XXXXXXX-AppInvites
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Open the project using workspace (that was generated by CocoaPods) instead of the xcodeproj. I think this will resolve your issue. Otherwise there may be some library missing in CocoaPods.
I have updated the xcode 5.0 to 5.1 today. I run the existed project but getting the error now. I had no issues while running that project on 5.0 version. The error is below :
ld: library not found for -lIOKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please someone help.
I re-added the frameworks but now I get another error which is below
ld: 62 duplicate symbols for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Try going to your project configuration -> Build Settings -> Architechtures -> Valid architectures
Check if you've got the armv7s label duplicated.
You can also try to set to YES the Build Architechtures Only.
Please Check:- goto build setting, writing in search bar "GCC", check weather compiler is setup or not (LLMV 5.xx).
I encounter the following errors
ld: warning: directory not found for option '- L/Users/andrecowardjr/Desktop/Parley/Parley/Google Analytics
ld: library not found for -lGoogleAnalytics
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Cant find out what the error is. Help needed.
Go into your project settings, check out the field 'Library Search Paths', and edit it so that it reflects where you moved your code/libraries. The error you're running into here is the linker can't find the Google Analytics library that your app is set up to link against (because you moved it).