-
-
Notifications
You must be signed in to change notification settings - Fork 540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix supported platforms #3990
Fix supported platforms #3990
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this @orbitekk 🎉
You are right it seems Xcode by default omits this specific build setting and infers by the current SDK so there could be some merit to removing it.
It would be helpful to add a sample fixture in projects/tuist/fixtures
that contains a simple catalyst app to help show case the issue you ran into - looking there I see we don't have any already 😅
I had a quick check locally and seems even when the supported platform is set to iOS we're still able to build, run and archive for Mac destination (provided Mac catalyst option is checked).
supported platform omitted | supported platform iOS | supported platform iOS + macOS |
---|---|---|
The catalyst destination doesn't appear unless macOS
is explicitly added to the list of supported platforms. My understanding of those destinations used to be
- Mac: macOS application
- Mac (Catalyst): iPad app with catalyst enabled
Though now I'm not so sure, as I'm able to run a catalyst app using the Mac destination 🤔 - do you have any further insights on this?
Lastly, it seems some of the acceptance tests are failing which may indicate this causes a regression to some of the use cases 😞 - haven't had a chance to dig further into those yet but will post back if I uncover anything.
thanks again!
Thank you for your reply. As far as I know Apple recommends archiving projects using "generic" destinations (in this case I have prepared sample project that shows you my problem (macos platform has beed added to Acceptance tests are failing - that's true. I don't know why and it is still under investigation. I think I need help with that. It's not that easy because I don't know Ruby very well. |
You don't need to know Ruby to investigate this. Just look at the test output, either on CI here or run locally. There's one failing test, the second one. It's using the So you can go to that fixture and run |
When I run the tests using
When I try to run |
That's strange. Since the acceptance test is failing, I'm guessing there's some issue with your environment. Are you sure the tuist cache is clean and the binary you're using was compiled using the current branch? (For the latter, I recommend using |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for investigating and resolving the issues @orbitekk
Resolves #3989
Request for comments document (if applies):
Short description 📝
It is not possible to archive iOS project for Mac Catalyst.
Any Mac (Mac Catalyst)
destination is missing becauseSUPPORTED_PLATFORMS
is set toiOS
.I have removed the
SUPPORTED_PLATFORM
setting.How to test the changes locally 🧐
To test this feature you need to create a project for iOS like below:
Checklist ✅
CHANGELOG.md
has been updated to reflect the changes. In case of a breaking change, it's been flagged as such.TuistGraph.Target
, theConstants.cacheVersion
has been updated.