cirruslabs / tart

macOS and Linux VMs on Apple Silicon to use in CI and other automations
https://tart.run
Other
3.67k stars 103 forks source link

No able to sign in with Apple ID #722

Open samirski opened 5 months ago

samirski commented 5 months ago

Recently I've come across this solution and I'm very excited as it opens up a lot of opportunities which were not available before. However I'm not able to sign in using apple id, getting verification failed message. I've tried using my existing apple id and created a new one (on a separate physical machine) still same result. To be able to download software from apple store logic is required and I'm not sure if this is something on my end or an expected behavior.

I'm using ghcr.io/cirruslabs/macos-sonoma-base:latest on MacBook Pro M1 Pro

Thanks!

fkorotkov commented 5 months ago

Unfortunately it's not supported because of limitation form Apple.

samirski commented 5 months ago

@fkorotkov thanks for a quick response. Looks like I'd need to find a workaround for that

kingo132 commented 5 months ago

Unfortunately it's not supported because of limitation form Apple.

Could you explain the reason a little bit more? so I can try to find if there is any way workaround

fkorotkov commented 5 months ago

@kingo132 this is a limitation of Virtualization.Framework. There is some discussion here.

thermoworker commented 5 months ago

I'm running into this same issue. I understand the limitation is imposed by Apple. But maybe I could explain my use case and see if anyone from the community has experience that might help me.

I think I've got everything set up within the VM to be able to properly build our application in Xcode except, the one thing holding me back is being able to configure the Signing & Capabilities section. These permissions are tied to my Apple ID. So, without this ability, I don't see how I can build/deploy our application to the App Store.

Does anyone know a work around for this problem? I know Apple isn't allowing signing into Apple ID from within the Virtualization Framework, but maybe someone has experience being able to configure the "Signing & Capabilities" section without an Apple ID?

fkorotkov commented 5 months ago

@thermoworker not sure if it's the same, but Tart itself uses elevated entitlements and we had to manually add our certificate to KeyChain.

Building and releasing images should be possible without login in with your Apple ID on macOS level.

uttie-huntress commented 2 months ago

Hey @thermoworker! One option that might work for you is to Import/Export "Apple ID and codesigning assets" as a ".developerprofile" file. Essentially, you'd export these from a mac that you can sign in with AppleID, move the file to the VM and Import them. This should effectively work around having to sign in with an AppleID.

Hope that works for your needs!

Ref: Transfer developer account to a new computer?

williamtheaker commented 1 month ago

Using iCloud with macOS virtual machines

fkorotkov commented 1 month ago

Yes! 👏 It doesn't work for the current seed but will be enabled in the next ones. Once we can verify it's working we'll close the issue as completed.