Build failing, Parse-Server/Pod/Bolts - ios

I'm using Parse-Server/Heroku and just installed the pod for Parse in an iOS project of mine (written in objective C).
I am using Xcode Version 9.2 and pod version 1.3.1.
The macOS is High Sierra Version 10.13.2.
When I try to build the project, I get this error:
ld: library not found for -lBolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But Bolts seems to be installed, as a dependency when I run pod install.
Any idea about what I can do to solve the problem?
I presume the information I am giving here may not be enough. If more is needed to solve the issue please let me know what I should provide.

If you're using cocoapods, make sure you're opening the generated workspace and not the project itself.

Related

Apple Mach-O Linker Error Group - React Native after installing firebase

I've been facing the following issue since I installed firebase dependencies from https://www.npmjs.com/package/#react-native-firebase/app as specified for React Native. Since then the Xcode console prints out the following error:
"ld: library not found for -lBVLinearGradient clang: error: linker command failed with exit code 1 (use -v to see invocation)"
That lib from Linear Gradient was causing no issue at all since the install of firebase and proper links following the documentation. Now it seems to be affecting other dependencies as well.
I've already re-created the iOS folder, ran pod install and the error persists. After doing that process, I had to link the project using react-native link to load the fonts I was using and the error came back again.
I am using the following version of Xcode: "Version 10.3 (10G8)", and the firebase dependencies inside pods folder are: "Firebase", "FirebaseCore" and "FirebaseCoreDiagnostics".
Note: inside pods folder there is no "LinearGradient" pod at all.
Recent versions of Firebase require at least Xcode 11 - and very soon, will likely require Xcode 12.

react-native clean cache in xcode ios

I'm trying to install react-native-mixpanel in my app react-native v0.49.
when I compile it in android it works fine but in ios with xcode it shows me
ld: library not found for -lRNMixpanel-tvOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
so I decided to delete the plugin with commands:
react-native unlink react-native-mixpanel
npm uninstall react-native-mixpanel
then i run npm install again.
I don't see the plugin anymore in package.json.
in addition I delete any keyword in xcode settings with the word mixpanel but I still get the same error.
ld: library not found for -lRNMixpanel-tvOS
anyone to clean the cache or solve this issue?
thanks
I think i hit some simillar issue a few days ago on RN 49.3,
the problem was caused by some misplaced import (i'm not sure),
and for how i solved, it was by removing the library from Build phase-> Link Binary with libraries
and for Cleaning cache in xcode the shortcut is (Cmd + k).

objective-c linker error with OAuth2 library

I'm getting this error when I try to build my project in Xcode:
ld: library not found for -lGTMOAuth2 clang:
error: linker command
failed with exit code 1 (use -v to see invocation)
And we're using pods, so I opened the workspace, not the project.
I just got Xcode version 8.3.3, so not sure if this is causing any errors...
Turns out OAuth2 was not included in the Pod File, and I didn't check because I thought it was there before I pulled the latest version of the app. Thanks John Tracid.

weird error when trying to install ParseUI via CocoaPods

I'm trying to build an App using Parse as my backend and Xcode 7.0 & Swift 2. So in order to use PFQueryTableView, I need to use CocoaPods to install ParseUI first. I did this and used .xcworkspace to re-enter the project and then tried to compile and run it. But instantly I got this very nasty error:
ld: 823 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
These 2 lines are just the bottom 2 lines of the error messages, because there are a lot and they all start with something like:
duplicate symbol _OBJC_METACLASS_$_PFUserFileCodingLogic in:
or anything like that
I have many frameworks installed like Bolts, and it seems not a lot of people get this like me.
I had this same issue. I'd both installed Parse via Pods as well as by dragging the libraries into my Frameworks directory manually.
I removed the Pods directory and everything that said Pods from my app's build phases and it seemed to work out.

clang: error: linker command failed with exit code 1 (use -v to see invocation) when setting up cocoapods environment

I am setting the cocoapods dependency management tool for iOS project, when building my project i got this error:
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using Xcode 4.5 and Mac OS X Lion 10.7.4. Thanx in advance.
Can't comment yet, so posting as an answer.
It would help to have a bit more information on what you did to setup cocoapods, library settings in XCode and whether this is your first time using cocoapods or if the issue suddenly started. Try to give us a good idea of the details of your current situation.
For the time being, a little googling popped up this URL: https://github.com/CocoaPods/CocoaPods/issues/155
You might find it helpful, specifically the post near the bottom:
In my environment the issue was that the Pods project did not have a
target called ADHOC (as per the main project). I duplicated the Pods
release target, called it ADHOC, changed the OS Deployment Target to
my requirement (5.0) and then everything worked.

Resources