Tag ‘xcode’

App submission changes

Brad Midgley

If you have an existing project and you try to resubmit to the app store, you are likely to run into a problem with the changes Apple has made.

Error: The binary you uploaded was invalid. The bundle did not contain an icon for iPad of exactly 72×72 pixels, in .png format.

Solution: Add a .png to your project of this size, then go to Info.plist, add a new key CFBundleIconFiles, rick-click it and change it to an array, and for values

Continue reading

How to build and submit a Universal App for distribution on the App Store with the iOS 4 SDK

Mauro Dalu

Today I’ve been working on submitting an update to our popular Catholic Prayers database app: it’ll be our first Universal application to hit the App Store. Ever since we upgraded to the latest SDK we can only build for iOS 4, but we’ve set the iPhone OS Deployment Target to be 3.1.3. That way, our users should be able to run the app on devices running iPhone OS 3.x.

Xcode includes project templates for iPad apps and has a menu command (Project > Upgrade Current Target for iPad) that helps you get the project setup correctly when you want to add iPad support to your existing iPhone project. The Upgrade command gives you two options…

Continue reading

How to: unable to build for iPhone OS 3.1.3 after iPhone SDK iOS 4 upgrade

Mauro Dalu

If you upgraded your iPhone SDK to the final version supporting iOS 4, you have noticed that everything older then SDK 3.2 vanished. After some research, I found out you can build with 4.0 SDK and still run on devices with earlier versions of the firmware.

If you want to be compatible with iPhone OS 3.x you still compile for SDK 4.0, but set the target settings to tell that yout iPhone app can run on 3.x (iPhone OS Deployment Target). If you did not use any iOS 4.0 specific APIs then your app will run smoothly on 3.x and 4.x… Read on to learn more.

Continue reading

Interface Builder not in sync with Xcode: can’t see images classes and project status is yellow or gray

Mauro Dalu

Ever since upgrading Apple’s iPhone SDK to 3.2 beta and 3.2 final now, I started experiencing this issue: Interface Builder (IB for friends) didn’t recognize, show or list the images in “nib” files associated to an Xcode project.

Other symptom of the problem is Interface Builder not being kept in sync with an Xcode project when adding or altering outlets and actions and then do a Save.

The solution is bizarre and makes me think there’s been a total lack of care from Apple in releasing this XCode as a final version…

Continue reading

Triangle stripping utility for iPhone OpenGL ES developers

Triangle stripping is one of the most efficient ways to increase frame rate in complex scenes. There are good open source libraries around that can be used for stripping. One of them is NvTriStrip available on NVidia website.
NvTriStrip is written in cross-platform C++ and can be easily built with Xcode. I have wrapped up a small Xcode project that actually does the job.

Continue reading

How to implement shadows with OpenGL ES on iPhone SDK — an overview

shadows-open-gl-es-iphone-ipod-touchOne of our projects currently under development is a 3D puzzle game where player will manipulate a number of cubic blocks. Those blocks can be moved above the board so to look realistic they need to cast shadows onto the board. Despite shadows are used in many 3D games and OpenGL ES does have all necessary things to implement them there is no support for shadows in API itself so the implementation is not straightforward at all. The task requires some smart coding. Let’s see how it can be done.

Continue reading

How to implement resumable file downloads on iPhone SDK

iphone_sdk_codeFile downloading is a feature used very often in various applications. You may need to get an update from the server, to provide optional resources to the user or to get a copy of a shared document — all this functionality deals with file downloads. And as long as downloads go over network they can be interrupted which is very frustrating, especially if you are downloading something big that takes a lot of time.

Modern applications can’t afford forcing users to start interrupted downloads from the beginning. In Mac OS X SDK we have a very nice NSURLDownload class that supports download resuming functionality. This class is not a part of iPhone SDK though. That’s why we have to descend one level lower and look into what HTTP protocol provides.

Continue reading

Xcode won’t recognize iPhone OS 3.0.1

Brad Midgley

If you see a message like “The version of iPhone OS on (your phone’s name) does not match any of the versions of iPhone OS supported for development with this copy of Xcode” after the 3.0.1 update, the quick fix is to run in a shell:

sudo ln -sf 3.0\ \(7A341\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.0.1

And then restart Xcode and reconnect the device. A long discussion about this at technolosophy.

Continue reading