Clang++ when adding .Maui.Trial 6.1.0 and 6.2.0

2 Answers 73 Views
General Discussions
Chris
Top achievements
Rank 1
Iron
Chris asked on 26 Sep 2023, 08:08 PM

I am getting a clang ++ error when I add the Manu.Trial  version 6.1.0 and 6.2.0.

This occurs when using a simulator.  I am using a Macbook Pro, M2 Pro cpu.  It does not appear when running on hardware.

 

Any ideas on how to get this working?

 

Severity Code Description Project File Line Suppression State
Error clang++ exited with code 1:
ld: in /Users/userName/Library/Caches/Xamarin/mtbs/builds/MauiApp2/4cc154242c3d4d77ad8031d409c8191c8e21f5229295558069000613a59d123b/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a(TKChartAnnotation.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/userName/Library/Caches/Xamarin/mtbs/builds/MauiApp2/4cc154242c3d4d77ad8031d409c8191c8e21f5229295558069000613a59d123b/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a'
clang: error: linker command failed with exit code 1 (use -v to see invocation) MauiApp2 C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk\16.4.8825-net8-rc1\targets\Xamarin.Shared.Sdk.targets 1589

2 Answers, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 27 Sep 2023, 06:56 AM

Hello Chris,

This is logged here: https://feedback.telerik.com/maui/1622695-telerik-ui-for-net-maui-6-1-0-doesn-t-have-a-telerikui-a-file-slice-for-the-ios-arm64-simulator 

There is a workaround. Add this code in the .csproj file

<PropertyGroup Condition="'$(TargetFramework)'=='net7.0-ios'">
   <ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE>
</PropertyGroup>

Regards,
Didi
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
0
Chris
Top achievements
Rank 1
Iron
answered on 27 Sep 2023, 01:10 PM | edited on 28 Sep 2023, 12:40 PM

thanks this worked but with targeting .net 8

 

<PropertyGroup Condition="'$(TargetFramework)'=='net8.0-ios'">
<ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE>
</PropertyGroup>


Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Iron
Answers by
Didi
Telerik team
Chris
Top achievements
Rank 1
Iron
Share this question
or