-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Apple Silicon support #4
Comments
Thank you @chrisballinger for the report. I had to exclude arm64 architecture from build architectures because I was unable to link it. I am not sure what is the root issue - it might be that I am using Intel based mac and GitHub actions runners we use for CD/CI are also Intel based. Details on the issue on StackOverflow. If you would have more knowledge on this topic let us know or place in a pull request. To reproduce this issue, just remove excluded architectures and build the project. |
The issue seems to be caused by Mapbox dependencies dependencies which were removed in #7 |
@chrisballinger can I close this issue? macOS support has its own ticket. |
@petr-pokorny-1 After those changes, does the new final binary of |
I believe this was fixed in the following commits: The framework now contains arm64 slices for iOS simulator. The problem is that I don't have silicon mac to test it. We plan to release next version with these changes on March 05 so it would be great if someone could test it. |
Awesome! Unfortunately I don't either, perhaps one of the macOS CI providers has ARM machines now? |
I was able to build & test MapLibre on Apple Silicon, but the resulting test app had the following symptoms:
Build tool chain
How to test: If your Xcode project uses Swift package to import MapLibre, then delete the Xcode Libraries before removing the working version with MapLibre from a Swift Package The test app has a working version with MapLibre, but is manually removed for this test. Xcode Libraries after a) removing Swift Package Libraries, and b) dragging and dropping If your MapLibre test app uses Cocoapods on Apple Silicon, you can use these commands for any issues with installing Cocoapods arch -x86_64 sudo gem install cocoapods
arch -x86_64 sudo gem install ffi
arch -x86_64 pod install |
More changes to get the build-android.sh script working: - Add `git` to dependencies in docker file because MapLibre needs it - Use 28.0.3 for build tools version because this is the version MapLibre uses - Disable gradle daemon to avoid "Gradle build daemon disappeared unexpectedly" failure - Increase memory from 8Gi to 16Gi to avoid OOMKilled failure
…her-styles Measure FPS from frame time to avoid sync caps
The
Mapbox.xcframework
here is missing a slice for arm64 iOS Simulator: https://github.com/maptiler/maplibre-gl-native/releases/download/ios-v5.10.0/Mapbox-5.10.0.zipFor whatever reason arm64 iOS Simulator is already present in
MapboxMobileEvents.xcframework
, just not inMapbox.xcframework
.Although it doesn't look like you support macOS binaries yet, they'll also need arm64 slices whenever that day comes. I'd suggest just adding macOS support to the existing XCFramework.
The text was updated successfully, but these errors were encountered: