Commit 35a4e16
committed
Fix build warnings in the workflow for iOS
IMHO, it would be better to use `$(xcrun -f swift)` ("find" mode)
instead of `xcrun swift` ("run" mode).
`xcrun swift` is fine with packages that do not contain
`executableTarget`, but it causes the following errors with packages
that contain `executableTarget`:
```
clang: warning: using sysroot for 'MacOSX' but targeting 'iPhone'
[-Wincompatible-sysroot]
```
To prevent this, we can use `$(xcrun -f swift)` instead of `xcrun
swift`.
Related discussion:
https://forums.swift.org/t/getting-incompatible-sysroot-warning-when-compiling-for-ios-with-sdk-and-target-set/805841 parent f1ef0dc commit 35a4e16
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
| 259 | + | |
259 | 260 | | |
260 | 261 | | |
261 | 262 | | |
| |||
0 commit comments