Could not build module UIKit

A full clean + deleting the derived data worked for me. Be sure to fix any code that may be broken because UIKit cannot be installed, before the clean and build. So, for example, if you are trying to reference UICollectionViewController, and need UIKit to reference it, comment out the code that is using UICollectionViewController, … Read more

How to auto increment the build number in Xcode 5 [duplicate]

Go to Editor -> Add Build Phase -> Add Run Script Build Phase Go to Build Phases in the project navigator and edit Run Sript. Change Shell to /bin/bash and paste the following script: #!/bin/bash buildNumber=$(/usr/libexec/PlistBuddy -c “Print CFBundleVersion” “$INFOPLIST_FILE”) buildNumber=$(($buildNumber + 1)) /usr/libexec/PlistBuddy -c “Set :CFBundleVersion $buildNumber” “$INFOPLIST_FILE” Don’t forget to change the Build … Read more

How to point Xcode to an old SDK so it can be used as a “Base SDK”?

You’ll need to add a symlink to the old SDK (this is generally easier than copying). cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs ln -s /path/to/old/SDK . This works fine back to 10.5. Beyond that things get a little more complicated… While there’s no promise in future versions of Xcode that this will be supported, I’ve chatted with the Xcode … Read more

Remove Navigationbar’s bottom border iOS7

That does not work on iOS7 with navigation translucent or not… A paste from Apple documentation; Description The shadow image to be used for the navigation bar. The default value is nil, which corresponds to the default shadow image. When non-nil, this property represents a custom shadow image to show instead of the default. For … Read more

iOS 7 custom back button

This is not a bug, this how Back button looks in iOS 7. For example: You should probably use the new concept for your application, and not to set background image for back button in iOS 7. If you still want you back button have the same as it looked in iOS6 than you should … Read more

Unknown type name ‘UIImage’

I also had the same problem and fixed it using #import <UIKit/UIKit.h> However, I dug around some more and compared a project made in XCode 6 compared to Xcode 5, and I noticed that Xcode 6 did not create a prefix header file. The prefix header file is implicitly imported into every class, and the … Read more