question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to build "xcrun exited with code 69" and "Class AppleTypeCRetimerRestoreInfoHelper is implemented in both"

See original GitHub issue

Description

I created a MAUI project on Windows machine. Now I’ve installed Visual Studio for Mac on a Macbook Pro M1 with all options enabled to install. After the installer was done it told me to install Xcode which I did. Then I tried to simple run my project it said:

please run:

dotnet workload install mac-ios
dotnet workload install mac-android
dotnet workload install mac-catalyst

Which is very weird because I installed all of them through the official VS 2022 Preview for Mac installer. There were NO .NET sdks installed on this machine before, its brand new. Anyway after I ran the three commands the issues were gone but when I tried to do a simple debug rebuild and it fails with:

xcrun exited with code 69 and Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib and /Library/Apple/System/Library/PrivateFrameworks/Versions/A/MobileDevice. One of the two will be used. Which one is undefined.

Like I said this is/was a brand new machine so its frustrating that running the official installer and debugging a simple project is impossible, like this has not been tested by someone. Any help is appreciated because all I want is to debug/build the iOS version on MacOS. For the rest I can fallback to a Windows machine.

//edit: I’ve now tried Visual studio Code instead of VS 2022 but this gives me the same error message when I run dotnet build -t:Run -f net6.0-ios

Steps to Reproduce

See above

Version with bug

Release Candidate 2 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

Visual Studio 2022 Preview for Mac (Macbook Pro m1)

Did you find any workaround?

No response

Relevant log output

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Symbaicommented, May 3, 2022

After watching plenty of youtube tutorials and reading guides on how to set it up I’ve figured out:

  1. Despise I’m using an ARM64 Mac, installing the ARM64 .NET SDK was a problem. I also had to install the x64 SDK
  2. Installing Xcode is not enough, it also needs to get started once and I needed to agree to the EULA

These two points are missing in the MAUI documentation and should definitely get added. After that these non-helpful error messages finally disappeared. Unfortunately now I’m stuck that as soon as I debug my app, it opens the iOS Simulator but VS 2022 says it cannot connect and the app in the iOS simulator crashes to home screen. If I open it in the iOS Simulator again it shows the splashscreen of the app but then all I got is a blank white screen on the simulated iphone. I don’t know why and I cannot debug either, on Android no problems. Remote debugging from Window to Mac doesn’t work either, I get a VS error giving me a link to a VS support ticket saying that the remote iOS Simulator is broken without ETA for a fix.

For a beginner with MAUI like me this is just a complex and frustrating experience. There isn’t much info about MAUI in the internet, mostly Xamarin (they all mention settings that do not exist in MAUI). But most guides or docs expect you to be either a mac expert or a xamarin expert because they are missing many steps in both directions. Please put more work into getting started with MAUI documentation and consider not everyone is coming from Xamarin or has developed on a Mac before.

Anyway this issue can possibly get closed.

0reactions
vipinraturi3112commented, Jan 21, 2023

In my case, I just needed to open XCode and accept the terms and conditions on my MAC. I have recently upgraded my MAC OS And this issue disappeared on next build. May be, it could be helpful for someone. thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native `RuntimeError: abort(Error: xcrun exited with ...
error code in console. Running this command with the suggested build with -s Assertions=1 reveals the following:.
Read more >
Class is implemented in both (...)
- I have a static OS X framework, let's call it MyFramework.framework. - This framework links against a custom library, libMyStaticLibrary that contains...
Read more >
Kotlin/Native: KonanExternalToolFailure „The /usr/bin/xcrun ...
KonanExternalToolFailure: The /usr/bin/xcrun command returned non-zero exit code: 72. output: at org.jetbrains.kotlin.konan.exec.Command.handleExitCode(
Read more >
Tests failing for `Writing tests for Platform` section
The tests from chapter 8, section Writing tests for Platform, are failing for me. When I run all the tests using the command...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found