Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Tests in xamarin-android have started failing with:

libfoo.so : error XA4301: Cannot determine ABI of native library 'libfoo.so'.
Move this file to a directory with a valid Android ABI name such as 'libs/armeabi-v7a/'.

Where the test in question sets Link=x86\libfoo.so:

https://github.com/xamarin/xamarin-android/blob/bf63c3d116b38459678cb3aefd2f5826e78c385e/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs#L115

This only fails on macOS and works fine on Windows. I didn't consider
this case in 90d7621.

I've added test cases for \, and added a string.Replace() that
should solve the problem on macOS.

I added test cases for null input as well.

Tests in xamarin-android have started failing with:

    libfoo.so : error XA4301: Cannot determine ABI of native library 'libfoo.so'.
    Move this file to a directory with a valid Android ABI name such as 'libs/armeabi-v7a/'.

Where the test in question sets `Link=x86\libfoo.so`:

https://github.com/xamarin/xamarin-android/blob/bf63c3d116b38459678cb3aefd2f5826e78c385e/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/XASdkTests.cs#L115

This only fails on macOS and works fine on Windows. I didn't consider
this case in 90d7621.

I've added test cases for `\`, and added a `string.Replace()` that
should solve the problem on macOS.

I added test cases for `null` input as well.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review June 7, 2021 16:33
@jonathanpeppers jonathanpeppers requested a review from jonpryor June 7, 2021 16:33
@jonathanpeppers jonathanpeppers merged commit e3d708c into dotnet:main Jun 8, 2021
@jonathanpeppers jonathanpeppers deleted the dotnet-rid-abi-macos branch June 8, 2021 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants