Problem: I get a code-sign error when I build

Answer from iPhoneDevSDK

.xcodebuild is actually a bundle file. Either open it up in perforce or in Finder, and locate the .pbxproj file hiding inside it. Then go through the text file and delete all lines related to provisioning or code signing. Then edit the code-sign option to what you want in Xcode. Then build.

 

Problem: Instruments won't connect to my iPhone!

Answer from StackOverflow

  1. Unplug the iPhone.
  2. In XCode, open the Organizer.
  3. Delete the device.
  4. Plug device in.
  5. Answer yes when asked if you want to use device for development.