Debian Codegraph @

docs/en/how-to/publishing/macOS.md

raw
1 # macOS
2
3 This guide will walk you through the process of publishing a macOS app to the Apple App Store.
4
5 /// note | Note
6
7 The Apple App Store makes frequent changes to the workflows and nomenclature associated with publishing apps. As a result, it's very difficult to keep a guide like this one up to date. If you spot any problems, [let us know](https://github.com/beeware/briefcase/issues/new?assignees=&labels=bug,documentation,apple&projects=&template=bug_report.yml).
8
9 ///
10
11 To distribute an app on the macOS App Store, you'll need to [enroll in the Apple Developer Program][apple-dev-enroll]. You don't need to generate any of the certificates described on that page - you just need an Apple ID registered in the developer program.
12
13 Once you've signed up for an Apple ID account, open the Xcode Settings dialog, and add your account under the "Accounts" tab.
14
15 Apps are submitted to the macOS App Store using Xcode. This requires that you use Briefcase's [macOS Xcode project packaging format][macos-xcode-project] to build your app. To specify this format, add `macOS Xcode` to any Briefcase app command you want to invoke - for example:
16
17 ```console
18 (venv) $ briefcase create macOS Xcode
19 (venv) $ briefcase run macOS Xcode
20 ```
21
22 ## Open the app in Xcode
23
24 To submit your app to the App Store, use Briefcase to open the Xcode project associated with your project.
25
26 ```console
27 (venv) $ briefcase open macOS Xcode
28 ```
29
30 ## Run the app via Xcode
31
32 Run the app in Xcode to ensure it builds correctly and works as expected.
33
34 In order to submit your app to the App Store, you will need to provide at least one screenshot, in one of the following sizes:
35
36 - 1280 x 800
37 - 1440 x 900
38 - 2560 x 1600
39 - 2880 x 1800
40
41 To capture a screenshot of a specific application window on macOS, use the key combination Shift-Command-4, then press the Space bar. The cursor will change to a camera icon. Hover over the desired window and click to capture it as an image.
42
43 ## Produce an App archive
44
45 Select the root node of the Xcode project browser (it should be the formal name of your app), then select the **Signing & Capabilities** tab from configuration options that are displayed. The "Team" option under "Signing" will be listed as "None"; select the name of the development team that will sign the app. If there's no team listed, select "Add an Account", and choose one of the teams that is associated with your Apple ID.
46
47 In the top bar of the Xcode window, build an archive by selecting "Archive" from the Product menu.
48
49 This will perform a clean build of your application, build an archive, and open a new window, called the Organizer. It should list a freshly created archive of your app, with the current version number.
50
51 Select the archive, and click the "Distribute App" on the right side of the Organizer window. This will display a wizard that will ask details about your app; accept the default values; once the wizard completes, your app binary has been sent to the App Store for inclusion in a release.
52
53 After a few minutes, you should receive an email notifying you that the binary has been processed.
54
55 ## Create an App Store entry
56
57 Log into [App Store Connect](https://appstoreconnect.apple.com), click on "My Apps", then on + to add an app.
58
59 Fill out the form for a new app. If you've run the app in Xcode, the Bundle ID for your app should be listed; select it from the list. You must also create an SKU for your app - we suggest `macos-<appname>`, substituting the short app name that you selected when you initially created your app. For example, if you've created an app with a formal name of "Hello World", with an app name of `helloworld`, and a bundle of `org.beeware`, you should have a Bundle ID of `org.beeware.helloworld`; we'd suggest an SKU of `macos-helloworld`.
60
61 You'll then be shown another page for app details, including:
62
63 - Primary and Secondary Category
64 - Screenshots
65 - Promotional Text
66 - Description
67 - Keywords
68 - Support URL
69 - Marketing URL
70 - A URL for your app's privacy policy
71 - Version number
72 - The name of the copyright holder
73
74 Under the "Build" section, you'll be able to select the archive that you uploaded through Xcode.
75
76 The "App Review Information" section allows you to provide contact details in case Apple has questions during the review process. If your app requires a login, you *must* provide a set of credentials so that Apple can log in. You can also provide any additional notes to assist the reviewer.
77
78 Click on "Pricing and Availability" tab on the sidebar, and set up the pricing schedule and availability for your app.
79
80 Then, click on "App Privacy", and click on "Get Started"; this will ask you a series of questions about the information about users that your app collects.
81
82 Once these details have all been provided, click on the "1.0 Prepare for Submission" link in the sidebar. On the right of the screen, click on "Add for Review"; this will ask some final questions, and provide one more button "Submit for Review". Click that button, and you're done!