Build IOS with react native: ld: framework not found FIRAnalyticsConnector - ios

I'm integrating firebase into my react native application, basically for authentication and firestore database. Although I followed the installation instructions from the React Native Firebase, when I tried to build from the xcode, it gives me an error:
ld: framework not found FIRAnalyticsConnector clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm using Pods to build the project. Any help on this?

I found the solution to the question.
It's just adding the .framework files into the linked framework.
i.e:
from the xcode, open the Pods folder,
**
Pods -> Pods -> FirebaseAnalytics -> Frameworks ->
FIRAnalyticsConnector.framework
**
and add that file into the General -> Linked Frameworks and Libraries.

Related

Linking Xcode iOS project with OCMock using cocoaPod

I installed OCMock using cocoapod for my test project
target 'ProjectTests' do
use_frameworks!
pod 'OCMock'
end
In My test project, Build Phases -> Link Binary with Libraries, I added OCMock.framework (Under Pods). But the actual file doesn't seem to exist there. Am I missing something?
In Build setting, updated Header/Library search path with '/Pods/OCMock/Source/**' (recursive).
My headers are getting referenced, but when I try to the tests I get an error
ld: framework not found OCMock
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone help me resolve the issue?

Xcode How to remove the framework after remove the pod file

After I remove the pod file, I get an error of
ld: framework not found Alamofire
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Wondering where can I remove the framework? Tried to go Targets, then go Linked Framework and Libraries. I can't see the Alamofire framework exists. Also, in the framework search path, I also can't see a path for Alamofire.
Go to other linker flags in target->build settings. Then remove the frameworks.

Cocoapods linker error when running app from Xcode project

I tried installing some Cocoapods based on some instructions online and the whole process went as described. But I now get an error:
ld: framework not found Pods_Happ
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried installing a pod called "WCLShineButton". I think it has something to do with my app's framework because the "Pods_Happ.framework" is red:
Pods_Happ.framework red
Close the .xcodeproj file and open the .xcworkspace file in Xcode instead.
CocoaPods wraps your Xcode project (.xcodeproj) into an Xcode workspace. After that you should always work with the workspace instead of the project.

ld: framework not found FBSDKCoreKit clang

I am building an iOS messaging application with Layer+Parse. I have copied the files from the sample project into my exisiting application. At first I had over 40 errors upon building but I have worked it down to one. I have just added the Facebook SKD and I am left with this error:
ld: framework not found FBSDKCoreKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Any help with getting this to go away would help greatly. I have already tried these steps:
Add the -ObjC flag to your project's Other Linker Flags build setting.
"Allow Non-modular Includes in Framework modules" setting to YES in Build settings
Set "Enable Modules" (c and Objective-C) to No
I had the same error and I fixed it by copying FBSDKCoreKit.framework into my project folder before adding it to the project.
The same issue solved by adding the Facebook SDK path in Framework Search Paths
in xCode
1- Select the project
2- Open Build phase tap
3- Search on Framework Search Paths
4- Add this path
$(SRCROOT)/../node_modules/react-native-facebook-login/FacebookSDK
If you've switched from adding frameworks manually to using cocoapods, make sure you've removed any reference to FBSDKCoreKit (or any other FBSDK kit) from any existing project which is not the Pods project (look at "Link Binary With Libraries" under "Build Phases").
Try searching for it in Build Settings. I removed Facebook from Cocoapods and it was still in other linker flags causing problems.

Quickblox simple chat app

ld: warning: directory not found for option '-F/Users/igorkhomenko/workspace/quickblox-ios-sdk/Framework'
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am new to ios development and quickblox
I get this kind of error..what it is about ? M i missing to add some file .
you seem to have used cocoapods to add this library to your project.
Cocoapods creates, and requires you to use, an xcworkspace file to manage your Xcode project.
This is an error that occurs when you are still using the xcodeproj file instead of the xcworkspace.
Either that or your cocoa pods setup is broken. Try running pod install again or see the website to fix it.
Did you add the quicklblox library through Target Settings -> Build Phases -> Link binary with libraries -> + button?

Resources