fix: package DeviceActivityReport extension as ExtensionKit to pass App Store validation#21
Merged
Merged
Conversation
…pp Store validation App Store Connect validation (and Xcode Cloud, which runs the same archive → validate path) rejected the build with two cascading errors on the report extension: 1. Error 90349 — NSExtensionPointIdentifier value "com.apple.deviceactivity.report-extension" was invalid. The report extension point lives in DeviceActivityUI, so the identifier needs the "ui": "com.apple.deviceactivityui.report-extension". (The monitor extension's "com.apple.deviceactivity.monitor-extension" is correct and was unaffected; the report value had simply been pattern-matched off it and dropped the "ui".) 2. Error 91179 — once the identifier was correct, validation reported the appex was "built like an NSExtension" but its extension point requires an ExtensionKit extension: it must live in the Extensions/ directory and declare EXAppExtensionAttributes, not NSExtension in PlugIns/. Fix migrates OpenAppLockReport from a legacy PlugIns app-extension to an ExtensionKit extension: - Info.plist: NSExtension/NSExtensionPointIdentifier -> EXAppExtensionAttributes/EXExtensionPointIdentifier with the ...ui... id. - project.pbxproj: product type app-extension -> extensionkit-extension; file reference wrapper.app-extension -> wrapper.extensionkit-extension; appex moved out of "Embed Foundation Extensions" (PlugIns, dstSubfolderSpec 13) into a new "Embed ExtensionKit Extensions" phase (Extensions, dstSubfolderSpec 16, dstPath $(EXTENSIONS_FOLDER_PATH)). The @main DeviceActivityReportExtension SwiftUI entry point is unchanged and correct for both packagings; no principal class is added (the runtime rejects it for this extension point). Verified by archiving and running App Store validation in Xcode: "OpenAppLock 1.0.0 (1) validated — Your app successfully passed all validation checks." Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017CGu4VBWwg6he3zeZdLNGe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
App Store Connect validation (and Xcode Cloud, which runs the same archive → validate path) rejected the build because of the
OpenAppLockReportDeviceActivityReport extension. There were two cascading errors:NSExtensionPointIdentifierwascom.apple.deviceactivity.report-extension, which is invalid. The report extension point lives in DeviceActivityUI, so the identifier needs theui:com.apple.deviceactivityui.report-extension. (The monitor extension'scom.apple.deviceactivity.monitor-extensionis correct and unaffected — the report value had been pattern-matched off it and dropped theui.)Extensions/and declareEXAppExtensionAttributes, notNSExtensioninPlugIns/.The second error was found empirically by fixing the first and re-validating.
Fix
Migrate
OpenAppLockReportfrom a legacy PlugIns app-extension to an ExtensionKit extension:NSExtension/NSExtensionPointIdentifier→EXAppExtensionAttributes/EXExtensionPointIdentifierwith the correct…ui…identifier (plus an explanatory comment to prevent regression).com.apple.product-type.app-extension→com.apple.product-type.extensionkit-extensionwrapper.app-extension→wrapper.extensionkit-extension.appexout of "Embed Foundation Extensions" (PlugIns,dstSubfolderSpec=13) into a new "Embed ExtensionKit Extensions" phase (Extensions,dstSubfolderSpec=16,dstPath=$(EXTENSIONS_FOLDER_PATH))The
@main DeviceActivityReportExtensionSwiftUI entry point is unchanged and correct for both packagings; no principal class is added (the runtime rejects it for this extension point).Test plan
OpenAppLock(Any iOS Device, arm64) in Xcode.ValidateEmbeddedBinarywarning about the Extensions embed path — a known Xcode tooling false-positive for correctly-configured ExtensionKit extensions (its validator mishandles the symlinked build layout). Server-side validation passing confirms the embedding is correct.🤖 Generated with Claude Code
https://claude.ai/code/session_017CGu4VBWwg6he3zeZdLNGe