question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS build fails with library not found error

See original GitHub issue

Steps to reproduce

  1. Add a Podfile in React Native project:
platform :ios, '9.0'
use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/twilio/cocoapod-specs'

target 'MedChat' do
  pod 'Yoga', path: '../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'

  pod 'React', :path => '../node_modules/react-native'

  pod 'react-native-twilio-video-webrtc', path: '../node_modules/react-native-twilio-video-webrtc'

  pod 'RCTTwilioChat', :path => '../node_modules/react-native-twilio-chat/ios'
  pod 'TwilioChatClient', '~> 0.16.0'
  pod 'TwilioAccessManager', '~> 0.1.1'
end

  1. pod install
  2. react-native run-ios

Expected behaviour

App launches in simulator

Actual behaviour

Build command fails with library not found error. Stacktrace:

Ld build/Build/Products/Debug-iphonesimulator/MedChat.app/MedChat normal x86_64
    cd /Users/mariussteikunas/code/medcall-app/ios
    export IPHONEOS_DEPLOYMENT_TARGET=10.2
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/mariussteikunas/Documents/anaconda/anaconda3/bin:/Users/mariussteikunas/.rvm/gems/ruby-2.3.0/bin:/Users/mariussteikunas/.rvm/gems/ruby-2.3.0@global/bin:/Users/mariussteikunas/.rvm/rubies/ruby-2.3.0/bin:/Users/mariussteikunas/.nvm/versions/node/v6.10.3/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/android-sdk/tools:/usr/local/share/android-sdk/platform-tools:/Users/mariussteikunas/.rvm/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk -L/Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator -F/Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator -F/Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/RCTTwilioChat -F/Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/React -F/Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/Yoga -F/Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/react-native-twilio-video-webrtc -F/Users/mariussteikunas/code/medcall-app/ios/Pods/TwilioAccessManager -F/Users/mariussteikunas/code/medcall-app/ios/Pods/TwilioChatClient -F/Users/mariussteikunas/code/medcall-app/ios/Pods/TwilioVideo -filelist /Users/mariussteikunas/code/medcall-app/ios/build/Build/Intermediates.noindex/MedChat.build/Debug-iphonesimulator/MedChat.build/Objects-normal/x86_64/MedChat.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=10.2 -Xlinker -object_path_lto -Xlinker /Users/mariussteikunas/code/medcall-app/ios/build/Build/Intermediates.noindex/MedChat.build/Debug-iphonesimulator/MedChat.build/Objects-normal/x86_64/MedChat_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lc++ -framework RCTTwilioChat -framework React -framework TwilioAccessManager -framework TwilioChatClient -framework TwilioVideo -framework react_native_twilio_video_webrtc -framework yoga -ObjC -lc++ -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/mariussteikunas/code/medcall-app/ios/build/Build/Intermediates.noindex/MedChat.build/Debug-iphonesimulator/MedChat.build/MedChat.app.xcent -framework CoreData -lsqlite3.0 -lz -framework SystemConfiguration /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTAnimation.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libReact.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTActionSheet.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTGeolocation.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTImage.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTLinking.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTNetwork.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTSettings.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTText.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTVibration.a /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/libRCTWebSocket.a -lRNDeviceInfo -lRCTGoogleAnalyticsBridge -lRNVectorIcons -lRCTTwilioChat -lTWReactNativeTwilioVideoWebrtc -framework Pods_MedChat -Xlinker -dependency_info -Xlinker /Users/mariussteikunas/code/medcall-app/ios/build/Build/Intermediates.noindex/MedChat.build/Debug-iphonesimulator/MedChat.build/Objects-normal/x86_64/MedChat_dependency_info.dat -o /Users/mariussteikunas/code/medcall-app/ios/build/Build/Products/Debug-iphonesimulator/MedChat.app/MedChat

ld: library not found for -lTWReactNativeTwilioVideoWebrtc
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Environment

  • Node.js version: v6.10.3
  • React Native version: 0.44.3
  • React Native platform + platform version: iOS 9.0

react-native-twilio-video-webrtc

Version: 1.0.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
simonasdevcommented, Dec 10, 2017

I’m at a loss for words. Removed the library from the project, things started working, added it again by doing no different steps than before, and it worked. App built and ran correctly. Thanks for the library, I guess 😄

0reactions
gagamilcommented, Feb 23, 2018

Understood. This is my first react native project so I am not sure I fully understand what react-native link is. Have tried the Example in your repo - it worked. But my new app doesn’t. Thus my questions )

2018-02-23 19:47 GMT+07:00 Simonas Gildutis notifications@github.com:

Haven’t updated the library to the latest version yet, but yes you can just add .xcodeproj file and it should fall to your libraries section. And the *.a file can be added in ‘General’ tab under ‘Linked Frameworks and Libraries’. To be fair, this should be automated with react-native link, but we’ll have to do with what we have

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/blackuy/react-native-twilio-video-webrtc/issues/68#issuecomment-368000224, or mute the thread https://github.com/notifications/unsubscribe-auth/ACet3LqunU8Rd04flfySl_rdwZ3YjxUoks5tXrN9gaJpZM4QnxaC .

– Regards, Gabriel

Read more comments on GitHub >

github_iconTop Results From Across the Web

xcode library not found - Stack Overflow
In my case, the project uses CocoaPods. And some files are missing from my project. So I install it from CocoaPods: https://cocoapods.org/.
Read more >
Why am I getting a 'Library not found' error in Xcode during ...
You're experiencing this issue because Xcode can't find the location of the library, simply tell Xcode where they are by adding the right ......
Read more >
xcode 9 ld: library not found for … | Apple Developer Forums
Hi,. I created a static swift library, which I'm trying to use from another project. When trying to build the project where I...
Read more >
Xcode Build error: library not found for -lDoubleConversion
If nothing works, try regenerating your xcodeproj and xcworkspace for your ios app. 1. react-native upgrade <version> --legacy true. 2. Remove ...
Read more >
iOS Build failed due to some library issue. (library not found for
F/Users/ubi/Library/Developer/Xcode/DerivedData/VMAppWithKonylib-cfmjbaoumctpsbgsoifzbbmypxba/Build/Intermediates. · [node console]ld: library ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found