-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"not a supported wheel on this platform" failure during test phase using Github Actions on macOS-latest #937
Comments
You really should target 10.12 or maybe 10.14, not 11. Especially when building on 10.15. ;) |
Is the usual way to do this by setting cibw has picked it up, but the build doesn't seem to have taken account of it. |
Switching to a macOS 10.11 runner on GH Actions builds This is very confusing. |
My guess is you might be getting something 11+ in the dependencies, maybe from Rust? I'd set Oh, interesting, maybe you are bundling an invalid binary in the Rust process? |
I'm just rebuilding the binary on 10.11 on CI, just to be sure… |
This looks suspect:
Why are you dumping a library into the wheelhouse? This thing is "liblonlat_bng.dylib" (plus a header). |
(this happens before cibuildwheel runs) |
I've switched the Rust dylib to build on 10.11 (same GH Actions image):
I've also removed that suspect |
minos 11.0 == min OS 11.0. macOS release over the last 9 years are 10.9, 10.10, 10.11, 10.12, 10.13, 10.14, 10.15, 11.0, 12.0 (one per year) You need to target something older using MACOSX_DEPLOYMENT_TARGET. Setting the build image to macOS-11 might not even have any affect at all, since macos-latest sometimes means 11, and sometimes means 10.15 (they are transitioning it now). The version of macOS you build on shouldn't matter, you should always set MACOSX_DEPLOYMENT_TARGET at what your are targeting for a minimum. You can't set it lower than 10.9, so that's a good place to start. 10.10, 10.12, and 10.14 are some other common settings based on new features added (10.14 if you use lots of C++17, for example). |
And the macOS |
Description
I'm using
cibuildwheel
2.2.2 to build my wheel using Github Actions.macos-latest
imagecibuildwheel
correctly builds, repairs, and tests the wheel on linuxpython -m pip wheel
Delocate
runs successfully on my local machinecp3{7, 8, 9, 10}-macosx_x86_64
wheels to be built usingcibuildwheel
cibuildwheel
appears to correctly build and repair the wheel on CI (see log)convertbng-0.6.35-cp37-cp37m-macosx_11_0_x86_64.whl
Build log
https://github.com/urschrei/convertbng/runs/4311025782?check_suite_focus=true
CI config
https://github.com/urschrei/convertbng/blob/master/.github/workflows/wheels.yml
The text was updated successfully, but these errors were encountered: