-
Notifications
You must be signed in to change notification settings - Fork 518
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
Projects referencing xcframeworks don't build properly on Windows #10784
Comments
A similar issue occurs when trying to build an app referencing a xcframework based binding project. The binding project is added using the 'side-card' method referencing the DLL and having the .resources folder in the same folder as the DLL. |
Hello, this look like an issue with the xamarin extension on windows. I have tagged the issue accordingly so that it is reviewed by a Windows developer. |
Hi @leonluc-dev, As you could see in the ticket, there's also a workaround that you can apply and get the iOS Binding projects building again.
Please let me know if after applying the workaround your issue goes away. |
@mauroa After applying the workaround and building a xcframework based binding on Windows the smaller dll seems properly generated but the resources folder seems broken: the xcframework is missing and the manifest file is empty. Building the binding project on Mac and then using the resulting dll and resources folder in a Xamarin.iOS project on Windows doesn't work either. The Windows tooling does pick up the referenced dll but doesn't pick up the resources folder it's supposed to look for in the same folder, which causes native linking errors. I've opened a ticket summarizing all xcframework related issues on DevCom: https://developercommunity.visualstudio.com/t/XamariniOS-support-for-xcframeworks-on/1368376 |
This is the only related ticket I could find: https://developercommunity.visualstudio.com/t/XamariniOS-support-for-xcframeworks-on/1450178?space=8&q=xcframeworks |
An update on this issue. The issue was marked as "Out of Scope" by the Visual Studio Team (which I do not agree with) so I don't know if this will get fixed anytime soon. |
@leonluc-dev The link you provided doesn't work (at least for me, it says "you don't have access or it doesn't exist"). I can only see the ticket via the link I provided above. |
Seems the id was changed since I first files the issue. I have changed the link and it should be working now. |
Steps to Reproduce
Expected Behavior
The project builds and the xcframework is found and embedded during the build process.
Actual Behavior
If a Xamarin.iOS project referencing a xcframework is built on Windows, the following error occurs:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\MSBuild\Xamarin\iOS\Xamarin.Shared.targets(142,3): error : Universal.xcframework has an incorrect or unknown format and cannot be processed.
If a Objective-C binding referencing a xcframework is built on Windows, no error occurs, but the result is missing the expected xcframework (no .resources folder is created)
Environment
Build Logs
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: