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: showing view outlet set 'view'

and file's owner class set: showing file's owner class set 'myviewcontroller'

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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -