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

WIP: Better Catalyst build support #1313

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Apr 16, 2023

Platforms affected

iOS, macOS

Motivation and Context

With the deprecation of cordova-osx and the availability of Catalyst to deploy iOS apps on macOS as their own app bundles, we should support targeting Catalyst builds.

Description

After the work in #1310 caused the build output folder to be named based on the platform, I realized this actually solved one of the remaining questions around where to put Catalyst output files... now they end up in build/Debug-maccatalyst or build/Release-maccatalyst

We detect if we are building for Catalyst (as opposed to iOS Device vs iOS Simulator) by the --target=mac option.

Testing

cordova build ios --target=mac works
cordova run ios --target=mac works

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • I've updated the documentation if necessary

@codecov-commenter
Copy link

codecov-commenter commented Apr 16, 2023

Codecov Report

Attention: Patch coverage is 23.33333% with 23 lines in your changes are missing coverage. Please review.

Project coverage is 77.93%. Comparing base (f7e2953) to head (368f216).

Files Patch % Lines
lib/run.js 5.26% 18 Missing ⚠️
lib/build.js 54.54% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1313      +/-   ##
==========================================
- Coverage   78.35%   77.93%   -0.43%     
==========================================
  Files          16       16              
  Lines        1825     1840      +15     
==========================================
+ Hits         1430     1434       +4     
- Misses        395      406      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dpogue dpogue added this to the 7.1.0 milestone Jun 6, 2023
dpogue and others added 3 commits March 29, 2024 00:43
`cordova build ios --device --target=mac ...`

Output is to `build/Debug-maccatalyst`

No support for `cordova run`
No support for code signing(?)
Xcode warns that only one can be enabled at a time, so we need to pick
one, and Catalyst seems like the better option for a proper macOS app
experience.
@dpogue dpogue changed the title VERY WIP: Better Catalyst build support WIP: Better Catalyst build support Mar 29, 2024
@dpogue dpogue modified the milestones: 7.1.0, 8.0.0 Mar 29, 2024
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.

None yet

2 participants