Detects missing or insufficient in-app account deletion functionality required since June 30, 2022 under Guideline 5.1.1(v) for all apps that support account creation.
中文简介正在准备中。当前显示原文说明。
Detects over-broad permission requests where a narrower permission or privacy-preserving alternative API is sufficient, violating Guideline 5.1.1(iii) data minimization requirements.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Detects over-broad permission requests where a narrower permission or privacy-preserving alternative API is sufficient, violating Guideline 5.1.1(iii) data minimization requirements.
references/guidelines/5-legal.mdInvoke on any iOS/macOS project to detect permission scope mismatches and suggest privacy-preserving alternative APIs.
| Name | Type | Default | Description |
|---|---|---|---|
project_root | path | cwd | iOS/macOS project root |
shared_context | object | nil | Pre-collected context from appstore-full-audit Phase 1 |
Skip this phase if shared_context is provided.
Glob **/*.swift — collect all Swift source files.Glob **/*.m — collect Objective-C source files.Glob **/Info.plist — locate Info.plist.Glob **/*.entitlements — locate entitlement files (check background location entitlement).Always location permission scope
Grep pattern requestAlwaysAuthorization in **/*.swift and **/*.m.
If found, Read surrounding context and check for navigation, fitness, delivery, or background tracking use case. If app category does not clearly require background location (e.g., simple map display, location tagging for posts), flag → 🟠 HIGH. Also Grep com.apple.location.always in **/*.entitlements — if entitlement absent but requestAlwaysAuthorization called → 🟠 HIGH.
Full photo library access when only selection needed
Grep pattern PHPhotoLibrary.*requestAuthorization.*readWrite in **/*.swift.
If found without accompanying PHPickerViewController usage (Grep PHPickerViewController in **/*.swift), flag → 🟠 HIGH. PHPickerViewController provides privacy-preserving photo selection without requiring full library authorization.
Full contacts access when only picker needed
Grep pattern CNContactStore.*requestAccess|requestAccess.*forEntityType.*contacts in **/*.swift and **/*.m.
If found, Read surrounding context. If app only needs to select an email or phone number (not programmatic contact access), suggest CNContactPickerViewController which requires no permission → 🟠 HIGH.
Collect all findings from Phase 2 and build the prioritised findings list below. Include file paths and line numbers. Omit tiers with no findings.
## Permission Scope Audit — Findings
### 🔴 CRITICAL — Guaranteed rejection
- [ ] TODO: <exact actionable step> — `file:line` — Guideline 5.1.1(iii)
### 🟠 HIGH — Very likely rejection
- [ ] TODO: Replace requestAlwaysAuthorization with requestWhenInUseAuthorization — background location is not justified for this app's stated purpose — `LocationManager.swift:34` — Guideline 5.1.1(iii)
- [ ] TODO: Replace PHPhotoLibrary.requestAuthorization(.readWrite) with PHPickerViewController — no full library access needed for profile photo selection — `ProfileViewController.swift:67` — Guideline 5.1.1(iii)
- [ ] TODO: Replace CNContactStore.requestAccess with CNContactPickerViewController — system contact picker requires no permission and is privacy-preserving — `ContactsManager.swift:21` — Guideline 5.1.1(iii)
### 🟡 MEDIUM — Possible rejection
- [ ] TODO: Verify Always location entitlement is present in .entitlements file if requestAlwaysAuthorization is intentionally used
### 🟢 LOW — Best practice
- [ ] TODO: Audit all permission requests against Apple's privacy-preserving API alternatives (PHPickerViewController, CNContactPickerViewController, CLLocationButton)
Glob, Grep, Read
shared_context is provided by orchestrating agent.Run these in your project root to check manually:
# Check for Always location (high scrutiny permission)
!grep -rn "requestAlwaysAuthorization" . --include="*.swift"
# Check for full photo library access vs picker
!grep -rn "PHPhotoLibrary.requestAuthorization\|PHPickerViewController" . --include="*.swift"
# Check for full contacts access vs picker
!grep -rn "CNContactStore\|CNContactPickerViewController" . --include="*.swift"
examples/swift/PermissionPatterns.swift
Find target files
**/*.swift, **/*.m, **/Info.plistSearch for rejection patterns
requestAlwaysAuthorization — always-on location (highest scope)requestWhenInUseAuthorization — when-in-use location (acceptable default)CNContactStore.*requestAccess + absence of CNContactPickerViewController — full contacts vs pickerPHPhotoLibrary.requestAuthorization + absence of PHPickerViewController — full library vs pickerInfo.plist → check if both NSLocationWhenInUseUsageDescription and NSLocationAlwaysUsageDescription presentDetermine verdict
requestAlwaysAuthorization for non-navigation/fitness app → 🟠 HIGH (Guideline 5.1.1(iii))CNContactStore access when picker would suffice → 🟠 HIGHPHPickerViewController would suffice → 🟠 HIGHReport
requestWhenInUseAuthorization unless navigation tracking is core; use CNContactPickerViewController and PHPickerViewController instead of direct library access还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Detects missing or insufficient in-app account deletion functionality required since June 30, 2022 under Guideline 5.1.1(v) for all apps that support account creation.
中文简介正在准备中。当前显示原文说明。
Detects feature patterns that require a higher age rating than commonly submitted, enforcing Guideline 2.3.6 which requires age ratings to accurately reflect the app's content and social features.
中文简介正在准备中。当前显示原文说明。
Detects apps that send user data to third-party AI systems without explicit in-app consent and disclosure, enforcing Guideline 5.1.2(i).
中文简介正在准备中。当前显示原文说明。
Detects placeholder content, stub UI, hardcoded test credentials, and non-production endpoints that signal an incomplete app to reviewers under Guideline 2.1.
中文简介正在准备中。当前显示原文说明。
Detects app name violations including names exceeding 30 characters, beta labels, Apple trademark terms, and version numbers in the display name, enforcing Guideline 2.3.7.
中文简介正在准备中。当前显示原文说明。
App Store rejection prevention for iOS/macOS apps. Covers privacy, UGC, IAP, metadata, layout, and quality checks based on real Apple rejection cases.
中文简介正在准备中。当前显示原文说明。