vinivendra / Gryphon

The Swift to Kotlin translator.
https://vinivendra.github.io/Gryphon/
Other
609 stars 46 forks source link

xcodebuild not found in docker #130

Closed rizkyyangpalsu closed 1 year ago

rizkyyangpalsu commented 1 year ago

I've been using Gryphon using Docker. But I have error image

There is have solution for this?

vinivendra commented 1 year ago

Hey @rizkyyangpalsu, the Docker image is based on Ubuntu, which doesn’t have Xcode (or xcodebuild). What command did you run to get this error? If you were trying to do something that didn’t depend on Xcode, please let us know.

rizkyyangpalsu commented 1 year ago

I have modified the docker using docker compose and then I run the gryphon to init the existing project like this:

image

I don't have any idea for this. Thank you

vinivendra commented 1 year ago

Yeah, thats the problem. You’re trying to initialize an Xcode project, which requires Xcode’s tools, in a Ubuntu-based Docker image (which doesn’t have Xcode tools since there’s no Xcode on Ubuntu). Your best bet is to either translate your files manually via command line (without Xcode integration) or to help us make Gryphon support Swift 5.8 (#127) so you can use Xcode tools on macOS.

rizkyyangpalsu commented 1 year ago

Okay thank you for your explanation