Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/116.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
React本机应用程序的自定义iOS(登台)配置_Ios_Xcode_React Native_Environment Variables_Development Environment - Fatal编程技术网

React本机应用程序的自定义iOS(登台)配置

React本机应用程序的自定义iOS(登台)配置,ios,xcode,react-native,environment-variables,development-environment,Ios,Xcode,React Native,Environment Variables,Development Environment,我已经为我的React本机应用程序创建了一个暂存配置,作为发布版本的克隆。但是,当我运行react native run ios--configuration Staging时,我的构建失败,原因是: Installing build/Build/Products/Staging-iphonesimulator/flockCover.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, co

我已经为我的React本机应用程序创建了一个暂存配置,作为发布版本的克隆。但是,当我运行
react native run ios--configuration Staging
时,我的构建失败,原因是:

Installing build/Build/Products/Staging-iphonesimulator/flockCover.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/Staging-iphonesimulator/myApp.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
在对构建进行检查后,似乎出现了一些问题: 1) CodeSign在发布版本上运行,如下所示:

CodeSign构建/构建/产品/发布iphonesimulator

2) 正在从发布版本生成符号:

GenerateDSYMFile build/build/Products/Release iphonesimulator/flockCover.app/PlugIns/flockCoverTests.xctest.dSYM build/build/Products/Release iphonesimulator

其他各种事情都指向释放

进一步检查表明,这是因为我的(构建)环境变量设置不正确,例如:

export BUILT_PRODUCTS_DIR=/Users/name/github/company/app/ios/build/Build/Products/Release-iphonesimulator
export CODESIGNING_FOLDER_PATH=//Users/name/github/company/app/ios/build/Build/Products/Release-iphonesimulator/flockCover.app
export CONFIGURATION=Staging
export CONFIGURATION_BUILD_DIR=/Users/name/github/company/app/ios/build/Build/Products/Release-iphonesimulator
export CONFIGURATION_TEMP_DIR=/Users/name/github/company/app/ios/build/Build/Intermediates/ReactNativeConfig.build/Staging-iphonesimulator
此外,所有第三方库(如React Native、Yoga)都在发布模式下运行,结果如下:

export CLASS_FILE_DIR==/Users/name/github/company/app/ios/build/Build/Intermediates/ReactNativeConfig.build/Release-iphonesimulator/ReactNativeConfig.build/JavaClasses
有趣的是,并非所有的东西都指向发布,除了最后的错误消息外,还有如下内容:

export CLASS_FILE_DIR==/Users/name/github/company/app/ios/build/Build/Intermediates/ReactNativeConfig.build/Release-iphonesimulator/ReactNativeConfig.build/JavaClasses
==使用配置暂存构建项目myProject的目标myApp===

Ld build/build/Intermediates/flockCover.build/Staging iphonesimulator
(更不用说上面的
配置
环境变量了

因此,我的问题如下: 1) 如何正确设置这些环境变量(特别是
CODESIGNING\u FOLDER\u PATH
CONFIGURATION\u BUILD\u DIR
等)。 2) 我如何在与我的应用程序配置不同的从属库中构建(例如React)。我是否也需要在那里创建配置?
3) 这就是导致我出现问题的原因吗?

运气好吗?我也面临同样的问题