Sparrow Framework AppScaffold Not Archiving Correctly - Fix

UPDATED: The pull request was merged, so this should be all fixed.

If you’ve tried to create an app using the latest Sparrow Framework and XCode 4, then tried to Archive it (say for distributing via the excellent TestFlightApp service), you may have run into an error similar to the following:

AppScaffold Cannot be Validated “AppScaffold” does not contain a single–bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single–bundle application.

Don’t panic! This solution is simple:

  1. In XCode, select the linked Sparrow project.
  2. In the editor, select the Sparrow target.
  3. Now select the “Build Phases” tab.
  4. Expand the “Copy Headers” section. It should look a little like this:

  5. Now select all the header files in the “Public” section and drag them to “Project”. You should end up with the section looking like this:

That should be all you need to do. Now if you Archive the app, you should be able to successfully Share/Validate it from the Archive Organizer, and your icons and version numbers should look as delicious as you expected.

I’ve submitted a pull request, so assuming I haven’t done anything too insane in it, these changes should make it into the main project at some point.