xcode react-native run-ios 不运行:FrontBoard 不知道应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/46384321/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
react-native run-ios doesn't run: Application is unknown to FrontBoard?
提问by swyx
I had react-native run-ios
working for the past few days but today it randomly decided to stop working:
react-native run-ios
过去几天我一直在工作,但今天它随机决定停止工作:
The following commands produced analyzer issues:
Analyze /Users/swyx/Desktop/webdev/fullstacksr/reactNativeExtensions/ActionExtensionExample3/node_modules/react-native/ReactCommon/yoga/yoga/YGNodeList.c
Analyze /Users/swyx/Desktop/webdev/fullstacksr/reactNativeExtensions/ActionExtensionExample3/node_modules/react-native/ReactCommon/yoga/yoga/Yoga.c
(2 commands with analyzer issues)
Installing build/Build/Products/Debug-iphonesimulator/ActionExtensionExample3.app
An error was encountered processing the command (domain=IXErrorDomain, code=2):
Failed to set plugin placeholders for org.reactjs.native.example.ShareExtensionExampleswyx
Launching org.reactjs.native.example.ShareExtensionExampleswyx
org.reactjs.native.example.ShareExtensionExampleswyx: -1
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "org.reactjs.native.example.ShareExtensionExampleswyx" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "org.reactjs.native.example.ShareExtensionExampleswyx" is unknown to FrontBoard").
Possible causes and solutions investigated:
调查的可能原因和解决方案:
- Checking the scheme- it is definitely
Ask on launch
- Scheme settings- i dont have any empty settings to leave unchecked
- Maximum App ID limit reached - this app id
org.reactjs.native.example.ShareExtensionExampleswyx
is something I am reusing but i dont think it causes this issue - deleting
ios/build
and recompiling - restarting my simulator and my entire computer
- Edit: yes i am using xcode 9
- 检查计划- 这绝对是
Ask on launch
- 方案设置- 我没有任何可取消选中的空设置
- 达到了最大应用 ID 限制 - 这个应用 ID
org.reactjs.native.example.ShareExtensionExampleswyx
是我正在重用的东西,但我认为它不会导致这个问题 - 删除
ios/build
并重新编译 - 重新启动我的模拟器和我的整个计算机
- 编辑:是的,我正在使用 xcode 9
none of these have worked so far. Any other ideas on things to try please?
到目前为止,这些都没有奏效。关于尝试的任何其他想法?
回答by Mohamed Khalil
try with another simulator if it works you need to reset your simulator from simulator menu
尝试使用另一个模拟器,如果它有效,您需要从模拟器菜单重置模拟器
- Simulator -> Reset Content And Setting if you have Xcode 9 it will be from Hardware -> Erase All Content and Settings
- clean from Xcode menu Product -> Clean and run your project
- 模拟器 -> 重置内容和设置,如果你有 Xcode 9,它将来自硬件 -> 擦除所有内容和设置
- 从 Xcode 菜单 Product -> Clean and run your project
回答by kaushal
As mentioned by Gavin Owens on Github, I followed those steps and it worked.
正如 Gavin Owens 在 Github 上提到的,我遵循了这些步骤并且它奏效了。
Just delete ios/build from iOS directory and after that run command react-native-run-ios
只需从 iOS 目录中删除ios/build ,然后运行命令 react-native-run-ios
use following command
使用以下命令
rm -rf ios/build then running react-native run-ios
rm -rf ios/build 然后运行 react-native run-ios