-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject.yml
More file actions
57 lines (57 loc) · 2.99 KB
/
Copy pathproject.yml
File metadata and controls
57 lines (57 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: WrongBook
options:
bundleIdPrefix: cyou.tianli
deploymentTarget: { iOS: "18.0", macOS: "15.0" }
createIntermediateGroups: true
settings:
base:
CODE_SIGN_STYLE: Automatic
DEVELOPMENT_TEAM: B9LJH93LA4
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
SWIFT_VERSION: "5.0"
targets:
WrongBook:
type: application
supportedDestinations: [iOS, macOS]
# Public distributions contain an empty personal library, never a user's courses.
preBuildScripts:
- script: bash "$PROJECT_DIR/sync-lessons.sh"
name: 验证公开包不含个人资料
basedOnDependencyAnalysis: false
sources:
# 总部共享:macOS 侧给 iOS-only SwiftUI 修饰符提供同名 no-op,调用点不改(multiplatform.py 注入)
- path: Shared/PlatformCompat.swift
- path: Sources
# ⚠ 图标资产必须在这儿列出来。漏了的表现是**编译通过、装机通过、桌面白板**——
# ASSETCATALOG_COMPILER_APPICON_NAME 指向一个不在工程里的 catalog,
# actool 根本没被调起,全程零报错。
- path: Resources/Assets.xcassets
# 练习页 —— folder 引用(不是 group),进包后保持 primary-*/ 子目录结构
- path: Resources/Lessons
type: folder
buildPhase: resources
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: cyou.tianli.wrongbook
# ── Mac 侧(multiplatform.py 注入):沙盒 + 加固运行时是 TestFlight for Mac 的硬门槛;
# entitlements 按 sdk 分开给,iOS 的 profile 不认 app-sandbox 这个键。
"CODE_SIGN_ENTITLEMENTS[sdk=macosx*]": Mac.entitlements
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]": YES
INFOPLIST_KEY_LSApplicationCategoryType: public.app-category.education
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
INFOPLIST_KEY_UILaunchScreen_Generation: YES
INFOPLIST_KEY_CFBundleDisplayName: 错题本
# 缺这一行的表现是**点「扫描卷子」当场闪退**,而崩溃日志只说 access violation,
# 一个字都不提「你没声明用途」。VisionKit 的文档扫描器走的就是相机权限。
INFOPLIST_KEY_NSCameraUsageDescription: 拍摄错题照片,确认后上传到你自己的学习库用于识别和复习。
INFOPLIST_KEY_NSPhotoLibraryUsageDescription: 从相册里挑已经拍好的卷子照片上传。
INFOPLIST_KEY_UISupportedInterfaceOrientations: "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"
# 出口合规:声明不使用非豁免加密 → TestFlight 每次传新包不再弹问卷,
# 直接进 Ready to Test(缺这行则每个 build 都要人去网页点一次)。
INFOPLIST_KEY_ITSAppUsesNonExemptEncryption: NO
GENERATE_INFOPLIST_FILE: YES
MARKETING_VERSION: "1.0"
CURRENT_PROJECT_VERSION: "11"
scheme:
testTargets: []
configVariants: []