Eucalyptus notebooks


I try not to talk about things here and on the Other Things Blog at the same time, but I think this is cool enough that I’m going to make an exception.

The promotional notebooks I had made for Eucalyptus arrived today, and they’re great!

Read more…

Hither Eucalyptus!


Earlier today I received a phone call from an Apple representative. He was very complimentary about Eucalyptus. We talked about the confusion surrounding its App Store rejections, which I am happy to say is now fully resolved. He invited me to re-build and submit a version of Eucalyptus with no filters for immediate approval, and that full version is now available on the iPhone App Store.

Since my previous post, I’ve been so pleased with the overwhelmingly positive articles, blog posts, comments and tweets - and also the emails from those of you who felt so strongly about the issue you wanted to contact me directly. They were all much appreciated. Thanks for all the support. It’s been a roller coaster of a weekend!

If you want to find out more about Eucalyptus as it evolves in the future, I encourage you to subscribe to the newly opened Other Things blog, or follow eucalyptusapp on Twitter. Feel free to keep reading here too, of course - www.blog.montgomerie.net is more likely to contain personal, programming, and other miscellaneous things than the Other Things blog, though.

To the people who filled in the email form on eucalyptusapp.com, we’ll be sending out an availability announcement tomorrow (I’m in the UK, and it’s rather late here now).

Thanks again for the support. I hope you love Eucalyptus.

Read more…

Whither Eucalyptus?


Update

The situation has now been resolved. Read more in my later blog entry.

Original post

If you’re wondering why Eucalyptus is not yet available, it’s currently in the state of being ‘rejected’ for distribution on the iPhone App Store. This is due to the fact that it’s possible, after explicitly searching for them, to find, download from the Internet, and then read texts that Apple deems ‘objectionable’. The example they have given me is a Victorian text-only translation of the Kama Sutra of Vatsyayana. For the full background, a log of my communications with Apple is below.

To give a bit of background about Eucalyptus itself, it doesn’t ‘contain’ books any more than a newly bought iPod ‘contains’ songs. It provides an easy-to-use way to find and download classic books, then presents them a beautiful, readable (I would say the most beautiful, and most readable, but I’m biased of course) way. Check out the videos at eucalyptusapp.com if you haven’t seen them. The books are all text-only, and are directly downloaded from the archives of the well-respected Project Gutenberg.

The exact book (the Kama Sutra) that Apple considers the ability to read ‘objectionable’ is freely available on the iPhone in many ways already. You can find it through Safari or the Google app of course, but it is also easily available via other book reading apps. You can get it easily via eReader, though the search process is handled by launching a third-party site in Safari, with the download and viewing taking place in eReader. Stanza offers up multiple versions, some with illustrated covers. Amazon’s Kindle app, the latest version of which was approved by Apple this week, offers multiple versions too - although it does charge from 80¢ to $10 per book - and you again purchase via Safari before Kindle downloads the book.

I am at a loss to explain why Eucalyptus is being treated differently than these applications by Apple. I’m also frankly amazed that they would suggest I should be manually censoring content that is being downloaded from the public Internet - classic, even ancient, books, no less.

To digress a little for a moment, it especially amazes me that this is happening to Eucalyptus - a $9.99 app that allows you to download text-only classic books - given the huge volume of what is arguably soft-core porn imagery that’s now available in apps on the store. Just search for “sex” to see what I mean (or even “Kama Sutra” - you’ll find “SlideHer Tera Patrick”, the description of which features the classy line, “Almost X rated, it’s not porn.”) I do, however, accept that this could be seen as a consistent policy - even if it does seem morally dubious to me. Honestly though, is a 14 year old looking for something illicit more likely to download a free bikini girls app, or pay $9.99 for a book reading app, search explicitly for the Kama Sutra, then wade through Victorian prose trying to find the ‘good bits’?

Anyway - back to the issue directly at hand. For all I know, it could just be that I was unlucky enough to have Euclyptus assigned to an over-zealous reviewer. If Apple responded to attempts at communication, it’s possible we could have resolved this quickly, even if it took a call-center style “can I please speak to your manager”, but they do not.

A commentary

I’m going to talk a bit about my personal frustrations here - you can skip this part if you’re not interested in emotional impact, or would class further complaints as whining.

I suspect that no-one at Apple knows how genuinely torturous the app store approval process is for developers personally after a rejection. When they hold the key to the only distribution pipe for something you’ve spent a lot of your time on - in my case a year - something you’re hoping could provide you with a livelihood - and polite email enquiries are not replied to - not even with an autoresponder, it is extremely frustrating. I don’t think I’ve ever felt as powerless in my life (and I’ve had to deal with US immigration authorities…). I think anyone that knows me would confirm that I’m a very level-headed person, but this is the only thing in my adult life I can recall losing sleep over (although perhaps that’s also a consequence of being otherwise lucky in life so far).

I can certainly appreciate that Apple probably has to deal with some very difficult and unreasonable developers, but that’s not a reason to lock all others out of any form of conversation. I am sure they could do a lot to improve developers’ view of the process if they were just a little more outwardly friendly. There’s a lot they could do without even spending significant money - how much would an estimate of time remaining until review cost to implement? Or a policy of responding to at least one email after a rejection?

If it wasn’t for their dominant market share, I suspect that they would have to be a lot more friendly to attract developers to the platform. As it is, I guess I just have to hope that they realise the emotional distress they’re causing (and I haven’t even mentioned the other flaws of the process, like the inability to specify when your application will go on sale if you want it to appear in the ‘new’ application lists).

The full background

Below, identifying details (email addresses and reference numbers) have been removed from the emails originating from Apple.

Eucalyptus was first submitted to Apple on the 27th of April. On the the 3rd of May, I received the first rejection - for misusing the ‘Contacts’ and ‘Bookmarks’ icons to represent ‘Authors’ and ‘Books’. I don’t really have complaints about this - Apple’s been fairly (though not entirely) consistent about enforcing the use of standard icons for their narrowly defined purposes, and I really should have known better. I resubmitted with new icons - the ones now on display in the tab bar in the videos at eucalyptusapp.com, and expected smooth sailing.

A week later, on the 10th of May, I got this email:

Dear James, Thank you for submitting Eucalyptus — classic books, to go. to the App Store. We’ve reviewed Eucalyptus — classic books, to go. and determined that we cannot post this version of your iPhone application to the App Store because it contains inappropriate sexual content and is in violation of Section 3.3.12 from the iPhone SDK Agreement which states: “Applications must not contain any obscene, pornographic, offensive or defamatory content or materials of any kind (text, graphics, images, photographs, etc.), or other content or materials that in Apple’s reasonable judgement may be found objectionable by iPhone or iPod touch users.” Please view the attached screenshot for further information. If you believe that you can make the necessary changes so that Eucalyptus — classic books, to go. does not violate the iPhone SDK Agreement, we encourage you to do so and resubmit it for review.

It was accompanied by this image:

Search showing result for Kama Sutra of Vatsyayana

I immediately replied:

Hello, I received the email quoted below today. Eucalyptus does not, as you say it does, “contain any obscene, pornographic, offensive or defamatory content or materials of any kind”, it simply provides an interface for searching an internet archive of classic books. The screenshot in question was taken after manually searching specifically for the phrase in the screenshot. The ‘content’ is not not ‘included’ in the application, or specifically controlled by me. The same content could be found by searching at http://gutenberg.org/ with Safari, or by searching with the Google application, also available on the store. I would appreciate a reply to this email, I trust that this is an error made in good faith. Thanks, James Montgomerie

I also re-submitted Eucalyptus to Apple, on the advice of another developer who had previously been advised by Apple to resubmit an app when it was erroneously rejected because after a binary is in the ‘rejected’ state it ‘cannot’ be accepted. If this was the case, it seemed wiser to do it sooner rather than later if a place in the queue was at stake.

I received no reply at all to my email, so on the 13th of May (three business days later), I sent another email:

I have received no reply to the email quoted below, or confirmation of reception. Could you please confirm that you have received this?

The next day (14th of May), I received this - to me it looks like an automated email, but I guess it could have been sent by a human:

Your application, Eucalyptus — classic books, to go, is requiring unexpected additional time for review. We apologize for the delay, and will update you with further status as soon as we are able. Thank you for your patience.

On the 18th of May, I sent:

Hello, Can you supply any more details on this delay? Is there anything further you need from me, or questions I could answer? Thanks, James Montgomerie.

Again, no response.

Yesterday (20th May), I received this:

We’ve received your application inquiry. Each app submitted to Apple has different capabilities, features, and complexity, which means that individual review times vary. Once the application review process has been completed, you will receive an email notification. Note: If you self-reject a binary and upload a new one, the application review process is reset and starts from the beginning. Therefore, we strongly recommend that any quality assurance testing is performed prior to submitting the app. While we cannot respond to every app submission inquiry, if we encounter any issues or need additional information you will be contacted. If you wish to check the status of your application, you can do so by visiting iTunes Connect .

This was shortly followed by another email (note that there is still no reference to the points I brought up in my original reply):

Dear Mr. Montgomerie, Thank you for submitting Eucalyptus — classic books, to go to the App Store. We’ve reviewed Eucalyptus — classic books, to go and determined that we cannot post this version of your iPhone application to the App Store at this time because it contains explicit content which is in violation of Section 3.3.12 from the iPhone SDK Agreement which states: “Applications must not contain any obscene, pornographic, offensive or defamatory content or materials of any kind (text, graphics, images, photographs, etc.), or other content or materials that in Apple’s reasonable judgement may be found objectionable by iPhone or iPod touch users.” Please view the attached screenshots for examples in regards to the objectionable content. Parental Controls have been announced for iPhone OS 3.0. It would be appropriate to resubmit your application for review once this feature is available.

The screenshots attached were:

Page from Kama Sutra of Vatsyayana Page from Kama Sutra of Vatsyayana

I quickly replied with:

Might you reconsider this decision? I appreciate the meaning behind this. The very same text, however, is accessible via Safari (at www.gutenberg.org, the scholarly archive that Eucalyptus directly downloads its books from), for example. The same book is also available in other existing iPhone applications - ‘Stanza’ provides access to multiple versions, some with illustrations. In either of these examples, the content is no harder to find than it is with Eucalyptus - it requires a specific manual search. Thanks - hope to hear back soon, James Montgomerie.

And have not received a reply.

What I’m doing now

I’m afraid I’ve currently decided to sell my soul, or at least rent it out for a while, and manually block the Kama Sutra from appearing in Eucalyptus. It may become accessible again in a later version of Eucalyptus when Parental Controls become available. If someone at Apple would like to contact me to let me know that this is unnecessary, and that Eucalyptus will now be treated the same way as other iPhone apps, I would be very happy to hear from them.

What can you do? I suspect not much. At the risk of introducing crass commercially into an otherwise honorable blog post, you could perhaps go to eucalyptusapp.com and sign up to be notified by email when Eucalyptus is released (with or without access to ‘objectionable’ texts) - or follow @eucalyptusapp on Twitter for updates - and buy it when it’s available. You will, of course, be supporting the very company whose actions (and inactions) inspired this blog post by doing so, but you’ll also be supporting me, and Project Gutenberg (20% of the gross profits from Eucalyptus go them, as their license dictates).

Thanks for reading. It feels good to get this off my chest after keeping quiet for so long.

Update

I’ve now received another email from Apple (an hour and a half after posting the entry above). I’m not sure whether it’s more polite to post it here or not, so I’ve erred on the side of being transparent. I hope this doesn’t turn into a soap opera of updates.

Dear Mr. Montgomerie, Thank you for submitting Eucalyptus — classic books, to go to the App Store. Your iPhone application to the App Store at this time because it contains explicit content which is in violation of Section 3.3.12 from the iPhone SDK Agreement. It would be appropriate to remove this particular section in your application due to: “Applications must not contain any obscene, pornographic, offensive or defamatory content or materials of any kind (text, graphics, images, photographs, etc.), or other content or materials that in Apple’s reasonable judgement may be found objectionable by iPhone or iPod touch users.”

I have replied:

I am unsure what you mean by “remove this particular section”. Eucalyptus provides a search-and-download interface to a public archive of texts curated by Project Gutenberg (http://www.gutenberg.org). The books are not split into ‘sections’, and not controlled by me. Even though it has meant creating a specific filter on search results, I have now submitted a new version that specifically blocks access to the Kama Sutra book you identified. Is this what you mean? James.
Read more…

Eucalyptus


If you’ve missed my frantic Twitter announcements, check out eucalyptusapp.com to see what I’ve been up to.  I hope you like it.

That’s all for now.  More from behind-the-scenes of Eucalyptus to come here in the future

Read more…

Awareness lag


“150-300 ms - Occupant becomes aware of collision.”

Catching up on my RSS reading, my eyes were drawn to this article, from the excellent “Mind Hacks” blog (which you really should subscribe to if your feed selection could do with some broadening). The drive of the article is just how slow a human is to react to a fast-changing situation - that a person in a car crash is not actually aware of it until after it’s ‘complete’. Their timeline of a crash, however, also gives an amazing insight into just how much self-analysis a modern car is doing at any moment, and how much computing goes in to what happens - what a car physically does - to keep us safe in a crash.

Read more…

The application will not be verified, part II


“The Application “Application Name” was not installed on the iPhone “iPhone Name” because it could not be verified.”

I seem to have the worst luck with creating ad-hoc-provisioned iPhone apps. Fresh from discovering this when trying to release the last beta version of my app, I was hit with another problem with the same outward symptoms this time. Here it is, for web-posterity too, in the hope that it may save others from the hours of frustration and completely unnecessary futzing with certificates, keys, and the iPhone Program Portal site:

Don’t have files with colon characters (‘:’, displayed as ‘/’ in the Finder) in their names in your app’s resources. It’ll work just fine for Xcode-controlled developer builds, and in your beta builds the app will build just fine, and the codesign tool will report no problems with it. After loading it into iTunes, however, it’ll refuse to sync it to the phone, reporting the error message alluded to above. This has been reported to Apple (rdar://6567158).

Read more…

Both sides of everything


Calvin.jpg

I think the sentiment expressed in this strip is the single main sapper of my productivity when coding. Whenever I approach something that I haven’t yet nailed down the implementation details of, I become almost paralysed, trapped in a negotiation with myself on what the “easiest”, “best”, “cleanest” way to do it would be. There should be a term for it. “Implementation Anxiety”?

[With thanks to Sanjay Samani for the Calvin and Hobbes snap]

Read more…

Unpublished is unpublic


John Gruber’s latest post, “Private”, calls Erica Sadun to task for her invention of a distinction between “private APIs” and “unpublished API’s”.  I completely agree.  The distinction is nonsensical.

On technical grounds, of course, it’s a valid distinction, if not a valid characterisation.  Her “unpublished” APIs are APIs that are available in public frameworks, but not documented in the headers.  Her “private” APIs are APIs in private frameworks (i.e. those with no headers, installed in the “PrivateFrameworks” directory, as opposed to the “Frameworks” directory).

There’s also a distinction from a programmer-level point of view.  It’s much easier to use a private API from a public framework; just call it in the normal fashion after declaring it in a ‘fake’ header, or more safely, check its existence then call it (and if it’s not there,  fail gracefully).  For an API in a private framework it’s more complex; you need to link to the private framework, which will cause a crash if Apple removes it (although you could provide more safety by loading the framework dynamically in you code, then checking the APIs as you would unpublished APIs in a public framework - I believe that the iPhone security model might prevent this though?).

On more abstract grounds though, those that Gruber classifies as “social”, the distinction makes no sense.  For one, I can absolutely guarantee that the API implementers are making no distinction: if it’s not documented in a header, it’s private, and subject to change.  In fact, if you’re going to insist on making a distinction, you could even argue that the private APIs in public frameworks are the “more private” ones: for every private API in a public framework, an engineer has made the conscious decision that it should not be public.  In a private framework, even the primary APIs - the main ones used to interact with the framework (by Apple, in its own apps) - are private.  Of course, that distinction is nonsensical too, but I think it’s just as valid.

If you really understand what you’re doing, and you understand how Obj-C works,  there’s a case that you can safely use private APIs in some limited circumstances if your main functionality doesn’t depend on it, and you fail gracefully if they’re not there.  That doesn’t mean that they’re not private though.

In the end, if you don’t want your app to break, don’t depend on APIs that are not declared in the headers.  They’re all private APIs.

Read more…

The application will not be verified


“The Application “Application Name” was not installed on the iPhone “iPhone Name” because it could not be verified.”

For web-posterity, a small thing I discovered: If your iPhone app beta testers are getting this error (probably along with an “ApplicationVerificationFailed” message from iTunes in the console), it’s possibly because you used command-line ‘zip’ to compress your app file, and it clobbered the symlinks within it, rendering the signature invalid.

If want to use command line zip to compress signed iPhone apps, you need to use the -y flag to get it to preserve symlinks.

Read more…

Easy iPhone application versioning with agvtool


In which a semi-automated system for the versioning of iPhone applications is detailed. Said system ensures that the reader’s apps are always correctly versioned, and his users’ iTunes applications are never confused by an update of his beta builds.

Versioning your iPhone applications properly ensures that your app updates go smoothly, and also that when you make a beta build testers never get into the frustrating state where iTunes refuses to accept it because of versioning conflicts, leaving them to have to delete the older version, and its settings and documents along with it.

The system presented here is largely inspired by Chris Hanson’s “Xcode: Build numbers and versioning with agvtool”. I’m always referring to it when I’m creating new projects, and I thought that people might appreciate a more visual rendition, tailored to iPhone development.

First, some definitions. In this article, I’ll draw a distinction between build number and version number. A version number is the user-readable version string that the users of your app see - “0.4”, “1.1”, “2.5” etc. A build number is just a monotonically increasing integer. You’ll increase it by one when you roll a ‘real’ build that you want to test, and there may be multiple build numbers used between user-visible versions. For example, if you’ve finished version 1.0, and are working on 1.1, you may have intermediate betas that you term “1.1 build 121”, “1.1 build 122” etc. It’s the use of this build number that ensures that iTunes, for example, knows that this “Bodacious Application v1.1” is really a newer version than this other “Bodacious Application v1.1”.

Remember that there is no relationship between the build number and the version number other than that they both increase over time. You can choose when to change both numbers. You’ll probably only want to change the version number before a ‘real’ release, or perhaps major beta. Some people increment the build number on every Xcode build, but, personally, I find this a bit extreme. If you’re in a corporate environment, increasing it before every build-system build is a popular option. In my one-person-team world, I just increase the build number whenever I’m handing a copy of the app to someone else. Increasing it before every checkin to your version control system is another idea. If you’re so inclined, you can also tag the intermediate builds in whatever version control system you’re using with their build numbers, so that you can easily check out the code for any build a bug is found in.

agvtool is Apple’s command-line tool that makes using build and version numbers like this easy. After you’ve got it set up, you can just cd to your top-level project folder and type “agvtool bump -all” to increase the build number, and “agvtool new-marketing-version <new version here>” to update the user-visible version number (e.g. “agvtool new-marketing-version 1.2” to set it to 1.2). agvtool will update all the places in your project that the version numbers are stored, leaving you confident that your beta updates or app store submissions will go smoothly.

Sounds pretty great, eh? It is, once you’ve got it working, but unfortunately Xcode projects are not set up to use the system by default. It’s pretty easy to get it going though.

The first thing you’ll need to do is set up initial values for the versions. Open up your Info.plist file. The “Bundle version” row’s value should be set to your initial build number (this is the monotonically increasing integer, remember). You will need to add a “Bundle version string, short” row. Its value should be the user-visible version number - this is the one that appears as your app’s version in iTunes. If you’re interested, the ‘raw’ keys for these are “CFBundleVersion” and “CFBundleShortVersionString” (you can see the raw keys by Ctrl-clicking and choosing “Show Raw Keys/Values”). After you’ve set these, close the Info.plist window. This is the only time you’ll need to edit these strings by hand, agvtool will take care of it from now on.

Next, you need to tell Xcode you’ll be using agvtool. Open up your project, and double-click on the top-level project icon in the source list. Make sure that “All Configurations” is selected in the “Configuration” drop-down, and find the “Versioning” section. In the row that reads “Versioning System”, edit the value to read “apple-generic”. You’ll also need to edit the “Current Project Version” value. This is another copy of the build number, so set it to the same value you set as your “Bundle Version” in the Info.plist file. agvtool will make sure that this number, and the number in the Info.plist stay in-sync from now on with no manual intervention.

And that’s it! Close the project info window, and you’re set up. To test it out, open a Terminal window, cd to your project directory, and type “agvtool what-version”. You should get your build number back. Typing “agvtool what-marketing-version” should give you, after with some information about looking for it in some archaic places, the user-visible version number.

To increase the build-number (like I mentioned above, at the time of your choosing, for example, just before a checkin, or when you distribute a build to colleagues - you could even set up your automated build system to do this before building, then check in the changes it made to your version control system - although there’s a potential race condition there), just type “agvtool bump -all”.

To change the user-visible version number (again, whenever you choose, for example, before an app store submission, or a widely-distributed beta build), just type “agvtool new-marketing-version <new version here>”.

There’s more to agvtool and Xcode integration than this. If you’re interested, Chris Hanson’s aforementioned “Xcode: Build numbers and versioning with agvtool” is the place to start looking for more. What’s covered above is, however, all you need to know to use agvtool effectively with iPhone apps. I find it extremely useful, and also reassuring - I’m never wondering any more if I’ve remembered to keep all my version information in sync.

Read more…