ios - Added, then deleted a ~ipad.xib. Now NSInternalInconsistencyException when running on iPad -
in attempt convert iphone app universal app, added myviewcontroller~ipad.xib project. set targeted device family iphone/ipad. attempted undo changes--deleted myviewcontroller~ipad.xib , set targeted device family iphone only.
now, can run on iphone (as always), not on ipad (which before). crash following error:
"'nsinternalinconsistencyexception', reason: '-[uiviewcontroller _loadviewfromnibnamed:bundle:] loaded "myviewcontroller" nib view outlet not set.'"
the view outlet in myviewcontroller.xib set: 
and file's owner class set: 
so had... iphone-only app run on ipad (but in smaller iphone view). appreciated!
be aware if remove files project, files not deleted device when re-installing (through build&run), , ios still see old files there. may need manually remove app device, re-install.
another option rename file, old files not bother you.
also, cleaning project, or cleaning build folder (keep alt pressed , select clean product menu) may help.
Comments
Post a Comment