-
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
xCode fails to build new react-native init project due to 'library not found for -lDoubleConversion' #25546
Comments
Please try this. It's work for me in error which I am getting in installing pods. |
@shannonjensen Look like your project never run the 'pod install' command. Do the below steps
|
Thank you @irshadpc. I followed those steps and am still getting the same error. I uninstalled and reinstalled cocoapods previously. I ran pod install and then pod update in the ios directory and it looks like everything went as it should, no errors or warnings. But the xcode build still fails while react-native run-ios works fine. |
@shannonjensen Can you please share the pod file. |
Thank you @irshadpc Podfile:
Podfile.lock, in case of use:
|
@shannonjensen Look like your 'podfile' and 'podfile.lock' are same. I don't know why it happens. Can you please share the code. |
I had this problem. |
Ah, sorry @irshadpc, my mistake. The podfile.lock is:
|
@shannonjensen Please update your cocoapods and run the pod update command. Let me see what happens. |
Due to the fact that DoubleConversion is a third-party library, I think you should open your project with |
I am having the same problem, only when I try and build the tvOS build of my app in Xcode. I can build the mobile version through the CLI and through Xcode but as soon as I try and target the tv-OS simulator. Things I noticed as I was looking through the project/ios files:
Does anyone know how to get the tvOS to build? Any other Debugging ideas? I can get it to run for iOS but don't know enough about react-native or iOS development to effectively change the device target without some help. PS: I did open the .workspace, I did try the .proj but got different errors. |
I have the same problem when I try simulate on tv-ios then I found this post when I create the project from his code it works @danilvalov thanks |
Temp fix: right click on products, |
This fixed my problem, Thank U. |
@shannonjensen, any update on this. |
For any of you guys who can be still running into this issue, try to follow @xJkit 's solution above. Also, don't forget to run It worked for me! As an additional tip, try to clean Xcode's cache and/or delete I'm on Xcode version 11.1 (11A1027). |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
I have initiated a new react-native app with the react-native cli (
react-native init newproject
). The build works if I then runreact-native run-ios
but if I open the project in xcode (via the .xcodeproj file in the ios folder) then the build fails due to 'library not found for -lDoubleConversion'React Native version:
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
Memory: 28.45 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 12.5.0 - /usr/local/bin/node
Yarn: 1.16.0 - /usr/local/bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
IDEs:
Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.60.0 => 0.60.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-log-ios: 1.0.1
Steps To Reproduce
Describe what you expected to happen:
Build to fail with warning "library not found for -lDoubleConversion"
Snack, code example, or link to a repository:
The text was updated successfully, but these errors were encountered: