Flash3001 / Xamarin.Swift

Include Swift dylibs on Xamarin.iOS, tvOS and macOS - Swift 3, 4 and 5
Apache License 2.0
87 stars 19 forks source link

Error MSB4044: The "CheckSwiftVersionsTask" task was not given a value for the required parameter "AppManifest". (MSB4044) #50

Open bulubuloa opened 3 years ago

bulubuloa commented 3 years ago

I just updated VS Mac, Xamarin.iOS and getting this error when compile. .../.nuget/packages/xamarin.swift/1.0.7/build/xamarinios/Xamarin.Swift.targets(9,9): Error MSB4044: The "CheckSwiftVersionsTask" task was not given a value for the required parameter "AppManifest". (MSB4044)

=== Visual Studio Community 2019 for Mac ===

Version 8.8.5 (build 18) Installation UUID: f84e35a8-14bf-41db-a042-ed58dbad9b57 GTK+ 2.24.23 (Raleigh theme) Xamarin.Mac 6.18.0.23 (d16-6 / 088c73638)

Package version: 612000113

=== Mono Framework MDK ===

Runtime: Mono 6.12.0.113 (2020-02/4fdfb5b1fd5) (64-bit) Package version: 612000113

=== Roslyn (Language Service) ===

3.8.0-5.20519.18+4c195c3ac1974edcefa76774d7a59a2350ec55fa

=== NuGet ===

Version: 5.8.0.6860

=== .NET Core SDK ===

SDK: /usr/local/share/dotnet/sdk/5.0.102/Sdks SDK Versions: 5.0.102 5.0.101 5.0.100 3.1.405 3.1.404 3.1.403 3.1.402 3.1.401 3.1.302 3.1.301 3.1.300 3.1.200 3.1.102 3.1.101 3.1.100 3.0.101 3.0.100 2.1.505 MSBuild SDKs: /Applications/Visual Studio.app/Contents/Resources/lib/monodevelop/bin/MSBuild/Current/bin/Sdks

=== .NET Core Runtime ===

Runtime: /usr/local/share/dotnet/dotnet Runtime Versions: 5.0.2 5.0.1 5.0.0 3.1.11 3.1.10 3.1.9 3.1.8 3.1.7 3.1.6 3.1.5 3.1.4 3.1.2 3.1.1 3.1.0 3.0.1 3.0.0 2.1.23 2.1.22 2.1.21 2.1.20 2.1.19 2.1.18 2.1.17 2.1.16 2.1.15 2.1.14 2.1.13 2.1.9

=== .NET Core 3.1 SDK ===

SDK: 3.1.405

=== Xamarin.Profiler ===

Version: 1.6.15.68 Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler

=== Updater ===

Version: 11

=== Apple Developer Tools ===

Xcode 12.3 (17715) Build 12C33

=== Xamarin.Mac ===

Version: 7.2.0.3 (Visual Studio Community) Hash: c51fabee8 Branch: xcode12.3 Build date: 2020-12-10 21:05:04-0500

=== Xamarin.iOS ===

Version: 14.8.0.3 (Visual Studio Community) Hash: c51fabee8 Branch: xcode12.3 Build date: 2020-12-10 21:05:05-0500

=== Xamarin Designer ===

Version: 16.8.0.510 Hash: 44e3f3ce9 Branch: remotes/origin/d16-8 Build date: 2020-12-10 00:06:14 UTC

=== Xamarin.Android ===

Version: 11.1.0.26 (Visual Studio Community) Commit: xamarin-android/d16-8/a36ce73 Android SDK: /Users/omnimobile/Library/Android/sdk Supported Android versions: 4.4.87 (API level 20) 6.0 (API level 23) 7.0 (API level 24) 7.1 (API level 25) 8.0 (API level 26) 8.1 (API level 27)

SDK Tools Version: 26.1.1 SDK Platform Tools Version: 29.0.5 SDK Build Tools Version: 29.0.2

Build Information: Mono: 5e9cb6d Java.Interop: xamarin/java.interop/d16-8@79d9533 ProGuard: Guardsquare/proguard/proguard6.2.2@ebe9000 SQLite: xamarin/sqlite/3.32.1@1a3276b Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-8@2fb1cbc

=== Microsoft OpenJDK for Mobile ===

Java SDK: /Users/omnimobile/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_1.8.0.25 1.8.0-25 Android Designer EPL code available here: https://github.com/xamarin/AndroidDesigner.EPL

=== Android SDK Manager ===

Version: 16.8.0.32 Hash: 01a7774 Branch: remotes/origin/d16-8 Build date: 2020-12-10 00:32:24 UTC

=== Android Device Manager ===

Version: 16.8.0.46 Hash: 0a81419 Branch: remotes/origin/d16-8 Build date: 2020-12-10 00:32:44 UTC

=== Build Information ===

Release ID: 808050018 Git revision: e83d51ec050ffcdd573462fc1889b58cfe1a5ad5 Build date: 2021-01-07 14:45:50-05 Build branch: release-8.8 Xamarin extensions: e83d51ec050ffcdd573462fc1889b58cfe1a5ad5

=== Operating System ===

Mac OS X 10.16.0 Darwin 20.2.0 Darwin Kernel Version 20.2.0 Wed Dec 2 20:39:59 PST 2020 root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64

=== Enabled user installed extensions ===

XAML Styler 2.0.1

yogeshk25 commented 3 years ago

@bulubuloa did you find any fix for this issue?

visuall commented 2 years ago

Any clue what this is ... after today's VS update I am also getting the same issue.

ceburo commented 2 years ago

Hi, same for me after VSfM 2022 preview 4 installed. And don't find any workaround to go back.

jkapsouras commented 2 years ago

Hello! Same for me! Is there an solution for this?

ceburo commented 2 years ago

Just used the Microsoft nuget in development : https://www.nuget.org/packages/Xamarin.iOS.SwiftRuntimeSupport/ Worked fine.

Not tried in Publishing yet.

Flash3001 commented 2 years ago

For a quick fix. When you see the error. Open the Xamarin.Swift.targets file (just double click on the error) and replace the _AppManifest variable name by AppBundleManifest

Screen Shot 2022-02-20 at 18 50 01

I will be pushing an update to the package.

Microsoft has renamed property name https://github.com/xamarin/xamarin-macios/blob/a404081365c3cc7b35a3b74eca0eb62094d395e2/msbuild/Xamarin.Shared/Xamarin.Shared.targets#L1352

Flash3001 commented 2 years ago

Just published update 1.0.9 with the fix.

ceburo commented 2 years ago

Worked for me. Thanks

jkapsouras commented 2 years ago

Working! Thank you!