New project fail to build on iOS (double-conversion.build failed)
react-native init
to create a new project and run react-native run-ios
/bin/sh -c /Users/zjy/Code/play/PlayWithRN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
Unpacking /Users/zjy/.rncache/boost_1_63_0.tar.gz...
tar: (Empty error message)
tar: Error exit delayed from previous errors.
Command /bin/sh failed with exit code 1
* BUILD FAILED *
The following commands produced analyzer issues:
Analyze /Users/zjy/Code/play/PlayWithRN/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/zjy/Code/play/PlayWithRN/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)The following build commands failed:
PhaseScriptExecution Install Third Party /Users/zjy/Code/play/PlayWithRN/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)Installing build/Build/Products/Debug-iphonesimulator/PlayWithRN.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Additional information, android version can run but only renders a white screen. Existing 0.44 app on my computer runs without any problems.
Same here
+1
+1
+1
Same here
same
+1
0.45.0 din't worked for me(same error) so i just used 0.44.0
react-native init [PROJECT_NAME] --version 0.44.0
same to me
+1
+1
Same here 👍
* BUILD FAILED *
The following commands produced analyzer issues:
Analyze /Users/davidsamacoits/Documents/Workspace/ReactNative/HelloWorld/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/davidsamacoits/Documents/Workspace/ReactNative/HelloWorld/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
The following build commands failed:
PhaseScriptExecution Install Third Party /Users/david/Documents/Workspace/ReactNative/HelloWorld/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/HelloWorld.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/HelloWorld.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Same here, totally crippled at the moment.
Xcode & react-native-cli both updated to latest releases.
edit: manually downgrading to [email protected] and [email protected] (which I THINK is the right version?), with no other changes, worked for me
Same here
same here
me too facing the same issue. There is an issue with 0.45. Like @llanginger said, after downgrading
npm install [email protected]
If you are using RN 0.44, you'd better keep it as below:
"react": "16.0.0-alpha.6",
"react-native": "0.44.0",
works well.
the same
xcode:8.3.2
react-native-cli: 2.0.1
react-native: 0.45.0
0.45.0 din't worked for me(same error) so i just used 0.44.0
react-native init [PROJECT_NAME] --version 0.44.0
----- Thank: shubhnik
This's worked for me!!
+1
same here !
+1
+1 Same here,
When run command run-ios, I didn't see the packager terminal open up.
So I follow the above instructions, downgrade react-native to 0.44.0 and wala, it works
+1
+1
_update:_
It works for me with:
xcode:8.3.3
react-native-cli: 2.0.1
react-native: 0.45.1
+1
+1
+1
+1
lol same here
This is a stupid issue. We can resolve it by moving react native project to a folder path without white space characters.
For ex this path will not work in RN 0.45.x: /User/viettranx/React Native/DemoApp
The reason is in where RN build the app, it export command was wrong:
export SCROOT=/User/viettranx/React Native/DemoApp
The right syntax must be
export SCROOT=/User/viettranx/React\ Native/DemoApp
That export command very important for the bash script in double conversion module.
** Remember delete your build folder in iOS for removing cache.
Hope it helps.
@viettranx But mine does not contain any space characters.
@irrigator it seems file /Users/zjy/.rncache/boost_1_63_0.tar.gz could not unpack. You can check it or try removing rncache.
@viettranx Tried that before, does not work. Still get the same error.
Does it work on your machine? RN 0.45 with Xcode 8.3.3?
@irrigator yes.
XCode: 8.3.3
React Native: 0.45.1
React: 16.0.0-alpha.12
@viettranx been following along. Your suggestions cleared up my errors that mimicked @irrigator , but now I am facing this one:
/Users/.../node_modules/react-native/third-party/boost_1_63_0/boost/config.hpp:30:12: 'boost/config/user.hpp' file not found
My project was working fine on RN 0.44.2, React: alpha.6
@bbrodsky plz check /Users/.../node_modules/react-native/third-party/boost_1_63_0/boost/config folder. It include file user.hpp although it empty (but comment lines).
May be it was an issue about unpacking or caching file.
@viettranx ya, the folder is empty...
Just remove third-party folder, it will re-download and unpack with react-native run-ios
command.
@viettranx That fixed it for me. Thanks!
@viettranx Worked for me too. Annoying, but at least it works now. Thanks!
clean xcode project and rerun working for me.
CMD + SHIFT + K
worked for me @shubhnik awesome!!
0 11.7M 0 16969 0 0 5 0 28d 11h 0:49:36 28d 10h 0
0 11.7M 0 16969 0 0 5 0 28d 11h 0:49:37 28d 10h 0
0 11.7M 0 16969 0 0 5 0 28d 11h 0:49:38 28d 10h 0curl: (56) SSLRead() return error -36
curl: Saved to filename 'boost_1_63_0.tar.gz'
I had the same issue.
DO NOT use space in project path
Why no one to solve this problem
when i upgrade rn to 0.45.1, this issue disappear for me
The problem is when building react-native for iOS, the process tries to download some files (using curl
) into ~/.rncache
. Specifically, they are "boost_1_63_0.tar.gz, double-conversion-1.1.5.tar.gz folly-2016.09.26.00.tar.gz, glog-0.3.4.tar.gz". The sources of them (at least some of them) are from AWS S3, which aren't accessible in some regions (I'm from China). And that caused the problem.
By using a proxy server and setting the http_proxy
and https_proxy
environment variables, curl will go through the proxy and the build should succeed.
This is not a problem with React Native. This issue can be closed now.
@irrigator Yeah, I upgraded RN to 0.45.1, but the same issue doesn't disappear. how can I set the http_proxy
and https_proxy
environment variables. Please let me know the example
Thanks
Also having this issue. I was on a train when starting react-native run-ios the first time. Maybe the unstable internet connection. And had to search around to find this out. I'm seeing
tar -xf ~/.rncache/glog-0.3.4.tar.gz
glog-0.3.4/ltmain.sh: (Empty error message)
tar: Error exit delayed from previous errors.
when running tar -xf on the file manually.
Either it should be bundled and be downloaded when you expect to happen downloads (npm install postinstallation maybe) or there must be a better error message!
I see this as a bug (missing error reporting or broken UX) that needs fixing.
Maybe you are using Xcode 8.1 , I upgraded Xcode to 8.2.1 which fixed my problem
I fixed my problem by deleting and downloading the ~/.rncache directory again.
This fixed my problem.
Maybe there are two possible reasons for this issue? Just thinking. Old xcode OR failed download.
Also there are really like 10 or so other issues that sound related (build fails because of sth. missing), all of them opened in the last days.
I fixed this problem by amending my package.json file.Changing react-native version from 0.45.1 to 0.44.2.
Same here, I also reverted to last commit before upgrading, due to this "double-conversion" issue.
+1
+1
+1
+1
Edit: Just want to say Thanks @shubhnik reverting the version to .44 worked for me.
me too
just upgrade react-native version to 0.44.0 then it fixed
+1
Managed to manually solve this by curl
ing these into ~/.rncache
https://github.com/google/glog/archive/v0.3.4.tar.gz
https://github.com/google/double-conversion/archive/v1.1.5.tar.gz
https://github.com/react-native-community/boost-for-react-native/releases/download/v1.63.0-0/boost_1_63_0.tar.gz
https://github.com/facebook/folly/archive/v2016.09.26.00.tar.gz
+1
I had some luck with the following:
rm -r ~/.rncache
rm -r <your-project>/node_modules/react-native/third_party
Then clean in Xcode and rebuild. Thanks @viettranx
@shubhnik thanks
react-native init [ProjectName] --version 0.44.0
如
react-native init myFifthApp --version 0.44.0
it solved. Thanks~
Faced the exact same issue for hours. Finally got it working with 0.44.0. Makes me apprehensive about learning React Native. Will it be any good if it keeps breaking?
What puzzles me, is that this seems to be an issue introduced in the build system and that no one from FB is yet seriously taken part in this discussion...
The tips here are tweaks/fixes that work for some, but do not address the real problem that has been introduced in 0.45.
For instance, I do not have spaces in my project path. I have cleared yarn/npm cashes, deleted node_modules, etc. But with my app with only a few linked projects I can simply not use 45 for building it on Mac. So I am happily back to 0.44 (app in TestFlight phase).
Can't any active repo contributor comment on what's going on?
BTW, I really LOVE RN - so great to build fast native apps with JS(X)!
Dare I ask... Any solution here? Running 0.44 with the same error 😞
Fresh 0.45.1 init
failed with the same error for me . Happy to provide more info if needed.
Basically just download the boost folder from here https://sourceforge.net/projects/boost/files/boost/1.63.0/ and replace it with the boost folder in your dummyproject/node_modules/react-native/thirdparty/ This is a workaround for now so you have to do this every time you create a new react native project . So use it until they fix the root of the problem . wasted a whole day searching for answers and finally found it!!
Thanks @shubhnik. version 0.44.0 worked for me too.
@JessicaBarclay run your project in Xcode ,tomorrow the version 0.44.0 worked for me,but today,I running with the same error ,so I running project in Xcode ,unbelievable,it running success
Woohoo!
5 days back I complained on this thread about not being able to get 0.45.1 working. I was just starting to learn React Native then, today, after completing a couple courses/tutorials and making my first app with 0.44.2, I finally got 0.45.1 working by changing my workspace directory to one with no spaces (sound funny lol) and just did a yarn install
after running init
..
I solved this problem by deleting .rncache folder within the home directory, deleting node modules and then yarn install, and works like a charm.
@raunaqss Can you explain this - "changing my workspace directory to one with no spaces (sound funny lol)". I am facing the same issue.
Faced the same issue . And got it working with 0.44.0. Don't know why.
@javitxumartinez Though solved the unpacking error for me, now stuck in "Use of undeclared type 'RCTBridge', 'RCTBundelURLProvider' "upgraded from 0.38 to 0.45 to use react native navigation.
@Msspl-PrashenjeetRoy by that I meant not having any whitespace in the project's path.
Faced the error. Works after renaming the project folder without spaces
upgrade macOS, Xcode , react, react-native to latest version
delete ~/.rncache folder
run react-native init ProjectName / delete node_module and run npm install for existing project
that's all, but take my whole day time
+1
+1
Same problem here! React is not working for me from version 0.44
Tried everything listed above (Including no space in directories).
Upgraded * to the latest version:
Xcode 8.3.3
react-native-cli: 2.0.1
react-native: 0.46.1
OSX Sierra 10.12.5
Just leaving this here.
Some of you might be able to fix this with https://github.com/facebook/react-native/commit/5c53f89dd86160301feee024bce4ce0c89e8c187#commitcomment-23014602
Fresh install react-native init Hello
breaks
Fresh install react-native init Hello --version 0.44.0
works
Since I symlink into my iCloud drive folder, I can confirm whitespace was the issue for me but I also have issues on 0.44 related to react-native-flux-router so I have to manually edit generated bash scrips till this is resorted.
I guess symlinking into my iCloud Drive folder wasn't that cool after all.. :(
thankyou @SudoPlz 5c53f89 helped me. but why isn't this in 0.46.2 already!?
EDIT: this fix is now in RN 0.46.3
@ofairfoul I was in 0.46.3 and I had same mistake.
The temporal solution: npm install [email protected]
Unpacking /Users/XXX/.rncache/double-conversion-1.1.5.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 609 0 609 0 0 104 0 --:--:-- 0:00:05 --:--:-- 157
ØÅØ
then the process hang
env:
react-native-cli: 2.0.1
"react-native": "0.46.4"
Hi all, I just ran into this issue as well. As noted above, the root cause is due to some of the files (in my case boost) not downloading to the cache properly.
The easiest way to fix this is:
That fixed it for me. You need to delete the .rncache dir or it will keep reusing the broken files and not compile. This definitely needs better error handling and to preferably terminate the build if it cannot download those files properly (although perhaps it didn't because I ran the build in xcode originally rather than with run-ios).
Note: This happened for me even on 0.46.4 which some people said was fixed.
wow, it is funny! I clone a repo, then use npm install
, react-native run-ios
to run it, got the exact same error about double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
, I tried above kinds of solutions, it still doesn't work.
then, I just suddenly thought, why not try yarn install
instead of npm install
, wow, surprise, it finally works! I want to cry, wasted me half day.
my project dependencies:
"react": "16.0.0-alpha.12"
"react-native": "0.45.1"
the full process:
> rm -rf ~/.rncache
> rm -rf node_modules
> yarn install
> react-native run-ios
Hope this can help you.
same problem!Then, I want to change react-native version.But,I met another problem :
Refusing to install package with name "react-native" under a package also called "react-native".
How to fix it?
Xcode version:8.3.2
I run the official Demo
+1
Tks @viettranx
This article would be helpful : Handling third party build error on react-native 0.46x
Duplicate of #14447
Duplicate of #14423
Most helpful comment
+1
0.45.0 din't worked for me(same error) so i just used 0.44.0
react-native init [PROJECT_NAME] --version 0.44.0