Open
Description
Description
Cannot build MAUI App with .NET 8 when add AppsFlyer package into the MAUI .NET8 project and don't initiate any shared values. Although upgrade to .NET 9 still have no problem.
The latest success build version is 6.13.1
Steps to Reproduce
- Create a new MAUI .NET 8 with default template.
- Add AppsFlyerXamarinBinding package into the project with version at least 6.15.3
- Build project
Expected Behavior
Project should be build successfully without initialize any values
Actual Behavior
Build failed with a message:
dotnet build -c Debug -f net8.0-ios ~/Desktop/Sandbox/MAUIApp/MauiApp1/MauiApp1.csproj
MauiApp1 net8.0-ios failed with 1 error(s) (19.4s) → /Users/poonnawit/Desktop/Sandbox/MAUIApp/MauiApp1/bin/Debug/net8.0-ios/iossimulator-arm64/MauiApp1.dll
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_18.0/18.0.8324/targets/Xamarin.Shared.Sdk.targets(1648,3): error :
clang++ exited with code 1:
Undefined symbols for architecture arm64:
"__swift_FORCE_LOAD_$_swiftCompatibility56", referenced from:
__swift_FORCE_LOAD_$_swiftCompatibility56_$_AppsFlyerLib in AppsFlyerLib[arm64][72](AppTransactionWrapper.o)
"__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency", referenced from:
__swift_FORCE_LOAD_$_swiftCompatibilityConcurrency_$_AppsFlyerLib in AppsFlyerLib[arm64][72](AppTransactionWrapper.o)
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
Build failed with 1 error(s) in 19.4s
Environment
dotnet --info
.NET SDK:
Version: 9.0.300
Commit: 15606fe0a8
Workload version: 9.0.300-manifests.87b8cca8
MSBuild version: 17.14.5+edd3bbf37
Runtime Environment:
OS Name: Mac OS X
OS Version: 15.5
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/9.0.300/
.NET workloads installed:
[maui]
Installation Source: SDK 9.0.300
Manifest Version: 9.0.51/9.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/9.0.100/microsoft.net.sdk.maui/9.0.51/WorkloadManifest.json
Install Type: FileBased
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.5
Architecture: arm64
Commit: e36e4d1a8f
.NET SDKs installed:
8.0.409 [/usr/local/share/dotnet/sdk]
9.0.300 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.16 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.5 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.16 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.5 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Metadata
Metadata
Assignees
Labels
No labels