0

我有一个试图启动的 react 本机应用程序,react-native run-ios但出现以下错误:

error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening Humboi.xcworkspace.
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace Humboi.xcworkspace -configuration Debug -scheme Humboi -destination id=6982D224-520B-4F96-B5F6-AC7EB2C31DF5

note: Using new build system
note: Building targets in parallel
error: Could not initialize core
error: failed to load toolchain: toolchain 'com.apple.dt.toolchain.XcodeDefault' already registered from /Applications/Xcode.app/Contents/Developer/Toolchains/OSX11.1.xctoolchain


** BUILD FAILED **


从 xcode 构建时,我也遇到了同样的错误。如何解决这个问题?我试过使用 --reset-cache 但没有用。

当我尝试使用 运行应用程序时react-native start,出现以下错误:

[Thu Apr 01 2021 15:20:06.755]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)

如何解决这个问题?

4

0 回答 0