gpt4 book ai didi

javascript - 在 iOS 模拟器上运行 React-Native 应用程序

转载 作者:行者123 更新时间:2023-11-29 05:18:49 25 4
gpt4 key购买 nike

所以我尝试在 iPhone 11 - 13.2.2 模拟器上运行一个简单的 react native 应用程序。

我输入 npm run ios 但我得到了这个。

** BUILD FAILED **


The following build commands failed:
CompileC /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/build/confusion/Build/Intermediates.noindex/confusion.build/Debug-iphonesimulator/confusion.build/Objects-normal/x86_64/AppDelegate.o /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/confusion/AppDelegate.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/build/confusion/Build/Intermediates.noindex/confusion.build/Debug-iphonesimulator/confusion.build/Objects-normal/x86_64/main.o /Users/theodosiostziomakas/Desktop/React-Native/confusion/ios/confusion/main.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ ios: `react-native run-ios`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ ios script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/theodosiostziomakas/.npm/_logs/2019-11-16T12_38_06_754Z-debug.log

我使用了npm install但仍然没有任何结果。如何修复该错误?

谢谢,西奥。

最佳答案

或者,您可以从工作区文件运行,有时从 ios 中的 npm 运行不会给出确切的错误。 您必须在工作区中运行以下文件并选择模拟器/iPhone,最后启动项目。

Path to the workspace :- ProjectFolder/ios/projectname.xcworkspace

关于javascript - 在 iOS 模拟器上运行 React-Native 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58890841/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com