编译依赖于React Native0.46.4的工程,报错“react-native-xcode.sh now lives in a different location”

我的环境:

WebStorm 2017.2
Build #WS-172.3317.70, built on July 14, 2017

JRE: 1.8.0_152-release-915-b5 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Mac OS X 10.12.6

Xcode8.3.3(8E3004b)

RN在Github上有比较明确的解决方案,但是对于Xcod不是十分熟悉,没有一步一步明确的指导,最终在stackoverflow上找到可以解决我的问题的帖子。

选自:https://stackoverflow.com/questions/33650380/react-native-error-react-native-xcode-sh-line-45-react-native-command-not-found

If you are using RN 0.46 or above:

There is a breaking change made by Facebook: the location of the script has been changed, more detail here

I was able to solve this error by:

  • Opening the project in XCode
  • Navigate to Build Phases > Bundle React Native code and images
  • Change export NODE_BINARY=node ../node_modules/react-native/packager/react-native-xcode.sh to export NODE_BINARY=node ../node_modules/react-native/scripts/react-native-xcode.sh

Notice how packager is now scripts, which is where that file actually lives in latest version of RN

时间: 2024-08-20 04:36:05

编译依赖于React Native0.46.4的工程,报错“react-native-xcode.sh now lives in a different location”的相关文章

编译依赖ndt_gpu库的包,遇到Eigen报错

背景: 使用NDT建图,帧率比较慢,打算使用gpu加速计算. ndt_gpu是一个使用gpu加速ndt计算的库,首先在工作空间编译这个包. 然后在ndtMap包中链接这个库,其CMakelists.txt添加如下内容, SET(CUDA_INCLUDE_DIRS /usr/local/cuda-10.0/include) find_package(CUDA) if (CUDA_FOUND) add_definitions(-DCUDA_FOUND) list(APPEND PCL_OPENMP_

编译依赖于React Native0.46.4的React Native IOS工程时,出现错误“fatal error: 'React/RCTEventEmitter.h' file not found”

我的环境: WebStorm 2017.2Build #WS-172.3317.70, built on July 14, 2017 JRE: 1.8.0_152-release-915-b5 x86_64JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.12.6 Xcode8.3.3(8E3004b) 网上搜索,可以解决我的问题的网址:https://stackoverflow.com/questions/41663002

Android Studio编译大工程报错:java.exe'' finished with non-zero exit value 1

版权声明:本文为博主原创文章,未经博主允许不得转载. Android Studio编译大工程报错:java.exe'' finished with non-zero exit value 1

编译android源码报错:build/envsetup.sh: 1: Syntax error:

编译android源码时报错: build/envsetup.sh: 1: Syntax error: "(" unexpected 解决方法: 执行$sudo dpkg-reconfigure dash命令,并选择"否" 编译android源码报错:build/envsetup.sh: 1: Syntax error:

学习React前端框架,报错 'React' must be in scope when using JSX react/react-in-jsx-scope

问题 import react from 'react'  改成  import React from 'react'   小写 react  改成 React 学习React前端框架,报错 'React' must be in scope when using JSX react/react-in-jsx-scope 原文地址:https://www.cnblogs.com/BensonHai/p/9952156.html

react-router 报错React.createElement: type is invalid ...解决方法

1. 这两天一直在学习熟悉react-router 2.react-router  版本已经更新到4.1.1 3. 然后再做练习的时候就遇到了题目上的问题 解决问题: 01.找了 Stack Overflow 里面的问题 有的说在引入组件要这样写 import * as About from './components' 02. 有的说引入组件这样写 import {About} from './components' 03. 我最初的写法 import About from './compon

windows 7/mac编译cocos2d-x-3.2*的android工程报错

开始学习cocos2d-x-3.* 凭着对2.*的各个版本的认识和升级的经验,本以为直接用最新的3.2rc0版本练手应该没有问题,结果一上来就是一个大坑.你妹! Android NDK: Invalid APP_STL value:c++_static 搞了一下午,对比了3.1.1,3.2alpha0,3.2rc0 终于找到了2个解决办法: 1.升级android-ndk-r9b为最新的android-ndk-r9d (下载地址:https://developer.android.com/too

解决Xcode6.0.1编译Unity3D工程报错

错误信息大概如下 Undefined symbols for architecture i386: "_clock$UNIX2003",.....等 大概就是引用了一个链接库出错了. 解决办法如下: 打开OC工程里的Main.mm 加入下面代码 #include <time.h> extern "C" { clock_t clock$UNIX2003(void) { return clock(); } }

pixhawk 固件Firmware内执行make px4fmu-v2_default 编译报错解决办法

执行下列指令报错 make px4fmu-v2_default /bin/sh: 1: Tools/check_cmake.sh: Permission denied Makefile:44: Not a valid CMake version or CMake not installed. Makefile:45: On Ubuntu, install or upgrade via: Makefile:46: Makefile:47: 3rd party PPA: Makefile:48: s