0
votes

I know my distribution profile shouldn't work with my phone, but should it work with the simulator?

My app runs fine in debug on the phone and on the simulator, but then when I run with my distribution profile on the simulator I get an EXC_BAD_ACCESS error on the line:

[self.window addSubview:viewController.view];

If I comment this line out then the application starts and stays running with a blank screen. This leads me to thing that the profile should work with the simulator. So why am I getting different results from the different profile??

thanks

Eds

1
what do you mean by different profiles? Do you set different targets? The simulator doesn't use any provisioning profile.Nick Weaver
oh ok. Thent this very strange. Basically, if I select my debug profile and then run on simulator, it is fine. If I select my distribution profile then it crashes as above.Eds

1 Answers

0
votes

you might have release the viewcontroller after
[self.window addSubview:viewController.view];