"react": "16.8.6",
react-native: 0.60.4,
"react-native-webview": "^5.12.1"
Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety?
👉 Click here if you want to take another look at the Bug Report issue template.
Yes. I mentioned what I got just error with IOS but Android is working fine. Why I don't know.
My Xcode 10.2.
Just let me what Can I do?
So i was having this issue too. If you are updating from 0.59 to 0.60, ensure that you have deleted your Pods and reinstalled.
cd ios
rm -rf Pods
pod install
I had tried literally everything suggested by the awesome community.
The solution for me was to create an empty Swift file through Xcode and let Xcode create a Bridging-header.h file. The key was to not delete the Swift file after Xcode creating the bridging header file.
Same issue here, react-native run-ios works fine, when I try on simulator or device => Library not found for -lDoubleConversion
=/
the problem was open and build project in wrong place...
=> open ios/{Project}.xcodeproj
instead => open ios/{Project}.xcworkspace
I did the same thing but still, I am getting the same error. I have tried with 0.59 again then it was working fine.
If I create new a project run on Xcode I was getting the same iBundile error.
Can you try this please? https://github.com/facebook/react-native/issues/25820#issuecomment-515742426
Have the same problem, tried https://github.com/facebook/react-native/issues/25820#issuecomment-515742426 but still nothing.
Also working fine with 0.59.
I also encountered this problem.
This is a problem that I have been trying to work out all day too.
I had this problem and manage to solve it somehow, but ran into a different problem right after and forgot how I solve this one in the first place. So please apologize if this doesn't work for you. To give a bit of context, I was coming from version 0.59 and was trying to upgrade to 0.60.4
I'll leave first what I think it's the main cause of the problem followed by other steps that hopefully will help you.
What I think the problem is
When upgrading, I had a lot of leftovers from previous RN versions, regarding linked binaries. But because RN 0.60 handles everything with pods, now my linked binaries look link this instead:
Steps I took to overcome this problem
Again, this is if my memory is correct. And please branch out before you try this so that you don't screw your existing setup.
Check the differences from versions.
I've used https://react-native-community.github.io/rn-diff-purge/ to check and implement any changes between versions
Cleaned the linked libraries
Ran a bash script with the following. You obviously can run this individually or any of the ones that make more sense to you.
echo 'remove cache'
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/metro-*
watchman watch-del-all
npm cache verify
# echo 'removing derived data'
rm -rf ~/Library/Developer/Xcode/DerivedData
echo 'removing pods and node modules'
cd ios
pod deintegrate
pod cache clean --all
cd ../
rm -rf ios/Pods
rm -rf ios/Podfile.lock
rm -rf ios/build
rm -rf node_modules
rm -rf package-lock.json
echo 'cocoapods install'
gem install cocoapods
echo 'brew'
brew update && brew upgrade
echo 'installing node modules'
npm i
# mostly for any legacy stuff
echo 'react-native link'
react-native link
echo 'installing pods'
cd ios
pod update
pod install
Hope it helps.
Thanks @pmadruga but frustratingly that didn't work. For reference, it's only when archiving that the issue occurs for me.
It's the same issue as https://github.com/facebook/react-native/issues/25788
So when archiving, the error is due to not finding the folders (which appear to be the target support folders) e.g.
MYBUILD/BuildProductsPath/Release-iphoneos/DoubleConversion
MYBUILD/BuildProductsPath/Release-iphoneos/Folly
etc
And when I go to look in the MYBUILD/BuildProductsPath/Release-iphoneos
directory there are only files such as:
libReact.a
,
libdouble-conversion.a
etc.
--
Update - the fastest fix? to simply rebuild from scratch. Worked first time.
the problem was open and build project in wrong place...
=> open ios/{Project}.xcodeproj
instead=> open ios/{Project}.xcworkspace
use this command to open the workspace
cd ios && xed .
Just to point out that my issue was not related to forgetting to open the workspace. Before upgrading I was already using cocoapods. I now have a fully working version so will diff the configs to see what I can uncover.
still not found when pod install
RN: 0.60.0
I got the same issue.
react-native run-ios
and react-native run-android
works fine,
but got error in Xcode => library not found for -lDoubleConversion
Any solution here?
the problem was open and build project in wrong place...
=> open ios/{Project}.xcodeproj
instead=> open ios/{Project}.xcworkspace
It works.
Step 1: quit Xcode completely
Step 2: open ios/{Project}.xcworkspace
(PS: not ios/{Project}.xcodeproj
)
Cheers!
the problem was open and build project in wrong place...
=> open ios/{Project}.xcodeproj
instead=> open ios/{Project}.xcworkspace
It works.
Step 1: quit Xcode completely
Step 2: openios/{Project}.xcworkspace
(PS: notios/{Project}.xcodeproj
)Cheers!
Can you do a release build? Mine fails as soon as I use a release scheme. 😞 Debug works fine for me too...
@geekazoid-at
Yes, it works for me at debug/release/archive mode.
@paruckerr , that worked for me, but then I ran Archive and that succeeded, but no Organizer opened for me to export to generate .ipa
.
I was able to locate the directory it got stored in here:
~/Library/Developer/Xcode/Archives/<date>/ProjectName <date>.xcarchive
, but when I do an ls
there is nothing in there:
➜ NFIBEngage 9-5-19, 2.43 PM.xcarchive ls
➜ NFIBEngage 9-5-19, 2.43 PM.xcarchive
I do get this bug of -lDoubleConversion library not found.
react-native-cli: 2.0.1
react-native: 0.60.5
When I do a clean react-native init, then try to build it I do get this error.
@Ebeldev Make sure the project file you open is xxx. xcworkspace (not xxx. xcodeproj)
@diamont1001 If I build it with xcworkspace: I get this error : error: Build input file cannot be found: '/Users/etiennebelanger/Documents/apps/react-native-apps/InfosLaurentides/node_modules/react-native/ReactCommon/yoga/yoga/YGMarker.cpp'
@diamont1001 I was able to build a new project using npx react-native init and then build it with Xcode.
Using npx instead of npm does it make a difference?
I just found out that React Native 0.60 : If you weren't already, be sure to open iOS platform code using the xcworkspace file from now on.
https://facebook.github.io/react-native/blog/2019/07/03/version-60
@Ebeldev , yeah I figured that one out via trial and error. Since then no more doubleconversion error.
So when archiving, the error is due to not finding the folders (which appear to be the target support folders) e.g.
MYBUILD/BuildProductsPath/Release-iphoneos/DoubleConversion
MYBUILD/BuildProductsPath/Release-iphoneos/Folly
etcAnd when I go to look in the
MYBUILD/BuildProductsPath/Release-iphoneos
directory there are only files such as:
libReact.a
,
libdouble-conversion.a
etc.--
Update - the fastest fix? to simply rebuild from scratch. Worked first time.
@jimhill do you mean the fastest way was to start a new react native project and pull all the files into a fresh install? I've been stuck on this issue for days now and I'm running out of ideas.
@realripley00 yep. I just ran a fresh install and migrated everything. It actually didn’t take very long in the end. I’d spent days too trying to fix it.
on 0.60 I'm experiencing the same errors with Library not found / directory not found,
I can't launch my app because of this
Release build works but Building Archive is failing
on 0.60 I'm experiencing the same errors with Library not found / directory not found,
I can't launch my app because of thisRelease build works but Building Archive is failing
@craftmusic I wound up following @jimhill 's advice and starting a fresh new react native app and then moving everything over. I made sure to use all the newest versions of every package. It's kind of tedious, but it's worth it if you consider that our team had spent probably twenty hours collectively over a few days trying to figure out this bug. Starting a new project and pulling in all the files took maybe 3 or 4 hours total. I wish we'd have decided to that sooner.
I created a fresh react native app 0.61.2 and moved my code over but i'm still receiving the same errors of Library not found / directories not found when building release in xcode using the workspace file.
Xcode Debug builds and react-native run-ios work fine but building release still doesn't work. I've spent a ridiculous amount of hours on this.
This is my podfile:
I've only added in pods for react-native-ffmpeg, react-native-vector-icons as these libraries don't seem to support autolinking.
platform :ios, '12.1'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'rncm' do
# Pods for rncm
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
pod 'React', :path => '../node_modules/react-native/'
pod 'React-Core', :path => '../node_modules/react-native/'
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
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-Core/RCTWebSocket', :path => '../node_modules/react-native/'
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 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
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 'react-native-ffmpeg', :podspec => '../node_modules/react-native-ffmpeg/ios/react-native-ffmpeg.podspec'
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
target 'rncmTests' do
inherit! :search_paths
# Pods for testing
end
use_native_modules!
end
target 'rncm-tvOS' do
# Pods for rncm-tvOS
target 'rncm-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
I also can't make it past this issue, I keep getting Directory not found errors and i've tried everything / clearing node_modules + pods and caches + xcode derived data, build folders etc
Have tried everything now including starting multiple fresh apps for different react native versions 0.59, 0.60, 0.61 and cannot build Xcode release/archive
Development debug builds work fine.
Users/ivancaceres/Library/Developer/Xcode/DerivedData/{project name}/Build/Products/Release-iphonesimulator/DoubleConversion'
Did anyone find a solution yet? Regenerating the work space with cocoa pods obviously doesn't work. This is an blocking issue for releasing apps.
@nathantaal make sure your Xcode build settings look alright:
Does not work in my case
Did anyone find a solution yet? Regenerating the work space with cocoa pods obviously doesn't work. This is an blocking issue for releasing apps.
This is a really frustrating bug, and I don't think the React team is interested in fixing on past versions of react. The only way that I've consistently been able to resolve it is to start a complete new project using the latest version of RN and as new packages as you can otherwise and then import all the files from the old project. It's a bit hacky, but after spending the better part of a week trying to resolve it, the four or five hours that it took to rebuild the project using the old files was worth it. It seems to me once this issue comes up on a project, it's "burned." Your only option is to restart it.
Experiencing this issue too when initialising adding Cocoapods to an old React Native project, 0.59.10.
@jimhill sounds like you had a good experience migrating everything.
Hi All,
I'm also facing the same issue. Even if I create a new RN project from scratch, it cannot be archived. Development build works fine. Any proper solution ?
This worked for me
cd ios
pod deintegrate
pod install
pod update
cd ..
rm -rf node_modules
npm install
@nathantaal make sure your Xcode build settings look alright:
- Link Binary With Libraries:
should have your libPods-_projectName_.a- Target Dependencies should have React listed
- And finally make sure your Library search paths look right, you should be able to see the DoubleConversion library name in the paths:
You might be on to something here, but I wonder how to add React as a dependency since the .xworkspace file is removed since react-native 0.60?
+
For everyone the solution is different. For me, none of all worked. Because of React 0.60, React shouldn't be a Target dependency. The only thing I had to do was opening the xcodeworkspace and setting the recommended settings to my pods. Now I can archive apps like I always could.
Edit: 3 days later and I'm unable to reproduce this as a solution, after a fresh pod install and allowing the recommended settings I'm unable to archive the build.
Had this exact error when archiving. Degrading the ios target platform in the Podfile from 11.0 to 9.0 solved it for us. Had raised this previous when including a third-party library which did not support version 9.0. Remember to run 'pod deintegrate' and remove Podfile.lock before 'pod install' after changing this parameter. Took a long time to figure this out.
I also have this issue with react native 0.61, but only when building from command line..
Opening the xcodeworkspace and building or archiving the app works good, but calling xcodebuild form the terminal result in the same error
I'm getting the same as @emmanuele-villa. I get an error <projectName>Tests.m:11:9: fatal error: 'React/RCTLog.h' file not found
, and other times I get this library not found error. I tried adding React to the product -> manage schemes -> project area, but react is not listed.
I'm getting this:
ld: warning: directory not found for option '-L/Users/tapani/DerivedData/xx-hgcsjkjqxpxmxzhfzfhrxyutqfml/Build/Products/Debug-iphoneos/Folly'
ld: warning: directory not found for option '-L/Users/tapani/DerivedData/xx-hgcsjkjqxpxmxzhfzfhrxyutqfml/Build/Products/Debug-iphoneos/React-Core'
ld: warning: directory not found for option '-L/Users/tapani/DerivedData/xx-hgcsjkjqxpxmxzhfzfhrxyutqfml/Build/Products/Debug-iphoneos/React-cxxreact'
ld: warning: directory not found for option '-L/Users/tapani/DerivedData/xx-hgcsjkjqxpxmxzhfzfhrxyutqfml/Build/Products/Debug-iphoneos/React-jsi'
ld: warning: directory not found for option '-L/Users/tapani/DerivedData/xx-hgcsjkjqxpxmxzhfzfhrxyutqfml/Build/Products/Debug-iphoneos/React-jsiexecutor'
ld: warning: directory not found for option '-L/Users/tapani/DerivedData/xx-hgcsjkjqxpxmxzhfzfhrxyutqfml/Build/Products/Debug-iphoneos/ReactCommon'
ld: library not found for -lFolly
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The problem is that some of the pods are not built and have no files in DerivedData.
What is different in these pods compared to the others?
Folly
React-Core
React-cxxreact
React-jsi
React-jsiexecutor
I created a new RN app and it does not have this build error.
The newly created RN project includes the libraries/frameworks differently. For example the JavaScriptCore framework. It only has it under the Frameworks folder not in Link Binary With Libraries. This is really confusing, as I have used to adding libraries to the Build phases and they are automatically added to the frameworks. How does RN create the initial project to end up to this kind of project structure and how is it possible that this even works when the JavaScriptCore is not in the linked libraries?
Fixed the issue by commenting out use_modular_headers!
and adding use_frameworks!
This is because my project contains Swift files.
I also removed HEADER_SEARCH_PATHS
and LIBRARY_SEARCH_PATHS
lines from the Xcode project file.
I spent the last five days stuck on this, trying out everything suggested on the internet. This is what finally worked for me. (Before proceeding, make sure
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
is included in your podfiles
1. Delete Podfile.lock
2. cd ios
3. pod deintegrate
4. pod install
5. cd ..
6. rm -rf node_modules && yarn
7. Add use_frameworks! to your Podfile
Run react-native-run-ios or Build with Xcode by opening the xcworkspace file in your ios directory. Hope this helps someone!
same, none of solutions worked for me
I had the same problem. When I used the react-native run-ios
command everything worked fine, but if I passed the --configuration Release
I received the same error message. After a few hours I realised that the platform version in the Podfile was 11.0 but in the Xcode Project was 9.0.
After I corrected the version mismatch everything work fine.
My solution was also sync target ios version in Podfile platform :ios, '11.0'
and in Xcode General > Deployment Info > Target > iOS > 11.0
than close Xcode and run in cli cd ios && pod deintegrate && rm Podfile.lock && pod install
I get this bug of -lDoubleConversion library not found.
please help! @react-native-bot
I had tried literally everything suggested by the awesome community.
react-native :- 0.62.2
react:- 16.11.0
By changing platform :ios, '11.0' to '10.0' is worked for me
Most helpful comment
the problem was open and build project in wrong place...
=> open ios/{Project}.xcodeproj
instead=> open ios/{Project}.xcworkspace