-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS Xcode] React-Native build failed in Xcode with library not found in RN 0.60.5 #26106
Comments
the same |
any suggestion or solution ? |
error:library not found for -lDoubleConversion Seek help as well. |
both react-native run-ios and in xcode the same error |
Do the below steps go to ios/ |
I have no idea if this would help, but sometimes for my own app, attempting to build in Xcode multiple times in a row may result in a successful build. For example, I would try building ~5 times (each with a different 'file not found' error), and on the 6th time the build would succeed. |
Same thing here – on both Xcode and |
This may not help everyone but regarding the -IDoubleConversion library specifically, I noticed that my copy was incorrect so it might be worth checking. I used this copy instead to get past the missing -IDoubleConversion: https://github.com/facebook/react-native/blob/master/third-party-podspecs/DoubleConversion.podspec |
Hi guys, in fact, I don't know the real cause of this problem and how to fixed this issue.but I JUST UPDATE MY Xcode VERSION FROM 10.0 (10A255) TO 10.3 (10G8), REOPEN AND REBUILD IT WORKS . 😢 |
Having the a similar problem with my midsized project after upgrading to 0.60.5. It actually fails at finding CocoaLumberjack, but I expect this to be the case because of dependency and sorting. I am not 100% sure, but release builds seem to be rather the problem than debug builds?! I use AppCenter as my CI. I created this minimalist project (just I currently expect a problem with the generated .xcworkspace file, but that's a part I didn't dig into yet. Here are the logs of the minimalist iOS build that fails. |
the same |
same Problem |
It appears we got through our issue upgrading from 0.59 to 0.60. Maybe this will be helpful to you: Many of the libraries we were linking to in the "Link Binary with Libraries" build step in Xcode were now present in Cocoapods. By removing all of the libraries from that build step except for |
same here. |
if i recall correctly, the fix for me was the following change in the Fastfile platform :ios do
xcodeproj = './ios/MyApp.xcodeproj'
+ xcworkspace = './ios/MyApp.xcworkspace'
...
desc 'Build the iOS app'
lane :build do
certificates
- gym(scheme: 'MyApp', project: xcodeproj)
+ gym(scheme: 'MyApp', workspace: xcworkspace)
end
... |
I had the same problem when I tried to run the app on my iPhone. My environment: My steps to fix the issue:
Voila, it works for me. Hope this helps. 🤞🏼 |
thanks @EugeneYiminYan |
@rahulbhankar786 closed : ) |
@rahulbhankar786 Well, it definitelly is not perfect answer. I saw in discussion people, who did not resolve issue by opening "xcworkspace" instead of "xcodeproj". I for instance am allways openning "workspace" file. |
same |
thats definitely not the perfect answer. @M1sery did you read @EugeneYiminYan suggestion? more "perfect" would be "try to reopen xcode" |
I have reopen this issues. |
After much frustration, this 'fix' worked for me: |
same issue for fastlane. updated
fastlane version 2.142.0 |
Thank's @celwell! This fix worked for me too. |
I put 10th version of iOS everywhere where it was |
I had the same issue, I updated my podfile with |
Usually running |
Same problem here as described originally, for us we get this issue when trying to do an archive (release) build only - builds work fine for simulator and device in debug. I am running in a workspace, and tried deleting all targets except for the main one. Quitting and resuming Xcode does nothing. Deleting derived data, reinstalling cocopods, redoing pod install after deleting the Pods directory and Podfile.lock does nothing. Any ideas? The repo we are trying to get a successful archive build for is in this directory of our repo: https://github.com/namiml/react-native-nami-sdk/tree/master/examples/Basic |
@celwell Thank you. It worked for me
|
@hroland Thank you. It worked for me |
Hey guys, Any update for this issue, I am also facing this issue after upgrading from 0.57.8 to 0.62. |
I changed the build to new build system from legacy. it worked 🤩👌🏻 |
Still having this issue... none of these solutions helped.. |
|
|
It works for me. Thanks. |
Hey all! Closing this issue as it is an old version of RN. If this occurs with the latest version feel free to open a new issue. |
yarn upgrade-interactive --latest # update all dependancies or also try cd ios Also try deleting and reinstalling node modules before building the app |
Steps To Reproduce
Using
react-native run-ios
is successfully, when I use Xcode to build and run the project, produce this error:` ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/DoubleConversion’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/Folly’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/RCTWeChat’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/RNGestureHandler’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/RNReanimated’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/RNSVG’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-Core’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-DevSupport’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTActionSheet’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTAnimation’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTBlob’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTImage’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTLinking’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTNetwork’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTSettings’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTText’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTVibration’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-RCTWebSocket’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-cxxreact’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-jsi’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-jsiexecutor’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/React-jsinspector’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/glog’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/react-native-splash-screen’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/react-native-webview’
ld: warning: directory not found for option ‘-L/Users/misery/Library/Developer/Xcode/DerivedData/example-gxstsmzrnmryezfjrdscgixueydb/Build/Products/Release-iphonesimulator/yoga’
ld: library not found for -lDoubleConversion
clang: error: linker command failed with exit code 1 (use -v to see invocation) `
My Environment:
React Native version
:v 0.60.5
Xcode version
:Version 10.0 (10A255)
Podfile
:`platform :ios, '9.0'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'example' do
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/React'
pod 'React-DevSupport', :path => '../node_modules/react-native/React'
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'
pod 'RNSVG', :path => '../node_modules/react-native-svg'
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'RNSVG', :path => '../node_modules/react-native-svg'
target 'exampleTests' do
inherit! :search_paths
end
use_native_modules!
end
target 'example-tvOS' do
target 'example-tvOSTests' do
inherit! :search_paths
end
end`
Describe what you expected to happen:
react-native run-ios
andreact-native run-android
was both successfully.2.but use Xcode build button failed.
The text was updated successfully, but these errors were encountered: