[MAUI] [iOS] dotnet maui iOS support nuget reference error
See original GitHub issueLibrary Version
Couchbase.Lite 3.0.8 Couchbase.Lite.Support.Android 3.0.8 Couchbase.Lite.Support.iOS 3.0.8 (Note that this behavior has been observed on older versions as well, I just happened to be trying out the latest)
.NET Runtime
dotnet sdk 7.0.102 dotnet maui workloads 7.0.59
Operating System / Device Details
build machine: WIndows 10 Enterprise 21H2 + MacOS Ventura 13.2 deployment target: iPhone14 simulator with iOS 14.2 (Xcode 14.2)
Log Output
Project does not compile, see below for errors
Severity Code Description Project File Line Suppression State
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-arm64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x86. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x86. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x86. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / android-x86. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / iossimulator-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / iossimulator-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / iossimulator-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / iossimulator-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / maccatalyst-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / maccatalyst-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / maccatalyst-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / maccatalyst-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / win10-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / win10-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / win10-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0) / win10-x64. Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0). Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0). Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0). Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error NU1202 Package Couchbase.Lite.Support.iOS 3.0.8 is not compatible with net7.0-ios16.1 (.NETCoreApp,Version=v7.0). Package Couchbase.Lite.Support.iOS 3.0.8 supports: xamarinios (Xamarin.iOS,Version=v0.0) MauiApp4 C:\Users\dkong\Repo\random\MauiApp4\MauiApp4.csproj 1
Error CS0234 The type or namespace name 'iOS' does not exist in the namespace 'Couchbase.Lite.Support' (are you missing an assembly reference?) MauiApp4 (net7.0-ios) C:\Users\dkong\Repo\random\MauiApp4\MauiProgram.cs 26 Active
Expected behavior
A new maui project should be able to reference Couchbase.Lite along with the Android and iOS support nuget packages and compile
Actual behavior
The project does not compile for iOS
Steps To Reproduce
- Create a new maui project by running
dotnet new maui
- Install Couchbase.Lite and the 2 support packages for the new project
- Open up the .csproj file and notice the iOS support package having the incorrect target framework
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0-maccatalyst'">
<PackageReference Include="Couchbase.Lite.Support.iOS">
<Version>3.0.8</Version>
</PackageReference>
</ItemGroup>
- Change the target framework of the nuget package to net7.0-ios
- Add the following lines in MauiProgram.CreateMauiApp()
#if ANDROID
Couchbase.Lite.Support.Droid.Activate(Android.App.Application.Context);
#elif IOS
Couchbase.Lite.Support.iOS.CheckVersion();
#endif
- Attempt to build for iOS and get the build errors shown in the Log Output section
Reproduction Project
Issue Analytics
- State:
- Created 7 months ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
iOS Binding Does Nothing · Issue #14775 · dotnet/maui
Creating a new MAUI ios binding template using the dotnet commands ... create a Nuget package and reference that) and then it should...
Read more >Troubleshoot known issues - .NET MAUI
Learn about .NET MAUI known issues and troubleshooting you can do to resolve these issues.
Read more >How do I fix below errors with MAUI start up app
iOS.Runtime.iossimulator-x64 was not downloaded. Try running a NuGet restore with the RuntimeIdentifier 'iossimulator-x64'. 1>Done building ...
Read more >Could not find a part of the path - error when adding NuGet ...
Installing this NuGet package results in this error: Could not find a part of the path 'C:\Users\brunc\.nuget\packages\xamarin.firebase.ios.
Read more >MAUI on Mac - Visual Studio 2022 17.4.2 : r/dotnetMAUI
I have installed VS 2022 17.4.2, and upon building or restoring NuGet packages for the MAUI project I keep getting the below errors:....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
.NET MAUI compatibility is not a thing yet, unfortunately. This is coming in 3.1. We don’t release from the master branch. The 3.0.x line comes from the release/lithium branch. 3.1 is in the RC stage so it will be coming probably in a matter of weeks as we internally test it. I know it’s slow but hopefully this is the last gigantic support matrix explosion that needs to happen for a while.
3.1.0 was released 20 days ago with support for .NET 6 (and therefore MAUI)