Can't run ios MAUI project in iOS emulator: clang++ exited with code 1

1 Answer 203 Views
General Discussions
Rafael
Top achievements
Rank 1
Iron
Rafael asked on 16 Jan 2024, 09:30 PM

 

I'm trying to build a donet maui app but when it try to run the project in ios emulator i get this error, i don't know what to do (only happens for emulator, can run the project to ios devices)

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : clang++ exited with code 1: [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : ld: warning: ignoring duplicate libraries: '-lSystem.IO.Compression.Native', '-lSystem.Native', '-lSystem.Net.Security.Native', '-lSystem.Security.Cryptography.Native.Apple', '-lc++', '-lmono-component-debugger', '-lmono-component-diagnostics_tracing', '-lmono-component-hot_reload', '-lmonosgen-2.0', '-lxamarin-dotnet-debug', '-lz' [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : ld: building for 'iOS-simulator', but linking in object file (/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/obj/Debug/net7.0-ios/iossimulator-arm64/linker-cache/TelerikUI.a[arm64][2](TKChartAnnotation.o)) built for 'iOS' [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7125/targets/Xamarin.Shared.Sdk.targets(1276,3): error : clang: error: linker command failed with exit code 1 (use -v to see invocation) [/Users/carminamoreno/Documents/LosAlamosMAUI/Los Alamos MAUI/AppPedidosMobile/AppPedidosMobile.csproj::TargetFramework=net7.0-ios]

1 Answer, 1 is accepted

Sort by
0
Accepted
Didi
Telerik team
answered on 17 Jan 2024, 06:06 AM

Hi Rafael,

The behavior you reported looks similar to this issue: https://feedback.telerik.com/maui/1622695-clang-exited-with-code-1-error-in-telerikui-a-when-building-for-ios-arm64-simulator The issue is fixed in Telerik MAUI 6.5.0 version. Let me know what is the version you use? 

If you use version before 6.5.0, there are workarounds in the link I shared.

Regards,
Didi
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

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