Closed dreampiggy closed 5 years ago
Thanks for the detailed bug report. I'll have a look at this in the coming day. Most definitely not a bug with xcode. Most probably with the toolchain.
Looking closer into this issue there was definitely problems with the toolchain in certain (untested) situations. The default min version was always set to 8.0 (watchOS does not follow the other SDK versions obviously). I have patched this in the repo to now target watchOS SDK 2.0 as default.
Seems this works for me. It's related to the min depolyment target version on watchOS platform. Thanks for your support !
The system envionment
The usage
Trying to build libde265 project:
Result
This can build. However, the generated static library's is strange. The architecture is correct, but however, the info stored inside Mach-O binary is strange and point out it's a watchOS 8.0 (?) binary. However, current (2018) latest watchOS SDK is 5.1.
See the output (take watchOS simulator for example) :
And also, when uploading to CocoaPods trunk, the
pod spec lint
show the warnings here:The FAT binary is in one open-source project and you can also download it from GitHub here.
Note that
pod spec lint
will check all 4 Apple platformsiOS/tvOS/watchOS/macOS
, thoes warnings only happend on watchOS binary.😕 I'm wondering is this a designed behavior ? (Quite strange from the first look), or Xcode bug ? Or this ios-cmake script issue ? Thanks for support !