Skip to content

Conversation

xiaobailong24
Copy link
Contributor

Summary

When using lower Xcode version than minimum required by macOS, xcode-kotlin crashed as _LSOpenURLsWithCompletionHandler() failed for the application /Applications/Xcode.app with error -10664.

Fix

Fix XcodeHelper#openInBackground:

  1. realXcodePath: "${installation.path.value}/Contents/MacOS/Xcode".
  2. remove -a param of the open command.

Then usage:

./build/bin/macosArm64/debugExecutable/xcode-kotlin.kexe sync /Applications/Xcode.app

Pull Request Labels

  • has-reproduction
  • feature
  • blocking
  • good first review

…URLsWithCompletionHandler() failed for the application /Applications/Xcode.app with error -10664.
@samhill303 samhill303 requested a review from TadeasKriz January 14, 2025 15:07
@TadeasKriz
Copy link
Contributor

Hi @xiaobailong24, thanks for the contribution. While testing your solution, I found out that it actually launches macOS Terminal which then launches the binary. But since we only kill the Xcode, the terminal is left running. I'm trying to find a way around it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants