我正在尝试使用xcode在ios设备上运行我的第一个React-Native应用程序,并不断收到以下错误:
ld: warning: directory not found for option '-L/Users/XXXX/Library/Developer/Xcode/DerivedData/nigh-hktjvygosupgnoaafsvgyowhzsqi/Build/Products/Debug-iphoneos/React'
ld: library not found for -lReact
clang: error: linker command failed w
请参阅下面的图片以帮助您。我好像找不出我哪里出了问题?
这是我第一次使用世博会,所以我对它相当困惑。我试图在ios模拟器上启动我的react应用程序,但是收到了错误信息;
iOS Bundling failed 18ms
Unable to resolve module ./App from /Users/luke/Desktop/Projects/simulate/index.js:
None of these files exist:
* App(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.nat
我在我的项目中使用了react-native-orientation包,并使用npx pod-install链接它。这在iOS上有效,现在我的应用程序在app上完全发布了。然后,当我试图创建一个Android构建时,我一直从Android获得以下错误:
A problem occurred evaluating project ':app'.
> Could not find method compile() for arguments [project ':react-native-orientation'] on object of type org.
Metro Bundler没有给我任何消息,当我点击应用程序时,它什么也不做,也没有告诉我为什么它崩溃了。在localhost:8081/debugger-ui上,我得到的只有这个 WebSocket connection to 'ws://localhost:8081/debugger-proxy?role=debugger&name=Chrome' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED 但这并不是很有帮助,因为我确保8081还没有被使用。 这是我的环境: Rea
我很好奇为什么我需要打开Xcode并点击“构建并运行”(根据)才能在我的iPhone上运行我的应用程序。
$ react-native help
Usage: react-native <command>
Commands:
- start: starts the webserver
- bundle: builds the javascript bundle for offline use
- unbundle: builds javascript as "unbundle" for offline use
- new-library: gene
我正在使用react native创建一个应用程序。我将我的项目从react native 0.60更新到react native 0.63.2。为此,我必须在我的iOS项目中更新我的cocoapods (如下所示)。
我的档案文件。
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
require_relative '../node_modules/react-native/scripts/react_native_pods
我正在开发react本机应用程序,并且我是新的react本地用户,首先,我为android平台工作,并成功地构建了apk文件。现在,我想使用命令react本机运行- ios 从我的mackbook运行ios版本,但是它引发了一个错误:
注意:从一开始我就在macbook上开发了这个应用程序。
user-MacBook-Pro:myApp user$ react-native run-ios
error Cannot read property 'podfile' of null. Run CLI with --verbose flag for more details.
Typ