-
Notifications
You must be signed in to change notification settings - Fork 514
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
Having multiple .frameworks in a nuget package fails to build due to multiple info.plist files #12440
Comments
Looks like this behavior is by design: dotnet/sdk#9643 (comment) That said, there might be a way around this (in some cases you can zip up the .framework instead and put it in a specific location), I'll have a look to see how that would work with NuGets. |
I'm not sure how this is by design? I'd say .frameworks are special and needs special handling for the build. |
@dotMorten it's NuGet's design, and not something we can change for Xamarin.iOS. |
That said, I'm going to try to find a solution (that doesn't involve changing NuGet). |
we could go back to mtouch arguments in a targets file but it's terribly errorprone and OS dependent |
And why can't we change nuget? |
Because it will break existing code that depends on the current behavior. |
@rolfbjarne There is existing code that relies on multiple |
No, because this is new for Xamarin.iOS. It's not new for NuGet in general though, and, according to this comment, there are platforms that rely on the fact that all the files in In any case I'm just parroting what I read from dotnet/sdk#9643, so if you have any concerns with NuGet, please file an issue in that repo. |
Honestly this feels a bit like being caught between two chairs: You added support for using the /runtimes/ folder on iOS (which is awesome!), but it is falling short, because of another team's decision on behavior that gets in the way of how native frameworks work on the various platforms. I've spent the time finding, logging and pointing out these shortcomings, communicated it to Microsoft via this issue, but as an external developer, it is really hard for me to be the person responsible for getting various Microsoft teams to work together to solve these problems. |
I've already said we're going to find a solution (#12440 (comment)), so you don't have to do anything else. |
I believe this to be the same as #12572 (which is a more general issue), so I'm closing this one in favor of that one. |
Steps to Reproduce
\runtimes\ios-arm64\native\
folder. Each framework will have anInfo.plist
file associated with it.Expected Behavior
Application deploys and both frameworks gets deployed
Actual Behavior
Build error:
Environment
Build Logs
binlog: msbuild.zip
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: