I’m testing my app in the sim with SDK 4.3, My device is iPhone 4 with OS 4.3.3, when running the app on the sim every things is working, no errors and nothing, but on the device every thing crashes with the runtime error: “Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key addButton”
I can not find the problem in any xib file. I used to have this outlet, but not any more, not in the class and not in the xib (or maybe i am missing it, but i looked of many many hours for it) and the sim is getting it that i have changed the files but the device does not…
UPDATE: *maybe this would help. I decided to test my theory and removed (deleted) the MainWindox.xib file. compiled and got the same results…On the sim every things worked (WIERD AS IS) and in the device crashes…. The first part tells me that when the Xcode does the link and build, It builds from a deferent directory then the one that the project in… It is as weird as it can get in my eyes…. Any one has a thought about that? I think that when i will fix this every thing else will work just fine….*
What can i do?
Thank you very much,
Erez
I’ve found the solution, the problem was exactly what i said, The XCode went to a wrong build somewhere, I don’t know where and what happen, but it didn’t go to the new build…. created a new project, copied all the files and then just changed the delegate and what needed and every thing is working, I am guessing it is a BUG, a very annoying one, but still a bug with XCode 4.
Thank you all,
Erez