Rejected: a Mac App Store review from start to resubmission
My first App Store submission bounced on two guidelines, and both failures were really about not telling the reviewer the truth clearly.
The email arrived the way these emails do: a calm subject line, a reference to a submission ID, and the word "rejected" a little further down than I would have liked. I read it standing up. Then I sat down and read it again, because the two reasons were so specific, and so plainly my fault, that I assumed I had misread them.
I hadn't. Peel's sandboxed Mac App Store edition, version 1.2.0 with the Peel Pro in-app purchase, had been turned away on two guidelines. One was 2.1(a), Information Needed. The other was Guideline 4, Design. Neither had anything to do with whether the app could open an archive. The app opened archives fine. That was never the problem.
The riddle
Peel has a recovery feature for archives you've locked yourself out of. To let a reviewer try it, I'd prepared a password-protected sample ZIP and written steps for it in the review notes. And because I thought I was being charming, I described the password instead of stating it. Orange, plus a year between 2010 and 2016.
It was meant to mirror how the feature works. Recovery asks what you remember about a forgotten password (a word, a range of years) and tries combinations. So the demo's password was, in a sense, a demo of the feature. That is a nice idea for a blog post. It is a terrible instruction for someone who has a queue of apps to get through and a sample file that will not open.
The reviewer's message said the password to the sample was incorrect. From their side that is exactly right: whatever they tried did not open it, and they wrote down what happened. I had made a puzzle and handed it to a person whose job is not to solve puzzles.
There was a second, quieter problem under the first. The sample had a second weakness: it lived in my repository and in prose, and a reviewer cannot be expected to reconstruct a file or go looking for one.
The fix was dull, which is how I knew it was right. Every step in the notes now states the literal password, orange2014, and says it again in plain words: the word "orange" followed by the year 2014. Both the basics walkthrough and the recovery walkthrough now point at a sample ZIP hosted persistently on the site, so there is one URL, and it keeps working. I even went back and checked that the hosted file was byte-for-byte the one in the repo and that it still opened with that password, because after this episode I was not inclined to take my own word for anything.
The riddle survives in exactly one place, where it belongs: step five of the recovery walkthrough, where the reviewer types "orange" and a year range into the feature that is built to guess it. Right after, the notes say what the result should be. A riddle is fine when the app is the one solving it.
The window that wasn't there
The second rejection was more embarrassing, because it was a real bug, and I'd have found it quickly if I had closed the window and tried to get it back.
Peel is a SwiftUI app. Close its main window and the app keeps running, as Mac apps do, but then there is nothing on screen and no menu item that brings the window back. Guideline 4 (Design) expects a Mac app to give you a way to reopen its main window. Mine had a menu item that looked like it did exactly that. It was labelled Peel Window. It did nothing useful.
The reason is the kind of thing that is obvious only afterwards. The menu item called a function whose job was to bring the main window to the front. That works if the window still exists, for example if it is merely hidden behind other windows. But a window created by a SwiftUI WindowGroup is gone when you close it. There is no object left to front. My function dutifully looked for a window, found none, and returned, which is a perfectly correct thing for it to do and a perfectly useless thing for the user.
With the window open, the menu item looks fine, because there is a window to bring forward. The one situation it exists for is the one where it falls over.
The fix has two small parts. First, give the window group a stable id, so there is a name to ask for. Second, have the menu item check whether a window exists and, if none does, recreate it with SwiftUI's openWindow action. In sketch form:
WindowGroup(id: "main") {
ContentView()
}
// in the menu command
Button("Peel Window") {
if let window = existingMainWindow() {
window.makeKeyAndOrderFront(nil)
} else {
openWindow(id: "main")
}
}
The details in the real code are a little different, but the idea is that. Front it if it is there, make a new one if it is not. The old behaviour was half of that sentence.
Getting from "fixed" to "resubmitted"
Two fixes in hand, I assumed the rest would be paperwork. It turned out to be a small series of chores, each reasonable on its own.
I built a new version with the fix, 1.4.0, build 18, and bumped the App Store version record to match it. App Store Connect wants the record and the build to agree, and the first time you notice a mismatch is usually when something refuses to proceed.
I re-did the listing screenshots too. That wasn't required by the rejection, but I had been looking at them for a while with a growing sense that they were too orange. I moved them to the site's cream palette, with dark text and a white window, keeping orange as an accent. It is a small thing, but if you are going to resubmit anyway, you may as well resubmit with a listing you like.
Then came the indignity. The web page has a button labelled something like Resubmit to App Review. It sat there, disabled. The fixes were in, the new build was up and the version record matched, and the button stayed grey. I could not find a reason for it on the page.
I did what a person with an API key and a fading sense of patience does. I drove the resubmission through the App Store Connect API instead. It worked, and the status moved to Waiting for Review.
I want to be careful here not to turn a quirk into a complaint. I don't know why the button was disabled, and I am not going to guess in public. It might have been a state the page hadn't caught up with, or something about my record I'd missed. What I know is that the same action succeeded through the API, and that the web UI was not the only way to get there. That is a useful thing to know, and a mildly alarming thing to need.
What the review was actually about
Looking back, both rejections have the same shape, and it isn't "Apple is picky."
The password rejection was a failure to say a true thing plainly. The reviewer asked for one fact, the password, and I gave them a puzzle that I considered cute. The sample was the same: I'd assumed that because I knew where the file was, the reviewer would too.
The window rejection was a failure to check a promise. I had a menu item that claimed to reopen the window. The claim was true only in the case where it was not needed.
In both, the app was fine, and my account of the app was not. App Review is a person trying to confirm that what you say your app does is what it does, with the time they have, using only the instructions you gave them. If you hand them a correct password and a real way back to the window, that is nearly the entire job.
There's a larger version of this that I keep running into. There is a distance between "the app works" and "the app ships," and it is mostly made of unglamorous things: the literal password, the durable URL, the menu item tested in the state where it matters, the version number that agrees with the build. None of them are hard. All of them are easy to skip when you have spent weeks inside the code and your own head is the only documentation.
Where it stands
Peel is Waiting for Review as I write this. I do not know how it will go, and I would rather not predict it. The notes now say what they mean, the window comes back when you ask for it, and the sample opens with the password written down in plain digits.
If I take one habit from it, it is to read my review notes as the stranger who has to follow them, with no context, a deadline, and a file that must open on the first try. I wrote the riddle to be clever. The reviewer wanted a password. They were right.
Peel is free for macOS 13 or later. Get Peel, or install it with brew install --cask snackstudio/tap/peel.
Next in the series: Why Peel Pro costs US$29.99, once, instead of a subscription