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

fix(create): Ensure unix paths in Xcode project file #1312

Merged
merged 1 commit into from
May 17, 2023

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Apr 15, 2023

Platforms affected

iOS

Motivation and Context

Cordova-iOS requires macOS for building and deploying, but it seems to be a fairly common problem that people generate the iOS project files on Windows (which isn't technically supported, but appears to work) and then Xcode can't open it on macOS because of a bad path separator.

Description

The path separator problem is fixable, so let's at least generate a valid Xcode project.

This does not claim to add support for using Cordova-iOS on Windows.

Closes #971.
Closes #1016.
Closes #1084.

Testing

Split out tests for the created project into a test case that runs on all platforms, while keeping the tests that create and build only running on macOS.

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)

Cordova-iOS requires macOS for building and deploying, but it seems to
be a fairly common problem that people generate the iOS project files on
Windows (which isn't technically supported, but _appears_ to work) and
then Xcode can't open it on macOS because of a bad path separator.

The path separator problem is fixable, so let's at least generate a
valid Xcode project.

This does *not* claim to add support for using Cordova-iOS on Windows.

Closes apache#971.
Closes apache#1016.
Closes apache#1084.
@dpogue dpogue added this to the 7.0.0 milestone Apr 15, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1312 (cfbdc3e) into master (3d6c71a) will decrease coverage by 0.04%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master    #1312      +/-   ##
==========================================
- Coverage   78.48%   78.45%   -0.04%     
==========================================
  Files          15       15              
  Lines        1780     1782       +2     
==========================================
+ Hits         1397     1398       +1     
- Misses        383      384       +1     
Impacted Files Coverage Δ
lib/create.js 94.59% <66.66%> (-1.24%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dpogue dpogue merged commit 8d5a81b into apache:master May 17, 2023
6 checks passed
@dpogue dpogue deleted the windows-project branch May 17, 2023 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment