“Your binary is not optimized for iPhone 5” after I upload an app with xcode 6.0.1

We faced the same issue and couldn’t solve it after trying many solutions, we believe it’s a kind of bug in App submission. But we found a workaround which can keep launch images localized and pass the submission verification. Environment: Xcode 6.1 (6A1052c) with iOS 8.1 SDK Precondition: Have following properties in your “*-info.plist” file. … Read more

How to display the current project version of my App to the user?

After further searching and testing, I found the solution myself. NSDictionary* infoDictionary = [[NSBundle mainBundle] infoDictionary]; NSLog(@”%i Keys: %@”, [infoDictionary count], [[infoDictionary allKeys] componentsJoinedByString: @” ,”]); This snipplet gave me the following output: 20 Keys : NSBundleResolvedPath ,CFBundleVersion ,NSBundleInitialPath ,CFBundleIdentifier ,NSMainNibFile ,CFBundleIconFile ,CFBundleInfoPlistURL ,CFBundleExecutable ,DTSDKName ,UIStatusBarStyle ,CFBundleDevelopmentRegion ,DTPlatformName ,CFBundleInfoDictionaryVersion ,CFBundleSupportedPlatforms ,CFBundleExecutablePath ,CFBundleDisplayName ,LSRequiresIPhoneOS ,CFBundlePackageType ,CFBundleSignature … Read more

What is target membership in Xcode 4

Generally header files are not members of targets. Making an implementation file a member of a target tells Xcode to compile the file when you build the target. In your example Xcode compiles the file myAppFile.m when you build the myAppTests target but not when you build the myApp target. When you have an application … Read more

Interface orientation in iOS 6.0

Deprecated method in iOS 5: // Override to allow orientations other than the default portrait orientation. – (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); } Replacement in iOS 6 and equivalent of this deprecated iOS 5 method above: – (BOOL) shouldAutorotate { return YES; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscapeRight; } … Read more

Insert Subversion revision number in Xcode

There’s a much simpler solution: using PlistBuddy, included at /usr/libexec/PlistBuddy in Leopard. See my answer to a related SO question for details. PlistBuddy can be used in a Run Script build phase from within Xcode, and can be used to only affect the processed plist file. Just put it after the Copy Resources phase, and … Read more

SVN ignore pattern with Xcode 4

I have the following in my ~/.subversion/config file: global-ignores = *.o *.lo *.la .*.rej *.rej .*~ *~ .#* .DS_Store *~.nib *.mode* *.pbxuser CVS _*.java *.perspective .LSOverride *.xcuserdatad I added the last one (*.xcuserdatad) recently for Xcode 4.