You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run msbuild UniversalBinding/UniversalBinding.csproj /p:Configuration=Release
Run nuget pack UniversalBinding.nuspec
Copy UniversalBinding.1.0.0-pre01.nupkg into your local Nuget feed. It will be needed later.
Open the solution in VS for Mac.
Build and run BindingTestApp. It includes UniversalBinding directly as a project reference and correctly invokes code from the xcframework. So far so good.
Now try to build and run BindingNugetTestApp. It references UniversalBinding as a Nuget package and the build fails with: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(3,3): Error: /Users/user/Desktop/BindingTest/BindingNugetTestApp/bin/iPhoneSimulator/Debug/UniversalBinding.resources/UniversalBinding.xcframework has an incorrect or unknown format and cannot be processed.
Build error: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(3,3): Error: /Users/user/Desktop/BindingTest/BindingNugetTestApp/bin/iPhoneSimulator/Debug/UniversalBinding.resources/UniversalBinding.xcframework has an incorrect or unknown format and cannot be processed.
Steps to Reproduce
msbuild UniversalBinding/UniversalBinding.csproj /p:Configuration=Release
nuget pack UniversalBinding.nuspec
UniversalBinding.1.0.0-pre01.nupkg
into your local Nuget feed. It will be needed later.BindingTestApp
. It includesUniversalBinding
directly as a project reference and correctly invokes code from the xcframework. So far so good.BindingNugetTestApp
. It referencesUniversalBinding
as a Nuget package and the build fails with:/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(3,3): Error: /Users/user/Desktop/BindingTest/BindingNugetTestApp/bin/iPhoneSimulator/Debug/UniversalBinding.resources/UniversalBinding.xcframework has an incorrect or unknown format and cannot be processed.
The bug potentially relates to #10046, #10774, #10784, #12087
Expected Behavior
XCFramework can be used from a Nuget package.
Actual Behavior
Build error:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.Shared.targets(3,3): Error: /Users/user/Desktop/BindingTest/BindingNugetTestApp/bin/iPhoneSimulator/Debug/UniversalBinding.resources/UniversalBinding.xcframework has an incorrect or unknown format and cannot be processed.
Environment
About Microsoft Visual Studio
Build Logs
Example Project (If Possible)
BindingTest.zip
The text was updated successfully, but these errors were encountered: