Commit 0fc1006
xcodebuild CI: umbrella ML Kit headers + static-lib target type
Two iterations on the matrix:
1. The per-class ML Kit header paths I was using
(`<MLKitTextRecognition/MLKTextRecognizer.h>` etc.) aren't actually
exported by the GoogleMLKit pods. ML Kit ships ONE umbrella header
per framework, named after the framework itself. Switch every iOS
bridge to import the umbrella (`<MLKitTextRecognition/MLKitText
Recognition.h>`, `<MLKitVision/MLKitVision.h>`, etc.) so clang's
framework header search resolves and the public classes -- which
the umbrella re-exports -- stay visible to the .m bodies.
2. The cn1libs that ship without a CocoaPod (whisper / stable
diffusion) declare extern symbols that the real build server
resolves against the bundled static library / Swift runner. The
probe build had no such library so the link phase failed.
Switch the probe target from `framework` to `library.static` --
.a archives don't link, they archive .o files, so unresolved
externs are fine. We still compile-check every source file,
which is the whole point of this gate.
3. Also fix tflite's umbrella import: the pod is
`TensorFlowLiteObjC` but the produced framework's module name --
the one used in the angle-bracket prefix -- is
`TFLTensorFlowLite`. So `<TFLTensorFlowLite/TFLTensorFlowLite.h>`,
not `<TensorFlowLiteObjC/...>`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 915d524 commit 0fc1006
13 files changed
Lines changed: 48 additions & 75 deletions
File tree
- .github/workflows
- maven
- cn1-ai-mlkit-barcode/ios/src/main/objectivec
- cn1-ai-mlkit-face/ios/src/main/objectivec
- cn1-ai-mlkit-labeling/ios/src/main/objectivec
- cn1-ai-mlkit-langid/ios/src/main/objectivec
- cn1-ai-mlkit-pose/ios/src/main/objectivec
- cn1-ai-mlkit-segmentation/ios/src/main/objectivec
- cn1-ai-mlkit-smartreply/ios/src/main/objectivec
- cn1-ai-mlkit-text
- common
- ios/src/main/objectivec
- cn1-ai-mlkit-translate/ios/src/main/objectivec
- cn1-ai-tflite/ios/src/main/objectivec
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
| |||
95 | 100 | | |
96 | 101 | | |
97 | 102 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
8 | 5 | | |
9 | 6 | | |
10 | 7 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
7 | 4 | | |
8 | 5 | | |
9 | 6 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 3 | + | |
| 4 | + | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
| |||
0 commit comments