We created a MAUI app using version .Net8.0. We are trying to debug/run the app by connecting Visual Studio to Mac, but we are encountering issues debugging the app. The pipeline is functioning as expected. Specifically, we're facing an issue with clang++
exiting with code 1, preventing deployment on the simulator.
Debug Configuration
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|iPhoneSimulator'"> <DebugType>full</DebugType> <Optimize>false</Optimize> <ErrorReport>prompt</ErrorReport> <RuntimeIdentifier>iossimulator-x64</RuntimeIdentifier> <WarningLevel>4</WarningLevel> <CodesignEntitlements>Platforms\iOS\Entitlements.plist</CodesignEntitlements> <ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE> <PlatformTarget>arm64</PlatformTarget> <CodesignKey>iPhone Distribution</CodesignKey> <IPhoneResourcePrefix>Platforms/iOS/Resources</IPhoneResourcePrefix>
</PropertyGroup>
Issue Details
Severity Code Description Project File Line Suppression State Error clang++ exited with code 1: ld: in /Users/sunil.ganpati.patil/Library/Caches/Xamarin/mtbs/builds/Edata/644f571749696dff332a5d8a11aeaf0707882e7d6ab1f076f5984e4e549fbb26/obj/Debug/net8.0-ios/ios-arm64/linker-cache/AppCenterCrashes.a(MSACErrorReport.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/sunil.ganpati.patil/Library/Caches/Xamarin/mtbs/builds/Test/644f571749696dff332a5d8a11aeaf0707882e7d6ab1f076f5984e4e549fbb26/obj/Debug/net8.0-ios/ios-arm64/linker-cache/AppCenterCrashes.a' clang: error: linker command failed with exit code 1 (use -v to see invocation) Test ) C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\17.2.8004\targets\Xamarin.Shared.Sdk.targets 1559