Thursday, March 15, 2012

Xcode Problems Redux: You don’t have permission to save the file “iOS DeviceSupport” in the folder “Xcode”


Xcode Problems Redux: You don’t have permission to save the file “iOS DeviceSupport” in the folder “Xcode”.


So we have another problem with Xcode: You don’t have permission to save the file “iOS DeviceSupport” in the folder “Xcode”. To view or change permissions, select the item in the Finder and choose File > Get Info
Some pretty shitty info. But I’ve played around a bit and found a fix.
1. Open up the terminal app
2. Execute the command:
sudo chmod 777 /Users//Library/Developer/Xcode
3. Disconnect your device and reconnect it
4. In the organiser, under devices press Add to Portal
5. Xcode should now add your device for development.
Hope this helps anyone out there :)

EXC_BAD_ACCESS on iPhone

how to debug EXC_BAD_ACCESS on iPhone

http://www.codza.com/how-to-debug-exc_bad_access-on-iphone


If you set the NSZombieEnabled environment variable, the Objective C runtime will leave a dummy object behind for every deallocated object. When the zombie object is called, execution stops and you can see the message that was sent to the object and the call stack that tells you where the message came from (it doesn’t tell you where you over released the object, but knowing where the object is called from should get you pretty close to the problem.)
To set this variable, go to the info panel of the executable in xcode, and create a newenvironment variable in the arguments tab by clicking the plus sign in the lower left corner of the window. Name the variable NSZombieEnabled, type YES for the value and make sure that the checkbox is selected.

set NSZombieEnabled variable