Description
i’m unable to run my undertaking on simulator getting following error
/usr/native/share/dotnet/sdk/8.0.302/Sdks/Microsoft.NET.Sdk/targets/Microsoft.PackageDependencyResolution.targets(5,5): Error NETSDK1047: Property file ‘/Customers/ragib.noor/Repository/PMI_Service_Gateway/src/PMI.Service.Cellular.Maui/PMI.Service.Cellular.Maui.iOS/obj/undertaking.belongings.json’ would not have a goal for ‘net8.0-ios/iossimulator-x64’. Be sure that restore has run and that you’ve got included ‘net8.0-ios’ within the TargetFrameworks in your undertaking. You might also want to incorporate ‘iossimulator-x64’ in your undertaking’s RuntimeIdentifiers. (NETSDK1047) (PMI.Service.Cellular.Maui.iOS)
In my undertaking i’m focusing on ios solely in runtime , right here is my undertaking configuration
<PropertyGroup>
<TargetFramework>net8.0-ios</TargetFramework>
<SupportedOSPlatformVersion>14.0</SupportedOSPlatformVersion>
<OutputType>Exe</OutputType>
<Nullable>allow</Nullable>
<ImplicitUsings>allow</ImplicitUsings>
<UseMaui>true</UseMaui>
</PropertyGroup>
<PropertyGroup Situation="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
<BuildIpa>true</BuildIpa>
<IpaMetadata>data.plist</IpaMetadata>
<IpaPackageName>****</IpaPackageName>
<CodesignKey>*****</CodesignKey>
<CodesignProvision>****</CodesignProvision>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<UseNativeHttpHandler>false</UseNativeHttpHandler>
<MtouchExtraArgs>-v -v -v -v --dlsym:Microsoft.Win32.Registry.dll</MtouchExtraArgs>
<MtouchLink>SdkOnly</MtouchLink>
<OptimizePNGs>false</OptimizePNGs>
</PropertyGroup>
<PropertyGroup Situation="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Launch|net8.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
<BuildIpa>true</BuildIpa>
<IpaMetadata>data.plist</IpaMetadata>
<CodesignProvision>******</CodesignProvision>
<CodesignKey></CodesignKey>
<IpaPackageName></IpaPackageName>
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
<MtouchHttpClientHandler>HttpClientHandler</MtouchHttpClientHandler>
</PropertyGroup>
I’ve tried to scrub my bin/obj folder restore nuget packages restart ide a number of time nonetheless no luck .
right here is MY VS particulars
Visible Studio Group 2022 for Mac
Model 17.6.12 (construct 410)
Set up UUID: 77a4961a-16b0-4d71-867b-366b473d86b3
Runtime
.NET 7.0.3 (64-bit)
Structure: Arm64
Microsoft.macOS.Sdk 13.1.1007; git-rev-head:8afca776a0a96613dfb7200e0917bb57f9ed5583; git-branch:launch/7.0.1xx-xcode14.2
Roslyn (Language Service)
4.6.0-3.23180.6+99e956e42697a6dd886d1e12478ea2b27cceacfa
NuGet
Model: 6.4.0.117
.NET SDK (Arm64)
SDK: /usr/native/share/dotnet/sdk/8.0.302/Sdks
SDK Variations:
8.0.302
7.0.316
6.0.422
MSBuild SDKs: /Functions/Visible Studio.app/Contents/MonoBundle/MSBuild/Present/bin/Sdks
.NET Runtime (Arm64)
Runtime: /usr/native/share/dotnet/dotnet
Runtime Variations:
8.0.6
7.0.19
6.0.30
Xamarin.Profiler
Model: 1.8.0.49
Location: /Functions/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater
Model: 11
Apple Developer Instruments
Xcode: 15.2 22503
Construct: 15C500b
Xamarin.Mac
Model: 9.3.0.23 Visible Studio Group
Hash: 9defd91b3
Department: xcode14.3
Construct date: 2023-10-23 16:14:59-0400
Xamarin.iOS
Model: 16.4.0.23 Visible Studio Group
Hash: 9defd91b3
Department: xcode14.3
Construct date: 2023-10-23 16:15:00-0400
Xamarin Designer
Model: 17.6.3.9
Hash: 2648399ae8
Department: remotes/origin/d17-6
Construct date: 2024-05-09 04:36:07 UTC
Xamarin.Android
Model: 13.2.2.0 (Visible Studio Group)
Commit: xamarin-android/d17-5/45b0e14
Android SDK: /Customers/ragib.noor/Library/Developer/Xamarin/android-sdk-macosx
Supported Android variations:
13.0 (API degree 33)
SDK Command-line Instruments Model: 7.0
SDK Platform Instruments Model: 34.0.3
SDK Construct Instruments Model: 32.0.0
Construct Data:
Mono: d9a6e87
Java.Interop: xamarin/java.interop/d17-5@149d70fe
SQLite: xamarin/sqlite/3.40.1@68c69d8
Xamarin.Android Instruments: xamarin/xamarin-android-tools/d17-5@ca1552d
Microsoft Construct of OpenJDK
Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk
11.0.16.1
Android Designer EPL code out there right here:
https://github.com/xamarin/AndroidDesigner.EPL
Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk
1.8.0.302
Android Designer EPL code out there right here:
https://github.com/xamarin/AndroidDesigner.EPL
Android SDK Supervisor
Model: 17.6.0.50
Hash: a715dca
Department: HEAD
Construct date: 2024-05-09 04:36:12 UTC
Android Gadget Supervisor
Model: 0.0.0.1309
Hash: 06e3e77
Department: HEAD
Construct date: 2024-05-09 04:36:12 UTC
Construct Data
Launch ID: 1706120410
Git revision: 2f8e0518dd80a933901821bac53f7398d4b61c0f
Construct date: 2024-05-09 04:34:23+00
Construct department: release-17.6
Construct lane: release-17.6
Working System
Mac OS X 14.5.0
Darwin 23.5.0 Darwin Kernel Model 23.5.0
Wed Might 1 20:17:33 PDT 2024
root:xnu-10063.121.3~5/RELEASE_ARM64_T6031 arm64
please information me what must examine to run this undertaking.
Notice: similar undertaking configuration runs on my intel mac and now I’m attempting to run on m3 mac