Skip to content

[Bug] iOS Build error after updating the MSAL version #5437

@jbe2277

Description

@jbe2277

Library version used

4.74.1

.NET version

After updating MSAL from 4.68.0 to 4.74.1 I get a build error for iOS.

<PackageVersion Include="Microsoft.Identity.Client.Broker" Version="4.74.1" />
<PackageVersion Include="Microsoft.Identity.Client.Extensions.Msal" Version="4.74.1" />

Scenario

PublicClient - mobile app

Is this a new or an existing app?

The app is in production, and I have upgraded to a new version of MSAL

Issue description and reproduction steps

I have updated MSAL with this commit:

The GitHub action to build the iOS version failed:

with the error message:

/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.5/18.5.9215/targets/Xamarin.Shared.Sdk.targets(1837,3): 
error : clang++ exited with code 1: [/Users/runner/work/waf/waf/src/NewsReader/NewsReader.MauiSystem/
NewsReader.MauiSystem.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.5/18.5.9215/targets/Xamarin.Shared.Sdk.targets(1837,3): 
error : ld: building for 'iOS-simulator', but linking in dylib (/Users/runner/work/waf/waf/src/NewsReader/
NewsReader.MauiSystem/obj/Release/net9.0-ios/iossimulator-arm64/nativelibraries/Contents/MonoBundle/
msalruntime_arm64.dylib) built for 'macOS' [/Users/runner/work/waf/waf/src/NewsReader/NewsReader.MauiSystem/
NewsReader.MauiSystem.csproj::TargetFramework=net9.0-ios]
/Users/runner/.dotnet/packs/Microsoft.iOS.Sdk.net9.0_18.5/18.5.9215/targets/Xamarin.Shared.Sdk.targets(1837,3): 
error : clang++: error: linker command failed with exit code 1 (use -v to see invocation) [/Users/runner/work/waf/waf/src/
NewsReader/NewsReader.MauiSystem/NewsReader.MauiSystem.csproj::TargetFramework=net9.0-ios]

Relevant code snippets

Expected behavior

No response

Identity provider

Microsoft Entra ID (Work and School accounts and Personal Microsoft accounts)

Regression

4.68.0

Solution and workarounds

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions