For the building of Cordova projects the same procedure works, however you will probably get this error:
dyld: Library not loaded: /usr/lib/system/libdispatch.dylib
Referenced from:
/Developer42/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/lib/libSystem.dylib
Reason: no suitable image found. Did find:
/Developer42/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/usr/lib/system/libdispatch.dylib:
unknown required load command 0x80000023 Command
/Developer42/usr/bin/ibtool failed with exit code 255
This build fail happens because of /Classes/MainViewController.xib
which is not compatible with iOS 6.... i think ;)
The workaround:
Select your projects target and expand the Supporting Files folder. Inside this folder, click on any file OTHER THAN MainViewController.xib
. You need to expose the File Inspector. After you expose the File Inspector, select the file MainViewController.xib
. At this point xcode will try to crash, don't let it!... just keep pressing Continue in the crash prompt until the File Inspectors settings changes to reflect the .xib file. You should keep pressing Continue until you get past the crash prompts such that you can make edits to the File Inspector. In the File Inpsector, under Target Membership unselect the target.
Close xcode, reopen and all should be golden!!
Avoid selecting MainViewController.xib
in the future as it will crash your session.