Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile Firebase Slim Binding release IPA (Undefined symbols for architecture arm64) #70

Open
gkmiel-hb opened this issue Jan 8, 2025 · 1 comment

Comments

@gkmiel-hb
Copy link

I can't compile release ipa for iOS MAUI app (.NET8).
Compiler works fine with debug configuration (with Hot Restart enabled and my local device).
Compiler throws these errors for release configuration:

Tool xcrun execution finished (exit code = 1).
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : clang++ exited with code 1:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : Undefined symbols for architecture arm64:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_MauiFIRAnalytics", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_MauiFIRApp", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_MauiFIRAuth", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_MauiFIRAuthResult", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_MauiFIRAuthUser", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : "OBJC_CLASS$_MauiFIRMessaging", referenced from:
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : in registrar.o
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : ld: symbol(s) not found for architecture arm64
C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_18.0\18.0.8316\targets\Xamarin.Shared.Sdk.targets(1648,3): error : clang++: error: linker command failed with exit code 1 (use -v to see invocation)

My environment:
Windows + Visual Studio (Version 17.12.3) + MacinCloud (Mac Mini 2023 M2 16GB RAM
macOS Sonoma XCode 16.2);

Any help would be appreciated.

@gkmiel-hb
Copy link
Author

I have found solution to resolve compiling issue. I have set "Reference Output Assembly" property to True on interop library in Sample project dependencies.
After that I have added Firebase.MaciOS.Binding library code to another solution and without success. Compared successful and failed compilation logs. They differ in Firebase.MaciOS.Binding letters case. Original solution has "Macios" letters when project file has "MaciOS". Then I made the same in my solution it has started compile. Maybe some could explain that behavior.

Image

Image

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

No branches or pull requests

1 participant