How to run / install xcodebuild?
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Instruments can show you the call stack for every malloc, release, and retain for any Obj-C object in your app with no code changes required. It works when you’re using ARC, which is not the case for the solution from fabio. It’s really useful for finding those mystery retains – e.g. when an object just … Read more
Had this happen to me awhile ago. I had to go to File -> Close myfilename.xib and then reopen it before it would honor the file type. I think the shortcut is Ctrl + Cmd + W if you are looking at the file.
For some reason the default architecture settings with xCode 4.2 is only for armv7. Go to Target -> Build Settings -> Architectures -> Release on value dropdown pick “Other…”, remove $(ARCHS_STANDARD_32_BIT), and add 2 rows first with “armv6” and second “armv7” Done
I filed a bug report a week or two ago – in short, they’re aware of it. I won’t paste the email here as it said it was under NDA. Here’s hoping for 4.0.3 or similar with some zooming 🙂
Xcode 4: Open Xcode Preferences Click to highlight the docset you want to delete Click the rectangle with a filled triangle icon. It’s next to the + and – icons at the bottom of the list of docsets Click the hyperlink to show the docset in the finder. Move or delete the docset. You will … Read more
It’s used to identify your application. You don’t have to change it for an iPhone application. Take a look at these links: Information Property List Key Reference Mac Creator and File Type Codes Data Type Registration
Editing the scheme (swapping around build targets, un-/check “Parallelize Build” and/or “Find Implicit Dependencies”) didn’t work for me. I still had to clean build the project, after any code change in the static lib. Searching the dev forums, I finally found this answer, which worked wonders. Make sure the Identity and Type inspector is showing … Read more
I had this same exact error after upgrading my Xcode from 4.2.x? to 4.3.1 via the app store. I did not upgrade my OS or any hardware, and my certificates were only about 2 months old. I has submitted an app update just days before this starting happening and I feel 100% sure that something … Read more
The IBOutletCollection is a way to group IBOutlets. Imagine that you have 3 or 4 UILabels, on which you will apply a style (font, backgroundColour, opacity, etc). With a IBOutletCollection, it becomes trivial to do this. First you need to define your IBOutletCollection: @property (nonatomic, retain) IBOutletCollection(UILabel) NSArray *labelsCollection; (notice the type we are putting … Read more