if i then copy/paste the working code into my app it still doesnt work (i of course do link buttons, labels and so on again)
Copy and paste : did you copy file or content of file ?
If you did the paste content (that's what to do):
When you copy and paste, you may copy some link references as well, that you do not see.
What I do is to, paste in an external editor (as Edit) as Paste and adapt style, the copy again and paste in the new file
Did you do a Clean Build Folder after copy and paste ? You should.
Go to ~/Library/Preferences, then find any file/plist with 'Xcode' in the file name and drag them to the trash, being sure to empty the trash.
Open Xcode, then do as Claude suggests and option-clean. That means use the Product menu w/the option key pressed, selecting to 'clean build folder'.
Go again and see if you still get a crash. If you do, post the error(s) here for analysis.
Assuming you put Xcode in the Applications folder; to remove all traces of Xcode from your disk, remove:
To scavenge your customizations, first copy these somewhere safe (folder where noted, file where noted)
- ~/Library/MobileDevice/Provisioning Profiles
Xcode has been exceptionally buggy since day 1 of it's existance... so it is good to know how to remove all of it for a re-install when your simulators don't install, when simulators are broken after install, when nothing will compile or run, when things run fine in the simulator but not on the iPhone or iPad hardware, etc.
(if I forgot some trace, apologies, please reply back to complete the list)
These steps wont work. Operation not permitted is returned.