Packaging Your Extension Inside a Host App
Unlike Chrome extensions or Firefox add-ons, Safari does not accept standalone ZIP packages in a browser web store. According to Apple's distribution docs, Safari distributes web extensions inside a native macOS, iOS, visionOS, or Mac Catalyst containing app.
For quick local testing on macOS without an Xcode project, Apple's Safari testing docs let you open Safari > Settings > Developer and choose Add Temporary Extension. Safari removes temporary extensions after 24 hours or on quit. You can also test iOS extensions in Xcode simulators before enrolling, while physical iOS device testing and App Store publishing require the Apple Developer Program at $99 USD per membership year (regional prices vary).
When you are ready to package the host app, Apple provides two official routes:
- Xcode CLI packager (Mac required): run
xcrun safari-web-extension-packager /path/to/extensionin Terminal. As Apple's packaging docs explain, this command used to be namedsafari-web-extension-converter. It generates a Swift or Objective-C Xcode project with macOS and iOS targets, wires in your extension files by reference (add--copy-resourcesto copy them instead), and prints unsupported manifest warnings. Use--rebuild-project /path/to/MyExtension.xcodeprojto add iOS targets to an older macOS project. - Web-based packager in App Store Connect (no Mac needed): Apple's App Store Connect Safari Web Extension Packager lets you create an app record for macOS, iOS (which runs on iOS, iPadOS, and visionOS), or both, then upload your extension files under Users and Access > Xcode Cloud > Safari Web Extension Packager. Build compute draws from the 25 hours per month of Xcode Cloud included in your developer membership.
Use the web packager if you need zero custom Swift code. Choose the local Xcode project whenever you plan to add StoreKit billing, native settings screens, or shared App Group storage inside the host app.
Manifest V3 Differences and Safari's Permission Model
According to Apple's compatibility documentation, Safari 15.4 and later supports Manifest V2 and V3, both chrome.* and browser.* namespaces, and callbacks or Promises. Safari ignores unsupported manifest keys and file:// URL schemes, and it does not support blocking webRequest listeners (BlockingResponse or opt_extraInfoSpec); use declarative content blocking rules for request filtering instead.
Background execution and mobile ergonomics need explicit attention. As Apple's Safari optimization guide explains, iOS requires nonpersistent background pages, and Manifest V3 requires a service_worker or "persistent": false. Register listeners at the top level, store state in the Storage API, and replace setTimeout with Alarms. On iOS, use pointer events instead of mouse-only hover states, support responsive popup sizes and Dynamic Type, feature-detect iOS-omitted APIs, add color-scheme: light dark; for Dark Mode, and declare browser_specific_settings.safari.strict_min_version if needed.
Safari's runtime consent flow is much stricter than Chrome's. Under Apple's permission docs:
- Split host patterns in MV3: put API permissions like
activeTabandstorageinpermissions, and place URL match patterns inhost_permissions. - Minimize scope: prefer
activeTab, specific domains, andoptional_permissions; avoid<all_urls>unless essential. - Handle per-website consent gracefully: enabling an extension does not automatically grant page access. On unapproved domains, Safari badges the toolbar icon. On macOS, clicking it lets users allow access once, for the day, or for all websites, or deny it; on iOS, users manage access from Safari's More menu or Settings > Safari > Extensions. In Safari 17+, site approval applies across profiles and private browsing.
Build a clear prompt inside your popup whenever site permission is not yet granted so users never think the extension is broken.
App Store Connect Submission and Review Rules
Before submitting to App Review, test signed builds via TestFlight on iOS, iPadOS, visionOS, or macOS (macOS also supports unsigned Copy App beta builds for testers who enable unsigned extensions in Safari), as covered in Apple's distribution guide. Then archive and upload through Xcode's App Store Connect method or submit your web-packaged build.
Three sections of the App Review Guidelines cause most Safari extension rejections:
- Guideline 4.4 (Extensions): the host app should provide real functionality such as help screens and settings interfaces where possible, disclose its extensions clearly in marketing text, and keep extensions free of marketing, advertising, and in-app purchases.
- Guideline 4.4.2 (Safari extensions): extensions must run on the current Safari release, never alter System or Safari UI elements, never include malicious or misleading code (which leads to developer program removal), and never request broader website access than strictly necessary.
- Guideline 4.2 (Minimum Functionality): replace the bare Xcode template screen with real onboarding: detect whether the extension is enabled, show clear Safari activation steps, and expose useful host-app preferences.
You must also complete App Privacy Details (privacy nutrition labels) in App Store Connect. Per Apple's App Privacy Details docs, disclose every data type collected by your app, extension, or third-party SDKs, even outside ads or analytics (you can update answers later without shipping a new binary). Keep your legal pages aligned using our privacy policy and terms guide and privacy policy generator, and check our iOS app and Mac app launch guides for App Store screenshots and review notes.
Monetizing With StoreKit and the Small Business Program
Unlike Chrome extensions that link directly to external web checkouts from a popup, App Store Safari extensions follow strict purchase rules:
- Keep billing in the host app with StoreKit: Guideline 4.4 bars in-app purchases inside extensions, and Guideline 3.1.1 of the App Review Guidelines mandates Apple In-App Purchase via StoreKit (with a restore purchases control) to unlock digital features or subscriptions inside App Store apps.
- Bridge entitlements across sandboxes: as Apple's native messaging docs explain, the containing app, native app extension handler, and JavaScript files run in isolated sandboxes. Enable an App Group so the host app and extension handler share StoreKit entitlement state, and add
nativeMessagingso background scripts or extension pages can query it. Content scripts cannot call native messaging directly; route checks through your background script.
When supporting macOS and iOS together, Apple suggests considering a universal purchase so customers buy once across devices. Before launching paid tiers, enroll in the App Store Small Business Program: new App Store developers and existing developers earning up to $1 million USD in prior-calendar-year proceeds qualify for a 15% commission on paid apps and Apple In-App Purchases (if you surpass $1 million USD mid-year, the standard rate applies afterward).
On macOS only, you can also sign and notarize the containing app with a Developer ID and sell it outside the Mac App Store, trading away Mac App Store discovery and iOS reach for direct billing flexibility.
Reaching Safari Users After Approval
App Store approval alone rarely creates early momentum for a niche extension. Pair your listing with a clear landing page built for Apple users: explain upfront that installing the macOS or iOS app is step one and enabling it in Safari is step two, and highlight mobile Safari on iPhone and iPad where desktop Chrome extensions cannot run.
Announce Safari availability to existing Chrome and Firefox users in your changelog, email updates, and site navigation, since many people mix Chrome at work with Safari on personal Apple hardware. Work through our launch checklist before launch day so screenshots, support links, and privacy pages are verified.
Once live, share your extension where indie software buyers browse. You can submit your launch on Hauntboard for free (a person reviews free launches in about 72 hours, with 20 free places a week, or within 24 hours via Launch Now at $19) to get a permanent launch page with public visit counts back to your site.
Frequently Asked Questions
Do I need a Mac and Xcode to publish a Safari Web Extension?
Not for pure JavaScript, HTML, and CSS extensions. App Store Connect's browser-based Safari Web Extension Packager builds macOS and iOS host apps using your included Xcode Cloud hours. You need a Mac with Xcode only when adding custom Swift code, native screens, or StoreKit purchases.
Can I put an upgrade checkout inside my Safari extension popup?
No for App Store distributions. Guideline 4.4 forbids marketing, ads, and in-app purchases inside extensions, and Guideline 3.1.1 requires Apple In-App Purchase for digital unlocks. Run StoreKit purchases in the host app and pass entitlement status via App Groups and native messaging.
Why does Safari prompt for site permission after users enable the extension?
Safari separates enabling an extension from granting website access. On unapproved sites, Safari badges the extension button until the user allows access once, for the day, or for all websites. Narrow host_permissions and activeTab reduce friction and align with Guideline 4.4.2.
Can I distribute a Safari Web Extension outside the App Store?
On macOS, yes: sign the containing app with a Developer ID certificate, notarize it with Apple, and distribute it directly. On iOS, iPadOS, and visionOS, public Safari Web Extensions ship through the App Store.