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

Undefined symbols for architecture arm64 #74

Open
nullpotent opened this issue Jan 22, 2025 · 0 comments
Open

Undefined symbols for architecture arm64 #74

nullpotent opened this issue Jan 22, 2025 · 0 comments

Comments

@nullpotent
Copy link

Description

I have a basic MAUI (.net 8) project created with a Rider template that uses a binding library based on a template from Maui.NativeLibraryInterop. I'm trying to build a Release config build (IPA for distribution).

Binding lib it depends on is a wrapper Xcode project around a native .framework (to minimize the API surface when creating api definitions). It itself depends on an .xcframework, although the original authors of the framework instructed me simulator builds will not work (and I disabled ios simulator support in Xcode project with SUPPORTED_PLATFORMS = iphoneos;). Building the Xcode project with Xcode 15.3, 15.4 and 16 works just fine, no errors.

But, when trying to build a release MAUI iOS build I get the following error: Undefined symbols for architecture arm64
What's strange is that the builds were fine up until maybe a month ago, it stopped working when I updated the dotnet version at some point(still kept the same maui workload 8.0.72)

Any clues what might be going on here?

Thanks in advance, Alex

Steps to Reproduce

  1. Open the solution from the reproduction repository
  2. Switch to Release config build and try building the project
  3. Observe the bug

Link to public reproduction project repository

https://github.com/nullpotent/MauiAppIosBindingIssue

Environment

  • OS: MacOS Sequoia 15.0, Xcode 15.3
  • .NET MAUI: 8.0.403 (maui workload 8.0.72)
  • Target platforms: ios-arm64

Tried Xcode 15.4 as well, tried maui workload 8.0.82 and 8.0.3

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