Skip to content

Cannot build and run MAUI app in Simulator after adding BindingProject #24767

@Hilmilein

Description

@Hilmilein

Apple platform

iOS

Framework version

net10.0-*

Affected platform version

VS 2026, 18.3, net10.0-ios

Description

I'm not able to build and run my MAU project in the iOS simulator after adding an iOS Binding library. project

The binding library has the following reference to a native iOS library.

<NativeReference Condition="$(TargetFramework.Contains('-ios'))" Include="..\2\ulrt.xcframework">
  <Kind>Framework</Kind>
  <SmartLink>false</SmartLink>
  <ForceLoad>false</ForceLoad>
  <LinkerFlags>-ObjC</LinkerFlags>
</NativeReference>

The binding library builds fine. and I can see in the debug folder a UltraLite.Native.iOS.resources.zip file.

This zip file has 2 directories:

ios-arm64 and
ios-x86-x64-simulator.

This is the content of the Info.plist file:

<?xml version="1.0" `encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>AvailableLibraries</key>
	<array>
		<dict>
			<key>BinaryPath</key>
			<string>libulrt.a</string>
			<key>LibraryIdentifier</key>
			<string>ios-x86_64-simulator</string>
			<key>LibraryPath</key>
			<string>libulrt.a</string>
			<key>SupportedArchitectures</key>
			<array>
				<string>x64</string>
			</array>
			<key>SupportedPlatform</key>
			<string>ios</string>
			<key>SupportedPlatformVariant</key>
			<string>simulator</string>
		</dict>
		<dict>
			<key>BinaryPath</key>
			<string>libulrt.a</string>
			<key>LibraryIdentifier</key>
			<string>ios-arm64</string>
			<key>LibraryPath</key>
			<string>libulrt.a</string>
	```
		<key>SupportedArchitectures</key>
			<array>
				<string>arm64</string>
			</array>
			<key>SupportedPlatform</key>
			<string>ios</string>
		</dict>
	</array>
	<key>CFBundlePackageType</key>
	<string>XFWK</string>
	<key>XCFrameworkFormatVersion</key>
	<string>1.0</string>
</dict>
</plist>

When I try to run and build tthe MAUI app I get the following error:

No matching framework found inside 'C:/bgdevelopment/eMotion/dev-MAUI/Source/Library/UltraLite.Native.iOS/bin/Debug/net10.0-ios/UltraLite.Native.iOS.resources.zip'. SupportedPlatform: 'ios', SupportedPlatformVariant: 'simulator', SupportedArchitectures: 'x86_64'.

Following suggestions from other issues from users I have added the following to my MAUI project:

 <PropertyGroup Condition="'$(TargetFramework.Contains(&quot;ios&quot;)) and $(RuntimeIdentifier) != 'ios-arm64'">
   <RuntimeIdentifier>iossimulator-x64</RuntimeIdentifier>
   <ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE>
 </PropertyGroup>

It does not help.

The Mac (MacBook Air M3, XCode 26.2) connects fine to my machine. I can easily build and run the MAUI app with an empty iOS binding library.

At the moment I don't have an iPad available, so I don't know if it would build and run on iPad directly.

The library is a ThirdParty framework, I do not have the source code to rebuild for an arm64 based Simulator build.

Many thanks in advance!

Steps to Reproduce

Add new binding library project that references a ulrt.xcframework ios-x86_64-simulato and ios-arm64. Try to build and run the application on the Simulator and it fails.

Did you find any workaround?

No response

Build logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    binding-projectsIssue or PR that affects binding projectsneed-attentionAn issue requires our attention/response

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions