我已经创建了样例,并按照per本地网站遵循本教程。
我尝试运行应用程序IOS模拟器,其抛出错误如下,
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Install\ Third\ Party /Users/Test/Documents/REACTJS/SampleReactNative/ios/build/Build/Intermediates.noindex/React.build/Debug-iphonesimulator/double-conversion.build/Script-190EE32F1E6A43DE00A8543A.sh
(1 failure)
Installing build/Build/Products/Debug-iphonesimulator/SampleReactNative.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/SampleReactNative.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist我的环境设置信息,
请帮助我们解决这些问题。
发布于 2018-03-18 23:16:14
我也遇到了同样的问题:
react-native init myapp cd myapp react-native run-ios
..although运行-安卓很好。
目前,这不是解决方案,而是一种解决办法,可能是使用较低版本的RN:
react-native init myapp --version react-native@0.51.0
这样就没问题了。类似于现有项目,请安装RN的旧版本。
0.54.2之前的其他版本可能有效,但我没有尝试。
(编辑2018/4/2)从以下链接找到我的解决方案:https://github.com/facebook/react-native/issues/18238
RN0.54需要自iOS 11以来可用的类型。因此,您必须升级xcode,并将应用程序中的最低iOS版本设置为11。
简而言之,将OSX和Xcode升级为最新版本。(截至今日,OSX 10.13.4 Xcode & 9.3)
发布于 2018-08-01 06:55:58
这可能是因为一些库文件(不是found.You )需要遵循我已经完成的一些步骤,而且它对我来说是完美的。1.)转到Xcode项目->目标->,选择build Target ->,转到目标部门,->,单击+ ->,添加"react“并按add。
2.)Xcode > Product > manage ->,单击+按钮-> targetName(React) -> of ->通过选中shared列下的复选框使其共享。
3.)清理您的项目并尝试构建,如果在Xcode和“"glog/logging.h不存在”中出现了一些错误,比如“glog/logging.h文件未找到”或"cofig.h文件未找到“则不必担心。你只有一步之遥。如果您缺少config.h文件,可能会发生这种情况,为此您需要更新config.h文件。为此
4.)按照以下步骤a.)(关闭Xcode b.)打开带有项目的终端(或者您可以直接单击您的项目并将您的文件夹拖到关闭的终端,它将自动从您对应的文件夹中选择路径)。写命令
cd node_modules/react-native/third-party/glog-0.3.4/
( d.)通过命令运行配置脚本文件
./配置
( e.)现在关闭终端并使用您的项目根路径转到终端。现在尝试最后运行您的iOS项目
react本机运行-ios
发布于 2018-06-04 10:20:56
运行以下命令:
react-native upgrade
react-native run-ios或者:
react-native run-androidhttps://stackoverflow.com/questions/49298841
复制相似问题