Clang++ exited with code 1:

1 Answer 801 Views
Calendar
David
Top achievements
Rank 1
David asked on 27 Sep 2023, 03:30 PM

Hey there,

I am using Telerik UI for my MAUI mobile application.

The only component i am currentyl using is the RadCalendar at .NET MAUI Calendar Documentation - Getting Started - Telerik UI for .NET MAUI

Currently the android version works flawlessly, but when i try to run the simulator on IOS, the simulator crashes with this error; 

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

1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 27 Sep 2023, 04:23 PM

Hi David,

This is a known issue, you can track its progress 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 

Fortunately there's an easy workaround that enforces the compatible slice, add the following to your project's csproj:

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

Regards,
Lance | Manager Technical Support
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
Tags
Calendar
Asked by
David
Top achievements
Rank 1
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or