user2588945
user2588945

Reputation: 1681

How to run an app after running an xcode clean and clean build folder where the app now crashes

I'm trying to run my app after running an Xcode clean and clean build folder and I'm now getting this error and a crash:

fyi: there was a file called DetailViewController that I deleted because I didn't need it anymore. It's only after running a clean and clean build folder that this crash has been occurring.

 Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/username/Library/Application Support/iPhone Simulator/6.1/Applications/4E0DB510-4107-4F8D-A08C-ECFDDB1DB506/1000 appname.app> (loaded)' with name 'DetailViewController'

I tried deleting the contents of /Users/username/Library/Application Support/iPhone Simulator/6.1/Applications/ to remove the apps on the simulator.

I also reset the Simulator. Closed and re-ran the program but still getting that error.

thanks for any help

Upvotes: 0

Views: 1429

Answers (1)

Peter DeWeese
Peter DeWeese

Reputation: 18333

First, certain files get cached even with 'Clean Build Folder', especially for simulator. Files (especially derived nibs and images) can be left that have been deleted in the project.

  • Command-Option-Shift-K to clean out the build folder.
  • Quit Xcode and clean out ~/Library/Developer/Xcode/DerivedData manually.
  • In the simulator, choose iOS Simulator > Reset Content and Settings.

Now if it fails, it is because your code was only working because of over-cached build files. If this is the case, check where your rootViewController is pointing.

Upvotes: 2

Related Questions