-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproject.yml
More file actions
272 lines (260 loc) · 9.29 KB
/
Copy pathproject.yml
File metadata and controls
272 lines (260 loc) · 9.29 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
name: Blip
options:
bundleIdPrefix: com.blainemiller
deploymentTarget:
macOS: "14.0"
xcodeVersion: "26.0"
# In-app localization: en is the development language; translations live in
# Blip/Resources/Localizable.xcstrings.
developmentLanguage: en
settings:
base:
SWIFT_VERSION: "6.0"
ARCHS: arm64
MACOSX_DEPLOYMENT_TARGET: "14.0"
ENABLE_HARDENED_RUNTIME: YES
CODE_SIGN_IDENTITY: "-"
CODE_SIGN_STYLE: Manual
SWIFT_STRICT_CONCURRENCY: complete
SWIFT_TREAT_WARNINGS_AS_ERRORS: YES
GCC_TREAT_WARNINGS_AS_ERRORS: YES
# Emit .stringsdata for every compiled file so `xcodebuild
# -exportLocalizations` can see string literals in SwiftUI views.
SWIFT_EMIT_LOC_STRINGS: YES
packages:
# Shared feedback / rating / "other apps" kit. Local path rather than a
# GitHub remote (how Keystone and MediaStream are consumed) so it needs no
# publish step; swap `path` for `url`+`from` if it ever moves to GitHub.
MillerKit:
url: https://github.com/blaineam/MillerKit
from: "1.2.2" # 1.2.2: structural funding-link gate (iOS never; macOS by code signature — TF-receipt heuristic leaked)
targets:
# ---------- Main App (Direct Distribution) ----------
Blip:
type: application
platform: macOS
sources:
- path: Blip/Sources
- path: Shared
- path: Blip/Resources/Assets.xcassets
- path: Blip/Resources/Blip.icon
- path: Blip/Resources/Localizable.xcstrings
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.blainemiller.Blip
INFOPLIST_FILE: Blip/Resources/Info.plist
CODE_SIGN_ENTITLEMENTS: Blip/Resources/Blip.entitlements
LD_RUNPATH_SEARCH_PATHS: "@executable_path/../Frameworks"
PRODUCT_NAME: Blip
ASSETCATALOG_COMPILER_APPICON_NAME: Blip
GENERATE_INFOPLIST_FILE: NO
COMBINE_HIDPI_IMAGES: YES
configs:
# Hardened runtime stays ON for Release (notarization requires it) but
# OFF for Debug so the unit-test bundle can be injected into the test
# host (library validation rejects an ad-hoc-signed test bundle).
Debug:
ENABLE_HARDENED_RUNTIME: NO
frameworks:
- sdk: IOKit.framework
dependencies:
- package: MillerKit
# ---------- Unit Tests (hosted by the direct app) ----------
BlipTests:
type: bundle.unit-test
platform: macOS
sources:
- path: BlipTests
dependencies:
- target: Blip
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.blainemiller.BlipTests
TEST_HOST: "$(BUILT_PRODUCTS_DIR)/Blip.app/Contents/MacOS/Blip"
BUNDLE_LOADER: "$(TEST_HOST)"
GENERATE_INFOPLIST_FILE: YES
ENABLE_HARDENED_RUNTIME: NO
# ---------- Main App (Mac App Store) ----------
BlipAppStore:
type: application
platform: macOS
sources:
- path: Blip/Sources
- path: Shared
- path: Blip/Resources/Assets.xcassets
- path: Blip/Resources/Blip.icon
- path: Blip/Resources/Localizable.xcstrings
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.blainemiller.Blip
INFOPLIST_FILE: Blip/Resources/Info.plist
CODE_SIGN_ENTITLEMENTS: Blip/Resources/BlipAppStore.entitlements
CODE_SIGN_STYLE: Automatic
# Must match the team that owns the `group.com.blainemiller.Blip` app group
# (same team as the Developer ID helper) so the sandboxed build can reach the
# helper's shared container. Use an Apple Development cert for this team to run
# locally; Xcode picks Apple Distribution automatically when archiving.
DEVELOPMENT_TEAM: 8ZVSPZYSVF
LD_RUNPATH_SEARCH_PATHS: "@executable_path/../Frameworks"
PRODUCT_NAME: Blip
ASSETCATALOG_COMPILER_APPICON_NAME: Blip
GENERATE_INFOPLIST_FILE: NO
COMBINE_HIDPI_IMAGES: YES
SWIFT_ACTIVE_COMPILATION_CONDITIONS: APPSTORE
configs:
# App Store archives use automatic signing authenticated by the ASC API
# key (see Scripts/asc-upload.sh) so xcodebuild can create the team's
# development cert + provisioning profile headlessly. Override the global
# base CODE_SIGN_IDENTITY "-" (ad-hoc) — automatic dev signing needs
# "Apple Development"; the export step re-signs for distribution.
Release:
CODE_SIGN_IDENTITY: "Apple Development"
frameworks:
- sdk: IOKit.framework
dependencies:
- package: MillerKit
# ---------- Helper App (Direct Distribution, unsandboxed) ----------
BlipHelper:
type: application
platform: macOS
sources:
- path: BlipHelper/Sources
- path: Shared
- path: Blip/Sources/Services/SMCKit.swift
- path: BlipHelper/Resources/Assets.xcassets
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.blainemiller.BlipHelper
INFOPLIST_FILE: BlipHelper/Resources/Info.plist
CODE_SIGN_ENTITLEMENTS: BlipHelper/Resources/BlipHelper.entitlements
LD_RUNPATH_SEARCH_PATHS: "@executable_path/../Frameworks"
PRODUCT_NAME: "Blip Helper"
ASSETCATALOG_COMPILER_APPICON_NAME: Blip
GENERATE_INFOPLIST_FILE: NO
COMBINE_HIDPI_IMAGES: YES
frameworks:
- sdk: IOKit.framework
- sdk: AppKit.framework
- sdk: ServiceManagement.framework
# ---------- iOS / iPadOS app (Blip 2.0) ----------
BlipMobile:
type: application
platform: iOS
deploymentTarget: "17.0"
sources:
- path: BlipMobile/Sources
- path: Shared/BenchKit
- path: Shared/Net
- path: Shared/UI
- path: Shared/ConnectionGrades.swift
# GeoIP: the Mac app's Foundation-only MMDB reader + DB-IP downloader, shared verbatim.
- path: Blip/Sources/Services/MMDB.swift
- path: Blip/Sources/Services/GeoIPDatabase.swift
# Whole Resources folder (assets + string catalog). Listing the catalog by bare
# file path made xcodegen dedupe it against the Mac catalog of the same basename
# and silently drop it — no lproj ever shipped. A folder path groups correctly.
- path: BlipMobile/Resources
excludes:
- "Info.plist"
- "*.entitlements"
dependencies:
- target: BlipMobileWidgets
embed: true
- package: MillerKit
postBuildScripts:
- name: Strip xattrs (iCloud Documents detritus)
script: 'xattr -cr "${CODESIGNING_FOLDER_PATH}" || true'
basedOnDependencyAnalysis: false
settings:
base:
# Universal purchase: the iOS app IS Blip Stats — same app record, same bundle id
# as the Mac App Store build (the user added the iOS platform to the existing app).
PRODUCT_BUNDLE_IDENTIFIER: com.blainemiller.Blip
ASSETCATALOG_COMPILER_APPICON_NAME: AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME: AccentColor
INFOPLIST_FILE: BlipMobile/Resources/Info.plist
CODE_SIGN_ENTITLEMENTS: BlipMobile/Resources/BlipMobile.entitlements
TARGETED_DEVICE_FAMILY: "1,2"
GENERATE_INFOPLIST_FILE: NO
SWIFT_TREAT_WARNINGS_AS_ERRORS: YES
configs:
# DEBUG-ONLY: local device builds pass CODE_SIGN_STYLE=Manual and pick these up
# (profiles minted by Scripts/mint-dev-profiles.mjs). Release must NOT carry them —
# Xcode Cloud's export resolves a pinned specifier instead of managing signing
# (field-proven: runs 104/105 died on "No profiles for …widgets were found").
Debug:
PROVISIONING_PROFILE_SPECIFIER: "Blip iOS Dev App"
CODE_SIGN_IDENTITY: "iPhone Developer"
DEVELOPMENT_TEAM: 8ZVSPZYSVF
BlipMobileWidgets:
type: app-extension
postBuildScripts:
- name: Strip xattrs (iCloud Documents detritus)
script: 'xattr -cr "${CODESIGNING_FOLDER_PATH}" || true'
basedOnDependencyAnalysis: false
platform: iOS
deploymentTarget: "17.0"
sources:
- path: BlipMobileWidgets
- path: Shared/BenchKit
- path: BlipMobile/Sources/MobileSharedStore.swift
- path: BlipMobile/Sources/DeviceStats.swift
- path: BlipMobile/Sources/DeviceNames.swift
settings:
base:
PRODUCT_BUNDLE_IDENTIFIER: com.blainemiller.Blip.widgets
INFOPLIST_FILE: BlipMobileWidgets/Resources/Info.plist
CODE_SIGN_ENTITLEMENTS: BlipMobileWidgets/Resources/BlipMobileWidgets.entitlements
GENERATE_INFOPLIST_FILE: NO
SWIFT_TREAT_WARNINGS_AS_ERRORS: YES
configs:
Debug:
PROVISIONING_PROFILE_SPECIFIER: "Blip iOS Dev Widgets"
CODE_SIGN_IDENTITY: "iPhone Developer"
DEVELOPMENT_TEAM: 8ZVSPZYSVF
BlipMobileTests:
type: bundle.unit-test
platform: iOS
deploymentTarget: "17.0"
sources:
- path: BlipMobileTests
dependencies:
- target: BlipMobile
schemes:
Blip:
build:
targets:
Blip: all
BlipTests: [test]
run:
config: Debug
test:
config: Debug
gatherCoverageData: true
targets:
- BlipTests
BlipMobile:
build:
targets:
BlipMobile: all
BlipMobileTests: [test]
run:
config: Debug
test:
config: Debug
targets:
- BlipMobileTests
BlipAppStore:
build:
targets:
BlipAppStore: all
run:
config: Debug
archive:
config: Release
BlipHelper:
build:
targets:
BlipHelper: all
run:
config: Debug