mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

libMapboxMobileEventsStatic.a cannot be linked for armv7

Open Tasta opened this issue 5 years ago • 9 comments

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.

Tasta avatar Oct 22 '19 16:10 Tasta

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.

phaax avatar Nov 18 '19 11:11 phaax

Did you find any solution to this? Not able to archive my game neither due to this issue..

anthodb avatar Feb 03 '20 10:02 anthodb

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. :(

phaax avatar Feb 03 '20 11:02 phaax

Oh ok.. Thanks, we just made the choice to support only arm64 and it works now.. So our app won't support armv7 anymore..

anthodb avatar Feb 03 '20 13:02 anthodb

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?

reshadhstu avatar Feb 23 '20 09:02 reshadhstu

You just have to remove the different architectures from the project settings. Just keep the ARM64 and it should work.

anthodb avatar Mar 01 '20 15:03 anthodb

Is there any plan to add ARM7 support for Unity iOS builds?

spaceowlproductions avatar Nov 20 '20 20:11 spaceowlproductions

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?

thsbrown avatar Sep 21 '21 17:09 thsbrown

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.

image

thsbrown avatar Sep 21 '21 17:09 thsbrown