Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions not reported properly on Xcode5 #64

Closed
jasperblues opened this issue Sep 2, 2013 · 3 comments
Closed

Exceptions not reported properly on Xcode5 #64

jasperblues opened this issue Sep 2, 2013 · 3 comments
Labels

Comments

@jasperblues
Copy link
Member

Example: Telling Typhoon to inject a property that doesn't exist eats the exception

  • (id)yourDetailsController
    {
    return [TyphoonDefinition withClass:[MPYourDetailsController class] properties:^(TyphoonDefinition* definition)
    {
    //property 'yourDetailsView' does not exist
    [definition injectProperty:@selector(yourDetailsView) withDefinition:[self yourDetailsView]];
    }];
    }

No meaningful error is thrown. . .

@jasperblues
Copy link
Member Author

This seems to only be a problem on iOS7

@jasperblues
Copy link
Member Author

Workaround:

int main(int argc, char* argv[])
{
@autoreleasepool
{
int returnValue;
@Try
{
returnValue = UIApplicationMain(argc, argv, nil, NSStringFromClass([MPAppDelegate class]));
}
@catch (NSException* exception)
{
LogDebug(@"Uncaught exception: %@, %@", [exception description], [exception callStackSymbols]);
@throw exception;
}
return returnValue;
}
}

@jasperblues
Copy link
Member Author

No longer happening, AFAIK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant