Skip to content
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

Support disabling mac catalyst #167

Closed
abarisain opened this issue Oct 9, 2019 · 13 comments
Closed

Support disabling mac catalyst #167

abarisain opened this issue Oct 9, 2019 · 13 comments

Comments

@abarisain
Copy link

Hello,

Our project supports Mac Catalyst. This requires 10.15, which Bitrise does not support yet: we have no issue with that as we're not interested in using this step to generate Catalyst builds.

Thing is, Xcode fails on 10.14 with the following:

❌  error: Building for Mac Catalyst requires macOS 10.15 or later. (in target 'Sample' from project 'Sample')

We've solved this by moving to dumb script phases that execute xcodebuild with "SUPPORTS_MACCATALYST=NO" in the arguments.

In "debug", this step allows to add extra arguments. Unfortunately they're added at the end of the command, while this needs to be a little bit earlier on.

This is why I'd like to request support to disable mac catalyst right in the step.

@abarisain
Copy link
Author

abarisain commented Oct 9, 2019

Scratch that, looks like just moving the argument doesn't work on a complex project (an app relying on frameworks and app extensions)

I still think it would be a nice option, but maybe it does not have its place in this step

@rivera-ernesto
Copy link

I would keep this open as it will break workflows for many.

@rivera-ernesto
Copy link

rivera-ernesto commented Nov 8, 2019

Also could you better describe your Bitrise workaround please?

@stgarrity
Copy link

👍 I'm running into the same problem ... has anyone already figured out a good fix?

@rismay
Copy link

rismay commented Jan 30, 2020

Running into the same issue.

@stgarrity
Copy link

@rismay fwiw @abarisain's solution worked for me (SUPPORTS_MACCATALYST=NO in build flags) even with frameworks, although we don't currently use extensions. Bitrise support told me it's on their list but no ETA yet :)

@abarisain
Copy link
Author

FYI I had problems with this for some reason, and simply moved back to running a shell script calling xcodebuild

@karapigeon
Copy link

karapigeon commented Feb 20, 2020

Hey folks! We've released a new Stack that runs Xcode 11.4.x on macOS 10.15.3. Please don't hesitate to open a new issue if you have any problems or questions about it. https://github.com/bitrise-io/bitrise.io/blob/master/system_reports/osx-xcode-11.4.x.log

@gabors
Copy link

gabors commented Apr 1, 2020

Hi @non-binary

How can I build the Mac catalyst version of the iOS app in bitrise? Using the Xcode Archive & Export for iOS currently for iOS and tvOS projects.

@karapigeon karapigeon reopened this Apr 13, 2020
@karapigeon
Copy link

The step's Additional options for xcodebuild call input can be used to pass options to the xcodebuild command call, like: SUPPORTS_MACCATALYST=NO.

We are aware of the issue and we have a ticket in our current sprint to resolve the issue for this step. The sprint should end Apr. 15.

We also have an investigation task in our backlog to fully revise the Catalyst support.

Setting the SUPPORTS_MACCATALYST=NO as Additional options for xcodebuild call input most likely solves the issue and the step will build the iOS part of the project

Unfortunately the mac version of the step: https://github.com/bitrise-steplib/steps-xcode-archive-mac/blob/master/step.yml has no Additional options for xcodebuild call input, so macOS part of the project can be built only using a custom script step

@gabors
Copy link

gabors commented Apr 14, 2020

@non-binary Thank you so much, would really appreciate if we could automate CI for our Catalyst apps using bitrise!
If possible also consider the option to upload to Apple for notarization.

@Szabadember
Copy link
Contributor

I am happy to announce that version 2.8.0 was released which fixes Mac Catalyst project support. We appreciate your patience and would love to hear back if this really solved your problem.

@Szabadember
Copy link
Contributor

Please open a new ticket for feedback about 2.8.0 issues.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants