Categories
Uncategorized

iOS 7 Development: Getting iOS 7 on Your iPhone or 5th-Gen iPod Touch / Getting Xcode 4.6.3

ios 7 developmentIn the previous article in this series, I showed you how to get the Xcode 5 preview and the iOS beta SDK up and running on your Mac. That enables you to start writing apps and testing them out on the Simulator.

Of course, it’s one thing to test an app on the Simulator, and it’s another thing to test it on a real iDevice. Running iOS 7 on your device lets you try out your apps in a closer-to-real-world situation, and it also lets you get a better feel for what the new version of the OS looks and feels like. Let’s face it, if you’re going to be developing apps for iOS 7, you’ve got to experience it on a regular basis, so that the apps you write look, feel, and function as though they belong.

Currently, the iOS 7 beta works only on:

  • iPhone 5
  • iPhone 4S
  • iPhone 4
  • iPod Touch (5th -generation only)

You’re going to have to wait if you want to run iOS 7 on an iPad.

Before You Install the iOS 7 Beta on Your iPhone or iPod Touch, Ask Yourself this Question

dirty harry

iOS 7, in its current state is not something for everyone to try. It’s a work in progress that’s being given exposure to developers, designers, and other people in the business of making iOS apps a much-needed advance trial. Since it’s still in development, not all the features are final, it hasn’t yet been fully optimized, and there’s no guarantee that all the known issues have been fixed. A lot of its features may still be subject to change, and any material on it that wasn’t released to the general public by Apple is covered by an NDA (non-disclosure agreement).

The question you must ask yourself is: “Am I a person in the business (or planning to be in the business) of making iOS apps?”

If the answer is “yes”, carry on. If the answer is “no”, and you just want a sneak peek, I suggest waiting.

Prerequisites

You should make sure that you can answer yes to all the following questions:

  1. Are you enrolled in the iOS Developer Program? You can’t get to the download page for the iOS 7 beta without one. It’s a mere US$99 for individual developers.
  2. Are you running the latest version of MacOS? You should be running the latest version of Mountain Lion, a.k.a. version 10.8. I’m running version 10.8.4, and that seems to have worked for me, as my iPhone 4S is running iOS 7 right now.
  3. Are you running the latest version of iTunes? There’s no getting away from iTunes as the go-between for your Mac and your iPhone or iPod Touch, and you’ll need it to transfer iOS 7. I’m running version 11.0.4.
  4. Is your iPhone’s or iPod Touch’s battery charged? Call me paranoid, but I don’t upgrade OSs on my mobile devices unless they’re fully charged. You just want enough charge so that it doesn’t run out during the upgrade process.

Getting the Package

Point your browser at the iOS Dev Center. If you’re properly registered in the iOS Developer Program, you should have the options of looking at resources for iOS 6.1 and iOS 7. Naturally, you should select iOS 7 SDK beta, after which the page should look like the screen capture below:

ios dev center - ios 7 beta

You can click on the Downloads link under the Resources for iOS 7 beta heading, or simply scroll down. Either way, you’ll end up in the same place, where you’ll see this:

ios 7 beta

Download the one that’s appropriate for your phone. I’ve included direct links to the currently available packages below:

The file size might vary from model to model; mine was 1.16 GB.

Installing the Package

The file that you’re downloading is a disk image. Double-click it to mount the image. You should see one file:

ipsw

Connect your iPhone or iPod Touch via USB to your Mac and start up iTunes. Let the sync complete. Click the iPhone button near the upper right-hand corner of the iTunes window:

iphone button

The iTunes window should look something like this:

itunes 01

If you haven’t done so already, back up your iPhone.

And now, the important part of the process. I’m going to spell this out in large text:

While holding down the option or alt key on your keyboard, click the Restore iPhone… button. This allows you to choose a specific file to use when restoring your iPhone or iPod Touch. Choose the .ipsw file contained within the disk image you just mounted.

(That’s how you get iOS 7 on your iPhone or iPod Touch at this early point in the game: you’re restoring it from an image that has iOS 7 on it.)

Once you’ve done that, the uploading and installing process will take about 10 to 15 minutes. Your iPhone or iPod Touch will reboot once or twice during this time.

Getting Xcode 4

xcode in the app store

Since most discussion of iOS 7 is still under non-disclosure agreement — you can talk about it all you want within the forums inside Apple’s developer site, but not out in public just yet — the best way to show you iOS 7 development is through showing you iOS 6 development. Until the embargo on showing iOS 7 in action is lifted, I’ll show you iOS 6 development, most of which is applicable to developing for iOS 7.

In order to do iOS 6 development, you’ll need the current version of Xcode, version 4.6.3 at the time of this writing. Getting the current version of Xcode is easy: you get it via the Mac App Store, and it’s free-as-in-beer. As I mentioned in the previous article, the current version of Xcode and the Xcode 5 beta can coexist on the same machine. In our explorations of iOS 7 development, I’ll show you iOS 6 code, which you can first try on the current Xcode, and then try out on Xcode 5.

Categories
Uncategorized

Mobile is Eating the World!

eating the world

No matter what your angle on mobile technologies is — mobile developer, a mobile IT pro, a mobile marketer, or participating in mobile ecommerce — you’re going to want to get a look at a slide deck titled Mobile is Eating the World. Yes, it’s another “state of the mobile industry” presentation saying that the future of mobile is massive, but it tells the story very well using mostly graphs, and it’s quite layperson-friendly. The presentation, put together by Enders Analysis consultant Benedict Evans, has gone unnoticed by the mobile tech world for almost a month because it wasn’t given at a tech event, but at BookExpo America, a book publishing industry conference.

I’ve taken the graphs from the slide deck and rearranged them a little; I think the story’s even stronger when the slides are in this order.

Step Aside, PC, Here Comes Mobile!

According to IDC, PC shipments are expected to drop by nearly 8% this year. They’re still selling, but the sales trend is no longer upwards, as the roles it once played exclusively are now being taken up by smartphones and tablets. A new version of Windows used to boost PC sales, but that’s no longer the case; a number of people in the industry say that it’s the upcoming end of extended support for Windows XP (this happens on April 8, 2014) rather than Windows 8 that will slow the decline:

01 the state of pcs

At the same time, sales of smartphones are booming. They’ve got much faster product cycles, and people tend to replace them every 2 or so years on average, rather than every 4 years with PCs:

02 smartphones are exploding

CCS Insight predicts that 1.86 billion phones will be shipped in 2013, and 53% of them will be smartphones. In fact, more smartphones than non-smartphones were shipped for the first time in the first quarter of 2013:

03 more mobile growth coming

Tablets Taking Over

According to Evans’ charts, tablet sales surpassed desktop PC sales in late 2012 and are quite close to laptop sales today. It shouldn’t be surprising to find that 1 in 3 American adults owns a tablet:

05 tablets overtaking pcs

If you treat Android, Kindle Fire and Nexus tablets as individual platforms — and from a non-technical end user’s point of view, they are individual platforms — then the tablet market resembles the PC market in the mid-1980s, with a couple of big players and some smaller but significant ones:

06 120m tablets in 2012

In G8 countries, the phrase “tablet market” might as well be synonymous with “iPad market”:

07 ipad use dominates everywhere

One casualty of the rise of tablets is the ereader. While they’re cheaper and typically have better battery life than tablets, the fact that they’re single-taskers, have a form factor that’s all-too-similar to tablets, and cost almost as much as the new smaller tablets (such as the iPad Mini) make them less appealing to purchase. They will most likely turn out to be a transitional technology, as netbooks and PDAs were:

08 weaking interest in ereaders

The Future is Mobile

Mobile is booming:

04 the future is mobile

In fact, it’s expected that there will be more mobile phones than people by 2017:

09 the world in 2017

Two big players dominate, each with different audiences, own the mobile market. Samsung sells the most mobile units, but Apple has the most active users, with former heavyweights BlackBerry and Microsoft clawing tooth and nail for a distant third place:

10 dominance of apple and samsung

Ouch:

11 the irrelevance of microsoft

When Two Giants Combine

Back in 1994, when I was about to graduate with my computer science degree, I was at first intrigued by an ad place in some programming newsgroups about a company that was planning to sell stuff through an online catalog and deliver their products via courier or standard shipping. In the end, I dismissed it thinking “Really? That’s just the old Sears & Roebuck mail order catalog in electronic form.” I’m kicking myself now:

12 amazon

Like me, Evans compared Amazon to Sears & Roebuck — just not dismissively:

13 21st century sears and roebuck

And having seen Amazon’s sales and having worked at Shopify, I’ve witnessed the upward trend in this chart from the front lines:

14 much more ecommerce to come

Be sure to check out the full slide deck of Mobile is Eating the World. It’s a mere 24 slides, but it’s great fodder for those of you who need material on the state of the industry:

Mobile is Eating the World by Benedict Evans

this article also appears in mobilize the cts blog

Categories
Uncategorized

iOS 7 Development: Getting and Setting Up Xcode 5 and the iOS 7 SDK

For You, the New-to-iOS Developer, Change is Good

ios 7 developmentAs I mentioned in my previous article, iOS 7 represents more than a change in Apple’s approach to their mobile device user interfaces; it also represents an opportunity for developers who’ve been putting off learning how to build native iOS apps to get started. iOS 7 is the latest in a series of changes that makes the present time the best time for a new developer to try their hand at making apps for the iPhone, iPad and iPod Touch, which include:

Changes at Apple, which in turn will be reflected in their products and technology.

This is only the start of the first wave of products that come after the era of Steve Jobs (the tastemaker) and Scott-Forstall (the technologist), who both brought their own set of design and technology decisions to iOS. Jony Ive, who’s been responsible for Apple’s brilliant chassis designs, is now doing overall design, which includes user interfaces. On the technology side, Craig “Hair Force One” Federighi’s role has expended from just Mac OS to include iOS. While both the old and new guard seem to follow the Apple credo of “a thousand no’s for every yes”, Ive’s and Federighi’s decisions will likely be quite different from those that Jobs and Forstall would’ve made.

Changes in the tools and technology used to build iOS apps.

One of the reasons many people stay away from native iOS app development is that it looks hard. It didn’t help that iOS development required two separate applications, Xcode for code writing and Interface Builder for laying out and setting up user interfaces. Interface Builder is now built into Xcode, and this new, unified application has been refined so that it seems odd to think that they were once separate programs. At the same time, the Objective-C programming language and compiler have undergone a fair amount of modernization. If you have some experience with any currently popular object-oriented programming language, whether it’s C#, Java, JavaScript, PHP, Python, Ruby or Visual Basic, you shouldn’t have too much difficulty making the leap to Objective-C.

Changes in the design philosophy and user interface of iOS.

Before the iPhone’s introduction in 2007, smartphone interaction took place on a physical keyboard, with a trackball, stylus, or wheel acting as a secondary pointing device. iOS veered away from this familiar interface and made the touchscreen the primary input device. This new touch-based interface needed controls that clearly gave away their purpose, and this led to making them look like their physical counterparts: push buttons, toggle switches, dials, and so on. Six years have passed since the introduction of the iPhone, and most mobile devices use the touchscreen as their primary interface. While iOS’s user interface made sense in the world of 2007, in 2013, iOS’ user interface can cast off the “training wheels” it provided to users.

All these changes, taken together, mean that you can approach iOS it as if it were a completely new platform — one that just happens to have a large (and the most active) user base. This “perfect storm” of changes doesn’t happen often — perhaps once a decade — so if you’ve been putting learning iPhone and iPad native app development for “the right moment”, I have news for you: that right moment is now.

You’ll Need to Enroll in the iOS Developer Program

ios developer program enrollment page

You can get the tools for the current version of iOS simply by being enrolled in Apple’s free developer program, but in order to get an early developer look at iOS 7, you need to be registered in the iOS Developer Program. It’s only US$99 a year for individual developers, and it gives you access to all the advance information about iOS 7, as well as the ability to submit your apps for sale in the App Store. The sign-up process is fairly quick, and you can start it at Apple’s iOS Developer Program enrollment page.

Once you’re enrolled, you can start downloading the development tools and iOS 7 for your iDevice, as well as access the resources that they’ve made available to developers.

Getting the Xcode 5 Preview and iOS 7 SDK

xcode preview iconIn order to build iOS 7 apps, you’ll need the Preview version of Xcode 5, the next version of Apple’s IDE. It comes with the iOS 7 beta SDK, which includes the iOS Simulator, which lets you test your apps before deploying them to a real device (or try them out if you don’t have an iPhone, iPad or iPod Touch handy). It has a different name from the current version of Xcode (the current version is Xcode, the preview is called Xcode5-DP), and both versions can be on the same Mac at the same time.

Normally, you would simply get Xcode by downloading it for free from the Mac App Store. However, Xcode 5 is a preview and has not yet been released; you have to download it from the Apple Developer site.

Point your browser at the iOS Dev Center. If you’re properly registered in the iOS Developer Program, you should have the options of looking at resources for iOS 6.1 and iOS 7. Naturally, you should select iOS 7 SDK beta, after the page should look like the screen capture below:

ios dev center - ios 7 beta

You can click on the Downloads link under the Resources for iOS 7 beta heading, or simply scroll down. Either way, you’ll end up in the same place, where you’ll see this:

xcode 5 developer preview Click the Xcode 5 and iOS 7 SDK beta link to start the download. It’s a .dmg file that’s 1.73 GB in size, and when double-clicked, mounts a disk image and opens the window shown in the screen capture below:

xcode dmg window

It’s a straight-forward drag-the-app-to-the-Applications-folder-alias install, and you’re done!

Categories
Uncategorized

New iOS, New Interface, New Opportunity, New Developer Tutorial Series!

iphone running ios 7

The New iOS

iOS 7 was saved for last at Apple’s WWDC 2013 keynote, and rightfully so: it was the announcement that the iFaithful were waiting for. In case you’ve been busy and haven’t yet had a chance to see it in action, here are a couple of videos to get you started. First, the trailer: a 7-minute 29-second promo video with Apple’s “right brain” Sir Jony Ive tackling the visual design aspects and Apple’s new “left brain” Craig Federighi describing the new functionality.

Few companies know how to send subtle messages the way Apple does, whether in their user interfaces or their marketing, so the contrast between Ive (the visual design guy; with no hair, V-neck T-shirt, and an English accent) and Federighi (the software guy; with the coiff that earned him the nickname “Hair Force One”, collared shirt, and an American accent) is an interesting one. I’m certain that “has a personal style that’s quite different from Jony’s” wasn’t the reason they picked Craig to be Senior Vice President of Software Design, but it would be very un-Apple not to play it up. It says “We’ve got looks and brains; a beautiful, usable interface, and some great underlying technology to boot”.

If you’d rather watch the actual WWDC presentation, here are those 33 minutes that were devoted to iOS 7. Jony’s not into doing keynotes, so Craig took the reins. He’s a solid presenter; I’m looking forward to seeing him do more demos in future Apple announcements:

The Changes in iOS 7

ios 7

This is the first post-Seve Jobs/Scott Forstall version of iOS, and it shows. As Jon “Daring Fireball” Gruber wrote in his post-keynote article:

…in some ways Apple’s software design has gotten better, because it was Jobs (and Forstall) who had a penchant for exuberant textures and gimmickry. Jobs’s taste in hardware was nearly perfect, but his taste in software had a weakness for the saccharine. Wood grain, linen, Rich Corinthian leather, etc. It was all just sugar for the eyes. This is a weakness Jony Ive’s software taste clearly does not suffer.

Application designers and developers generally take their cues from the designers of their target operating systems. iOS shared Steve Jobs’ taste for skeuomorphic, and it showed in app such as the built in Compass, with its polished wood and brass UI:

old ios compass

Many iOS developers took that fascination with simulated three-dimenisonality, real-world objects, and realistic textures to strange new heights. If you want to see some of the most over-the-top examples of these designs, point your browser at the Skeu It! site and be prepared to facepalm:

denim weather app

It’s hot and humid today…in my pants!
A lot of apps feature texture for texture’s sake.

The new iOS represents a step away from the simulated 3-D, literalist approach to user interfaces and towards a flatter, simpler, brighter look. Note the differences between the icons for standard apps in iOS 6 and 7:

home screens ios 6 and 7

iOS 6 / 7 screen comparison from Matt Gammel’s writeup.

Here’s one of the most-used built-in apps, Messages, in iOS 6 and 7.:

messages in ios 6 and 7

iOS 6 / 7 screen comparison from Matt Gammel’s writeup.

This is what you see when you get a phone call in iOS 6 and 7:

phone screens ios 6 and 7

…and here’s a side-by-side comparison of the sample “periodic table” app, “TheElements”, in iOS 6 and 7:

elements sample app in ios 6 and 7

As you can see (and as the tech press has been reporting), they’ve gone to a “flatter” interface, with a greater emphasis on text and the removal of a lot of UI “chrome”.

The best writeup covering the user interface changes in iOS 7 that I’m aware of it Matt Gemmell’s. Published a mere two days after the WWDC keynote and the availability the iOS 7 beta to developers, it’s as a complete an overview of the changes as we’ll see for the time being. If you plan on designing applications for iOS 7, it’s a worthwhile read.

The Developer Opportunity

reboot

If you’re a developer who’s been meaning to get into iOS development but worry that you’re starting from way behind the curve, the redesign in iOS 7 is a disruption that works in your favour. While apps written for previous versions should work, they’ll seem out of place and maybe even archaic in iOS 7’s new UI. Marco Arment, in a post titled Fertile Ground says that this is great news for you:

Apple has set fire to iOS. Everything’s in flux. Those with the least to lose have the most to gain, because this fall, hundreds of millions of people will start demanding apps for a platform with thousands of old, stale players and not many new, nimble alternatives. If you want to enter a category that’s crowded on iOS 6, and you’re one of the few that exclusively targets iOS 7, your app can look better, work better, and be faster and cheaper to develop than most competing apps.

This big of an opportunity doesn’t come often — we’re lucky to see one every 3–5 years. Anyone can march right into an established category with a huge advantage if they have the audacity to be exclusively modern.

Another thing to keep in mind is that iOS users tend to upgrade quickly. In a world where it’s still not all that unusual to see a machine running Windows XP or where a third of the Android devices out there are running version 2.3, iOS users set themselves apart by keeping up to date. According to Chitika, almost 93% of iPhone users are running the current version of iOS:

iphone ios version distribution

Click the graph to see the source article.

All this means is that it’s not too late to learn how to develop for iOS, especially if you start now.

Regular iOS Developer Articles, Here on Global Nerdy

new ios features at wwdc

If you search around the web for developer courses or “boot camps” for iOS and Android, you’ll find that they’re

  • Quite short, running anywhere from 2 to 5 days, and
  • Quite expensive, running anywhere from $900 to almost $4000

iOS 7 developmentThere are some people who benefit from getting started by taking a course: perhaps they need the structure of a classroom to give them initial momentum, or perhaps it’s the idea of having to pay for a course that motivates them (just a smokers who pay to join a “quit smoking” program have been observed to be more successful in quitting than those who spent no money). If you feel that classes would help you get started and you have the money — or someone, perhaps your employer, does — by all means, take them.

However, if you don’t have the money to attend an iOS development course or boot camp, or if you want to supplement your courses, keep coming back to Global Nerdy. I’ll be posting articles on iOS 7 development on a regular basis, sharing tips and tricks, pointing you to valuable resources, and generally presenting information that you, the developer new to iOS 7, will find useful. Watch this space!

Categories
Uncategorized

Facebook and IDC’s Study Says Most of Us Check Our Smartphones Within 15 Minutes of Waking Up and Have Them Handy 22 Hours a Day

always connected

The Always Connected: How Smartphones and Social Keep Us Engaged report sponsored by Facebook and written by IDC provides some interesting insights not just into Facebook usage, but smartphone usage in general. Here are some of their observations:

4 out of 5 smartphone owners

  • 79% of the survey respondents check their smartphones within 15 minutes of waking up.
  • 62% of the respondents reach for their smartphone immediately after waking up.
  • 44% reach for their smartphone immediately and use it as an alarm clock (I myself fall into this category).
  • If you consider only the respondents between the ages of 18 and 24, these numbers get about 10% higher:
    • 89% check their smartphones within 15 minutes of waking up.
    • 74% reach for their smartphone immediately after waking up.
    • 54% reach for their smartphone immediately and use it as an alarm clock (I myself fall into this category).

us smartphone owners

  • 79% of the survey respondents keep their smartphone handy for all but two hours of their waking day. The report doesn’t say what happens during those two hours.
  • 63% of the respondents keep their smartphone handy for all except one hour of their waking day.
  • 25% couldn’t recall any time when their smartphone was not close by.

top 10 smartphone applications

  • “Weekend” usage — if we count Friday, Saturday and Sunday as the weekend — is nearly double weekday usage:
    • Respondents spent 163 minutes communicating and using social media on their smartphones from Friday through Sunday.
    • They spent 87 minutes communicating and using social media on their smartphones from Monday through Thursday.

smartphone use through the day

Whether you’re interested in how people use Facebook or smartphones, you’ll want to check out this report, which you can download for free here.

this article also appears in mobilize the cts blog

Categories
Uncategorized

Just When You Thought That XBox One’s PR Couldn’t Get Any Worse, the Xbox Boss Proves That It’s Possible

its called xbox 360

As if Xbox One’s PR troubles weren’t enough, Don Mattrick, President of Microsoft’s Interactive Entertainment Business division, made matters worse in an interview with Spike TV’s Geoff Keighley:

MATTRICK: “Some of the advantages that you get, of having, a box that is designed to use an online state, so, that, uh, to me is the future-proof choice, and I think people, could’ve arguably gone the other way if we didn’t do it and fortunately we have a product for people who aren’t able to get some form of connectivity, it’s called Xbox 360.”

KEIGHLEY: “Right, so stick with 360, that’s your message if you don’t [inaudible] like it?”

MATTRICK: “Well, if you have zero access to the internet, that is an offline device, I mean, seriously, when I read the blogs, and thought about who’s really the most impacted, there was a person who said ‘hey, I’m on a nuclear sub,’ and I don’t even know what it means to be on a nuclear sub but I’ve gotta imagine it’s not easy to get an internet connection.”

KEIGHLEY: “[inaudible] playing call of duty multiplayer”

MATTRICK: “Hey, I can empathize, if I was on a nuclear sub, I’d be disappointed.”

Way to support the troops, Mattrick.

Here’s the video of the interview, which is already well on its way to living on in PR infamy:

People who grew up with an Apple ][ in the 1980s might recognize a game that Mattrick co-wrote (and sold a lot of) at the tender age of 17: Evolution. I loved that game:

If Mattrick’s jab at people who are complaining about the “always connected” requirement gives you deja vu, it’s because it happened on Twitter, with Adam Orth, whose tweets led him to being shamed into leaving Microsoft:

adam orth xbox tweets

Categories
Uncategorized

How Google Should Respond to Yesterday’s Apple Keynote

In yesterday’s Apple keynote, one of the demos was for Anki Drive, an AI-driven toy car game:

While impressive, Google’s been hard at work on something even bigger for a while now. Here’s how they should respond:

wow apple self-driving toy cars

I found the image here.