How to Empty Caches and Clean All Targets Xcode 4 and later

Command-Option-Shift-K to clean out the build folder. Even better, quit Xcode and clean out ~/Library/Developer/Xcode/DerivedData manually. Remove all its contents because there’s a bug where Xcode will run an old version of your project that’s in there somewhere. (Xcode 4.2 will show you the Derived Data folder: choose Window > Organizer and switch to the … Read more

Xcode: failed to get the task for process

I am betting that your release mode includes compiling with your distribution certificate, which disallows this behavior (you wouldn’t want some random fool hooking into your app after downloading it from the app store). Compile with the development certificate instead. You can change this in the building settings under code signing.

Renaming projects in Xcode 4

Well, it turned out to be a trivial matter indeed. All you need to do is click twice slowly on the project root in the project navigator and it then becomes editable. After you rename the project and press ‘enter’ it will suggest to automatically change all project-name-related entries and will allow you to de-select … Read more

Can’t ignore UserInterfaceState.xcuserstate

Git is probably already tracking the file. From the gitignore docs: To stop tracking a file that is currently tracked, use git rm –cached. Use this, replacing [project] and [username] with your info: git rm –cached [project].xcodeproj/project.xcworkspace/xcuserdata/[username].xcuserdatad/UserInterfaceState.xcuserstate git commit -m “Removed file that shouldn’t be tracked” Alternatively you can use the -a option to git … Read more

How do I set up NSZombieEnabled in Xcode 4?

In Xcode 4.x press ⌥⌘R (or click Menubar > Product > Scheme > Edit Scheme) select the “Diagnostics” tab and click “Enable Zombie Objects”: This turns released objects into NSZombie instances that print console warnings when used again. This is a debugging aid that increases memory use (no object is really released) but improves error … Read more

Xcode 4 – “Archive” is greyed out?

You have to select the device in the schemes menu in the top left where you used to select between simulator/device. It won’t let you archive a build for the simulator. Or you may find that if the iOS device is already selected the archive box isn’t selected when you choose “Edit Schemes” => “Build”.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)