-
Notifications
You must be signed in to change notification settings - Fork 6
error MSB4044: The "CompileEntitlements" task was not given a value for the required parameter "AppBundleDir". #45
Comments
From @rolfbjarne on Thu, 27 Oct 2022 14:33:20 GMT Looks like this is a bug in <Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.ObjCBinding.CSharp.targets" /> and not: <Import Project="$(MSBuildExtensionsPath)/Xamarin/iOS/Xamarin.iOS.CSharp.targets" /> Ref:
|
@tuyen-vuduc I've heard that MSBuild.Sdk.Extras can multi-target .NET 6+ and Xamarin. Does that work for you instead? |
@jonathanpeppers My project is based on Google APIs for iOS repo. It is used to be compiled well about a week ago, but failed when I tried again this week after VSfMac upgrade (not sure if any issues with the upgrade). I also checked out MSBuild.SDK.Extras, but it shows another error.
|
One thing to note: if the native framework is not a Swift one, the binding project will be compiled well. E.g. Kount for iOS |
The difference between the two SDKs:
Xamarin.Legacy.Sdk we really only use for building the AndroidX libraries, so it is pretty Android-focused. The iOS & Mac support, I believe was just a community contribution. |
@jonathanpeppers Can you advise where can I change the setting in VSfMac to use |
I don't see the setting in VS Mac 17.4 preview anymore, maybe they do it automatically depending on the project type now? I would try to get Alternatively, you could have two different projects instead of multi-targeting. |
@jonathanpeppers I tried to get back to a normal Xamarin.iOS binding library. It's compile well on VSfM but cannot pack using Any advices?
|
For the above, I have to manually create nuspec file then run If use binding template for
here is dotnet workload in my machine
|
@jonathanpeppers Can you advise how I can download the previous version of VSfM? I mean each minor version. I want to go back to the version it works for me previously. |
@tuyen-vuduc I believe you'll need an earlier version of Xamarin.iOS (and not necessarily VSfM). Earlier versions of Xamarin.iOS can be found here: https://github.com/xamarin/xamarin-macios/blob/main/DOWNLOADS.md |
Do you think it relates to Xamarin.iOS and XCode 14?
|
Yes, this is likely due to changes we've made in Xamarin.iOS 16 (or even earlier). |
@rolfbjarne @jonathanpeppers Have you guys found any things? I think for this one we will need to only the check for Do you think it's an easy fix? |
I tried
The other error is shown up
For a reason, when binding a swift library, app bundle creation was enabled. |
Can we skip by checking |
This happens if and only if I add this package |
From @tuyen-vuduc on Wed, 26 Oct 2022 23:10:47 GMT
Steps to Reproduce
Expected Behavior
Actual Behavior
Environment
Version information
Build Logs
Example Project (If Possible)
https://github.com/xbindings/ppriskmagnes-xamarin-ios
Copied from original issue dotnet/macios#16489
The text was updated successfully, but these errors were encountered: