iOS GUI example - crashes when running


I just downloaded OF 8.4 for iOS. I wanted to look at the GUI example. it builds without errors but then terminates when initializing. error is:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/mobile/Containers/Bundle/Application/EDBE0129-B421-41BB-95AA-7DEFED468407/> (loaded)' with name 'MyGuiView''

is there something I’m missing or is it an error in the actual example? I’ve not made any changes to it… running it on iOS 8.3 (iPhone 5) and Xcode 6.3.

Hi, you may need to recopy the xib file into the bundle resources target.

thanks for the tip. the link didn’t help though. what I needed to do is go to “Build Phases” and “Copy Bundle Resources” and add the .xib-file there. that did the job.

1 Like