I am going through a crisis. I developed an app for two days, and accidently deleted my MainWindow.xib thinking it was a different .xib. After that, iPhone Simulator can't launch anything involving MainWindow.xib, even in different projects. The code that seems to trigger the problem is:
- (void)applicationDidFinishLaunching
UIApplication *)application {
LoginViewController *_loginViewController = [[LoginViewController alloc] initWithNibName
"LoginView" bundle:[NSBundle mainBundle]];
self.loginViewController = _loginViewController;
[_loginViewController release];
[window addSubview:[loginViewController view]];
That could basically makes the application open to the LoginView.XIB opposed to the MainWindow.XIB. Whenever I try to run an app with that code, I get a "iPhone Application -NameOfAppHere- Crashed Unexpectedly" error as soon as the app *tries to open. I think that has to do with some data not being removed in new applications (an icon shows up although I havent assigned one in the .plist yet, leaving me to think that information is still stuck on my computer). I say still because I ran the uninstall through terminal for xcode then donwloaded/installed the new beta one. I dont know what to do, but am willing to do just about anything to get back on track here - this problem has ruined hte last 24 hours for me.
- (void)applicationDidFinishLaunching
LoginViewController *_loginViewController = [[LoginViewController alloc] initWithNibName
self.loginViewController = _loginViewController;
[_loginViewController release];
[window addSubview:[loginViewController view]];
That could basically makes the application open to the LoginView.XIB opposed to the MainWindow.XIB. Whenever I try to run an app with that code, I get a "iPhone Application -NameOfAppHere- Crashed Unexpectedly" error as soon as the app *tries to open. I think that has to do with some data not being removed in new applications (an icon shows up although I havent assigned one in the .plist yet, leaving me to think that information is still stuck on my computer). I say still because I ran the uninstall through terminal for xcode then donwloaded/installed the new beta one. I dont know what to do, but am willing to do just about anything to get back on track here - this problem has ruined hte last 24 hours for me.