From 5447ca67076a110e2b0df03b014f53d1df4646ab Mon Sep 17 00:00:00 2001 From: Alexander Chernoshej Date: Fri, 16 Feb 2018 14:29:42 -0800 Subject: [PATCH] Change irrelevant Products path in ./local-cli/runIOS/runIOS.js Summary: https://github.com/facebook/react-native/issues/7308 and many of the same Seems like xcode cli tool isn't create ./build directory any more but place Products right inside ./Build (may check while creating single view ios application in XCode) * edit hardcoded path to {appName}.app Command `$ react-native run-ios` is often lead to `Entry, ":CFBundleIdentifier", Does Not Exist` I find out how to fix it in current version of RN and Xcode cli tools Just try to do `$ react native init {appName}` and then `$ react native run-ios` if everything fine it means my approach is right :) Closes https://github.com/facebook/react-native/pull/17963 Differential Revision: D7014984 Pulled By: hramos fbshipit-source-id: da62f130e6ebf7d3acd09d36525838d5c9684e75 --- local-cli/runIOS/runIOS.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/local-cli/runIOS/runIOS.js b/local-cli/runIOS/runIOS.js index cb459a81c2d15e..d2ec2b82d63df1 100644 --- a/local-cli/runIOS/runIOS.js +++ b/local-cli/runIOS/runIOS.js @@ -26,7 +26,7 @@ const getBuildPath = function (configuration = 'Debug', appName, isDevice) { device = 'iphonesimulator'; } - return `build/Build/Products/${configuration}-${device}/${appName}.app`; + return `Build/Products/${configuration}-${device}/${appName}.app`; }; const xcprettyAvailable = function() { try {