过去几天我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").
调查的可能原因和解决方案:
Ask on launch
org.reactjs.native.example.ShareExtensionExampleswyx
是我正在重复使用但我不认为会导致此问题ios/build
并重新编译答案 0 :(得分:20)
尝试使用其他模拟器,如果它可以,您需要从模拟器菜单重置您的模拟器
答案 1 :(得分:6)
正如加文·欧文斯(Gavin Owens)在Github上提到的那样,我按照这些步骤进行了工作。
只需从iOS目录中删除 ios / build,然后运行命令react-native-run-ios
使用以下命令
rm -rf ios / build然后运行react-native run-ios