react-native library not found for -lRNSVG-tvOS - ios

I'm using react-native for developing android and ios app.
I know nothing about ios-development and Xcode environment.
When i run react-native run-ios i see this error:
ld: library not found for -lRNSVG-tvOS
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
Any ideas?
UPD:
This might be caused by react-native-svg or react-native-vector-icons package.

related to https://github.com/facebook/react-native/issues/13783
Just removed *-tvOS.a file from libraries
From https://github.com/rebeccahughes/react-native-device-info/issues/258#issuecomment-340434729:
Seems like a bug caused by react-native link
You can manually delete
libRNDeviceInfo-tvOS.a in Xcode -> [Your iOS build target] -> Build
Phrases -> Link Binary with Libraries.

We had a multi target setup for multiple clients. This library was added to base target. Make sure to remove from correct target.

Related

React Native 0.63.2 iOS Build Error with `ld: library not found for -lAppAuth`

I was trying to build my RN project for iOS and having an error
ld: library not found for -lAppAuth
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Do you have any ideas on how to solve this? I also tried to open .xcworkspace file but I am not sure if my xcode is opening the correct file. How do you tell if the xcode is opening xcworkspace or xcodeproj file?
I am on Mac Catalina with XCode 11.4.1. RN 0.63.2.
-- Updated --
I found out that there is an extra -L in front of -L....AppAuth as following. Is this bug related to this?
- L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.0/iphonesimulator -L -L/Users/aungmt/Library/Developer/Xcode/DerivedData/myanlearn_for_students-asipdyxbdtsgxofrgmvaagrgceyh/Build/Products/Debug-iphonesimulator/AppAuth
Got exactly the same error.
Go to Project Build Settings
Find "Search Paths"
Remove $(inherited) from "Library Search Paths"
Close the xcode and open .xcodeworkspace rather than .xcodeproj file and clean build

"Linker command failed with exit code 1" message when building project after adding RMQClient framework to XCODe 7.3 Project

I am trying to add RMQClient framework to my XCODE 7.3 project.
I am following the steps as specified in https://github.com/rabbitmq/rabbitmq-objc-client as well as in the RabbitMQ official site.
After adding the framework and running Tools->Build I am receiving
ld: framework not found RMQClient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error messages and can't import any of the header files from the framework.
Any suggestions for this issue?
Copying the framework package to the Project tree on Xcode solved the problem.
remember to make sure the framework is also linked and files are copied in the Build Phases section

Library not found | linker command failed

I try to build and run my Xcode project but I continue to see it fail due to this issue below.
I tried to clean and build - didn't work
set bitcoede to no - didn't work
reinstall cocoa pods/updatecocoapods - didn't work
Troubleshooting cocoa pods with their link (https://guides.cocoapods.org/using/troubleshooting.html) - didn't work
any ideas? I am using the Firebase cocoa pods and I am in the process of creating a user login page.
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had something similar. My project is setup a bit differently.
1) First I change my .xcodeproj to a workspace. From "Files->Save As Workspace.." menu option.
2)Ensured that in my project folder that "pod install" had worked and had all the frameworks under the pods folder.
3)Drag the pod.xcodeproj from the project folder into xcode to the top of the project list.
Compiling now succeeded for me.
Hope this helps if you are still having this issue.

Chartboost with Unity 5 on xcode missing linking file

Has anybody used chatboost with unity 5 on IOS? I get a linking error and a warning
warning: directory not found for option '-L/Users/alexm/Downloads/iosFree/LibrariesPlugins/iOS'
ld: library not found for -lChartboost
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On the Android everything is fine. Do I have to do anything extra other what i mentioned on chartboost integration page?
Make sure that if the Chartboost plugin is using some PostprocessBuildPlayer stuff, that is isn't getting clobbered by a different script.
If, in XCode, you check the build phases tab for linked frameworks and you don't see Chartboost.framework, it's likely the build script not running correctly.

Library not found for lgcov

I'm using Xcode 4.6 and I've been writing some Unit Tests for an iOS app. I've tried to do some code coverage following from this tutorial: http://supermegaultragroovy.com/2005/11/03/unit-testing-and-code-coverage-with-xcode/ .
I've followed the 3 steps for my AppTests Target:
Check “Generate Test Coverage Files”
Check “Instrument Program Flow”
Add “-lgcov” to “Other Linker Flags”
The problem is that if I hit "Test" I get this error:
ld: library not found for -lgcov
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I fix this?
I think it's caused by your xcode version. Apple remove the library code-coverage needed after xcode 4.3. You need to add one file to your project manually. You can see check this blog for more details: http://www.gerardcondon.com/blog/2012/02/21/code-coverage-updates-for-xcode-4-dot-3/
You can try this. I tried but failed since my project include C++ code. I think that's because xcode 4.6 has not supported this feature...

Resources