Fbsopenapplicationerrordomain Code =4 Error

FBSOpenApplicationErrorDomain code =4 error

This worked for me:

iOS Simulator -> Reset Contents and Settings... -> Reset

menu bar screenshot

are you sure screenshot

referenced from Qiita: Unable to run app in Simulator エラーの対応方法.

Simulator error FBSSystemServiceDomain code 4

Go to the iOS Simulator menu and select Reset Content and Settings.

Alternatively, you could quit and reopen the Simulator.

Sample Image

Swift Playground error - FBSOpenApplicationErrorDomain code =4

I tried commenting out most of my code and just having a print("Hello World") line, but that produced the same error as well. So I opened a new playground and copied my code into it. It runs now. Not a very satisfactory solution but at least it allows me to continue working. I assume my playground file had become corrupted.

FBSOpenApplicationErrorDomain Code=3

iOS Simulator -> Reset Contents and Settings...

Worked for me

iOS Simulator -> Reset Contents and Settings... -> Reset

FBSOpenApplicationErrorDomain error 1

I had the same error after updating Xcode to v7.0. After few hours struggling, I found that there was some empty environment variable setup to be passed for Run action in my active scheme (have no idea why it was there). Removing this empty environment variable resolved the issue immediately.

iOS Error: FBSOpenApplicationErrorDomain error 5. What does this mean?

I would suggest you try to simplify. I have answered a very similar problem here that is in Swift. I would simplify the logic to the following:

WK Code

- (IBAction)sendRequest {
[InterfaceController openParentApplication:request reply:^(NSDictionary *replyInfo, NSError *error) {
NSLog(@"Reply Info: %@", replyInfo);
NSLog(@"Error: %@", error);
}];
}

iOS Code

- (void)application:(UIApplication *)application handleWatchKitExtensionRequest:(NSDictionary *)userInfo reply:(void (^)(NSDictionary *))reply {
NSDictionary *response = @{@"replyKey" : @"replyValue"};
reply(response);
}

Once you have this working, then start adding the additional parsing one step at a time. You can also attach the debugger to the iOS app to step through the call by following these instructions. You may not be calling the reply block on the iOS app and you don't even know it.

xcrun error domain=FBSOpenApplicationErrorDomain, code=1

You're building for iphoneos (I can see a "-sdk iphoneos" parameter in your xcodebuild command line). Then you're trying to install the resulting .app object onto the simulator (!!).

That will produce an architecture mismatch, and thus that cryptic runtime error.

Change your compilation commands from "-sdk iphoneos" to something like "-sdk iphonesimulator9.3" (in case this is the version you need).
If in doubt, type "xcodebuild -showsdks" and a list of installed SDK's will appear on screen. Choose the one you need.

You'll probably need to mess with -arch parameter also and change it from ARM to i386 (Remember the Simulator runs onto your intel MAC ).

Try and tell us if it works.



Related Topics



Leave a reply



Submit