mapbox-unity-sdk
mapbox-unity-sdk copied to clipboard
libMapboxMobileEventsStatic.a cannot be linked for armv7
Hi,
I've updated Mapbox to v2.1.1 and I can no longer build for iPhone because the latest libMapboxMobileEventsStatic.a is not build for armv7. (had no problem with my previous version, 2.0.0)
LD fails like this: "ignoring file /yada/yada/my/full-prj-path/Mapbox/Core/Plugins/iOS/MapboxMobileEvents/libMapboxMobileEventsStatic.a, file was built for archive which is not the architecture being linked (armv7)"
- Unity version: 2018.3.14f1
- Scripting Runtime Version: .NET 4.x Equivalent
- Scripting Backend: il2cpp
- Api Compatibility Level: .NET Standard 2.0
- Mapbox SDK version: 2.1.1
- The platform you're building to: iOS
- A description of what you're trying to do: Build the darn thing
- Steps to recreate the bug if appropriate: Just run a build for an armv7 device.
Thanks, Andrei.
I can confirm this issue. Building directly to a device (arm64) = Build works. Archiving for AppStore = Build fails because of armv7 linking.
I checked the previous version of libMapboxMobileEventsStatic.a and it's twice the file size, which confirms this. By replacing only that file with the previous version then building works, but the app will crash at runtime.
- Unity version: 2018.4.11f1
- Scripting Runtime Version: .NET 4.x Equivalent
- Scripting Backend: il2cpp
- Api Compatibility Level: .NET 4.x
- Mapbox SDK version: 2.1.1
- The platform you're building to: iOS
- A description of what you're trying to do: Build the darn thing
- Steps to recreate the bug if appropriate: Just run a build for an armv7 device.
Did you find any solution to this? Not able to archive my game neither due to this issue..
Did you find any solution to this? Not able to archive my game neither due to this issue..
No, we had to downgrade to v2.0.0. :(
Oh ok.. Thanks, we just made the choice to support only arm64 and it works now.. So our app won't support armv7 anymore..
Oh ok.. Thanks, we just made the choice to support only arm64 and it works now.. So our app won't support armv7 anymore..
Hi, can you please elaborate the process you did to work finally?
You just have to remove the different architectures from the project settings. Just keep the ARM64 and it should work.
Is there any plan to add ARM7 support for Unity iOS builds?
Seems an odd thing to not be documented, if they were indeed dropping armv7 support. Is there documentation stating this anywhere I wonder, or is this just a bug?
For anyone curious how to drop v7 support in Unity until this gets sorted check the image below 👍 .
Open up Player Settings (Edit -> Project Settings -> Player)
and make the change below.