我很好奇为什么我需要打开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
我能够在模拟器中构建和运行这个应用程序。但是,每当我想要将它存档(选择任何ios设备)以将应用程序发布到AppStore中时,我就会收到这个错误。
ld: warning: directory not found for option '-L/Users/bigyankarki/Library/Developer/Xcode/DerivedData/Neex-dnesybikpygafkfxhimxsgrjawis/Build/Intermediates.noindex/ArchiveIntermediates/Neex/BuildProductsPath/Release-iphone
正如问题的标题所说,它几天前就开始工作了,但是现在,不管我做什么,我都会得到warn No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.,尤其是在iOS模拟器上运行时。它在android物理设备上运行良好,只在iOS模拟器上工作。我的应用程序只是停留在飞溅屏幕上,在那之后,如果我按下r在地铁班德勒重新加载,它会抛出这个警告。
注意,-&
一直在使用iOS在Deco中构建一个react原生应用程序。iPhone 6+、6和5s运行良好,但任何较早的版本都会显示以下消息:
An error was encountered processing the command (domain=FBSOpenApplicationErrorDomain, code=1):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 1.)
我看过关于这个错误的其他帖子,但是没有一个使用react-native / deco。模拟器已被清除,没有任何变化。
在ios模拟器上运行我的应用程序时,我会得到以下错误This version of the Expo app is out of date. Uninstall the app and run again to upgrade.
以下是我如何尝试升级世博-cli但没有成功。
npm update -g
yarn add global expo-cli
npm uninstall expo-cli
npm cache clean --force
yarn add global expo-cli
这是app.json
"expo": {
"
我试图运行iOS模拟器为我的反应本地应用程序react-native run-ios。它构建并运行地铁绑定器CLI,设备模拟器正在运行,但该应用程序与地铁绑定程序没有连接。
我正在运行“react本机”:"0.66.0“xcode 13.0
我先杀了所有模拟器。然后运行cmd react-native run-ios。
第一个窗口构建应用程序并启动窗口2。
$ react-native run-ios
info Found Xcode workspace "app.xcworkspace"
info Launching iPhone 13 Pro Max (iOS 15
我试图使用Microsoft来更新JS包,而不会再次将应用提交给iTunes。
在调试和发布模式下,应用程序可以在下一次启动时通过代码推送和安装更新成功加载包。
与调试/发布Xcode应用程序不同的是,当我归档应用程序并从TestFlight安装它时,就在本机闪存屏幕之后出现了一个白色的空白屏幕。应用程序中心没有出现崩溃。
在添加代码推送支持之前,我没有使用Cocoapod,所以我不信任Podfile,而且在这方面我完全是新手。
Podfile
# Uncomment the next line to define a global platform for your project
# pl
根据,我试图在iOS模拟器上运行示例项目
当我运行命令npx react-native run-ios时出错
info Found Xcode workspace "AwesomeProject.xcworkspace"
error No simulator available with name "iPhone 12".
它从哪里选择iPhone 12,我一开始没有那个模拟器