here’s what goes wrong:
2011-02-28 14:21:44.232 www2[24787:207] Unknown class Unity_iPhoneAppDelegate in Interface Builder file.
2011-02-28 14:21:44.240 www2[24787:207] *** Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[<UICustomObject 0x4d02ce0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mainViewController.’
any ideas?
thanks,
matt
did you mess with the interface (xib) file)
if not, you best go back to unity, open build settings and select build and then choose replace instead of append, so unity can fix up this kind of stuff
i have not messed with anything and I tried replacing already and that didn’t fix it.
When you import it into xcode, you change the target, right? Because the standard unity schemes don’t work for me… they give me an error
[BEROR]No architectures to compile for (ARCHS=armv6, VALID_ARCHS=i386).
When I change the target, it compiles successfully but I get the error mentioned in my initial post
thanks!
matt
No you don’t change target.
You do so in the build settings where you configure the archs, if you want to do a device build or simulator build and if the project is iphone, ipad or universal binary. You also choose the appropriate base sdk (4.x+, I would set it to 4.2 (latest) as it will always be up to date with what you have) and target os (min os required, 3.0+)
What you are basically causing there is creating incompatible settings.
VALID_ARCHS=i386 tells you that this is a simulator build → will not work when you try to do a device compile (armv6 / armv7 archs)
The original error could at worst come from changing an ipad only app to be an iphone one or vice versa and alike where you would need to convert and process the xib to be correct again
I think I figured it out!!! thank you very very much! this has been bothering be for over a week now =)