Based on my last post’s Caching System Architecture for Mobile Apps with a WordPress REST back-end, let’s review in more details what is required to build a cache controller in Swift. The flow: At first run, the app calls all API endpoints requred to download data from the website: Use “Get All” endpoints for each… →
Supported Time Zones PHP, Swift, Java (Android)
We recently came across the challenge of specifying daylight saving affected time zones on a PHP based web back-end to be consumed by a mobile app on iOS and Android. We initially thought of dealing with this using the time difference in hour from either UTC or GMT, however that would not keep in account… →
Mac OS X 10.7.3 with Xcode 4.3: This bundle is invalid. Apple is not currently accepting applications built with this version of the OS.
We have a few Mac applications on which we need to enable the Lion sandbox and resubmit to the Mac App Store (Mac, not iOS). I already applied the combo update 10.7.3 and after that I started getting this error: “This bundle is invalid. Apple is not currently accepting applications built with this version of… →
Will Apple iCloud API support Android, Windows?
At WWDC 2011 Steve Jobs introduced iCloud and mentioned a couple of things while doing so that made people wonder if iCloud will be an iOS an OS X specific technology or if it will be made available to 3rd parties platforms and establish itself as an industry standard instead. Apple’s CEO mentioned iCloud would… →
Get positive, 5 star reviews for your iPhone or iPad App with Request a Review Alert for iOS SDK
Invite your happy users to leave a review for your app, after 10, 20 or 30 days of use. An alert will pop up, similar to the image above, and the user will have the option to go to the App Store in order to leave a review, hide the alert temporary or permanently. Analyzing… →
Xcode 3.2.5 in iOS SDK 4.2 finally uploads a binary to the App Store in the background!
Developers rejoice! Xcode finally submits your binaries to the App Store in multi-threading, allowing you to continue to work with it while you upload your apps. This has been a feature I’ve been waiting for ever since we started working with iPhone apps: back when the App loader was in its early stages, we were… →
iTunes and Xcode 3.2.3 do not recognize iPhone on Mac OS X 10.6
Before wasting too much time messing with cables and blaming USB ports (like I did), check on Apple’s Software Update if the iPhone SDK Compatibility Update 1.0 is there for you to install. The solution to your problem is just a handful of kilobytes and one restart away :)
App submission changes
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… →
How to build and submit a Universal App for distribution on the App Store with the iOS 4 SDK
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… →
How to: unable to build for iPhone OS 3.1.3 after iPhone SDK iOS 4 upgrade
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… →
Interface Builder not in sync with Xcode: can’t see images classes and project status is yellow or gray
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… →
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… →
How to implement shadows with OpenGL ES on iPhone SDK — an overview
One 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… →
How to implement resumable file downloads on iPhone SDK
File 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… →
Xcode won't recognize iPhone OS 3.0.1
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… →