Skip to content

fix: package DeviceActivityReport extension as ExtensionKit to pass App Store validation#21

Merged
brendan-ch merged 1 commit into
mainfrom
fix/report-extension-point-identifier
Jun 20, 2026
Merged

fix: package DeviceActivityReport extension as ExtensionKit to pass App Store validation#21
brendan-ch merged 1 commit into
mainfrom
fix/report-extension-point-identifier

Conversation

@brendan-ch

Copy link
Copy Markdown
Owner

Problem

App Store Connect validation (and Xcode Cloud, which runs the same archive → validate path) rejected the build because of the OpenAppLockReport DeviceActivityReport extension. There were two cascading errors:

  1. Error 90349NSExtensionPointIdentifier was com.apple.deviceactivity.report-extension, which is 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 unaffected — the report value had been pattern-matched off it and dropped the ui.)
  2. Error 91179 — once the identifier was corrected, validation reported the appex was "built like an NSExtension" but its extension point requires an ExtensionKit extension: it must live in Extensions/ and declare EXAppExtensionAttributes, not NSExtension in PlugIns/.

The second error was found empirically by fixing the first and re-validating.

Fix

Migrate OpenAppLockReport from a legacy PlugIns app-extension to an ExtensionKit extension:

  • Info.plist: NSExtension/NSExtensionPointIdentifierEXAppExtensionAttributes/EXExtensionPointIdentifier with the correct …ui… identifier (plus an explanatory comment to prevent regression).
  • project.pbxproj:
    • product type com.apple.product-type.app-extensioncom.apple.product-type.extensionkit-extension
    • file reference wrapper.app-extensionwrapper.extensionkit-extension
    • moved the .appex 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).

Test plan

  • Archived OpenAppLock (Any iOS Device, arm64) in Xcode.
  • Ran Product → Archive → Validate App against App Store Connect: "OpenAppLock 1.0.0 (1) validated — Your app successfully passed all validation checks."
  • Confirmed the prior failing identifier error (90349) and the follow-on ExtensionKit error (91179) are both gone.
  • (Informational) Local builds show a ValidateEmbeddedBinary warning 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

…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
@brendan-ch brendan-ch merged commit f4b8f06 into main Jun 20, 2026
2 of 4 checks passed
@brendan-ch brendan-ch deleted the fix/report-extension-point-identifier branch June 20, 2026 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant