swyx
swyx

Reputation: 2511

react-native run-ios doesn't run: Application is unknown to FrontBoard?

I had react-native run-ios working for the past few days but today it randomly decided to stop working:


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:

none of these have worked so far. Any other ideas on things to try please?

Upvotes: 20

Views: 19820

Answers (2)

kaushal
kaushal

Reputation: 911

As mentioned by Gavin Owens on Github, I followed those steps and it worked.

Just delete ios/build from iOS directory and after that run command react-native-run-ios

use following command

rm -rf ios/build then running react-native run-ios

Upvotes: 14

Mohamed Khalil
Mohamed Khalil

Reputation: 3126

try with another simulator if it works you need to reset your simulator from simulator menu

  1. Simulator -> Reset Content And Setting if you have Xcode 9 it will be from Hardware -> Erase All Content and Settings
  2. clean from Xcode menu Product -> Clean and run your project

Upvotes: 26

Related Questions