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

Use -json xcodebuild option when extracting resolved settings #65

Conversation

marciniwanicki
Copy link
Contributor

Issue number of the reported bug or feature request: #63

Describe your changes
Use -json parameter for xcodebuild -showBuildSettings command to simplify the output parsing.

Testing performed

  • Ran xcdiff -g resolved_settings on projects with different settings, verify the diff output is correct
  • Ran xcdiff -g resolved_settings on projects with the same settings, ensure no differences are found

@codecov
Copy link

codecov bot commented Sep 30, 2020

Codecov Report

Merging #65 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #65   +/-   ##
=======================================
  Coverage   96.18%   96.18%           
=======================================
  Files          44       44           
  Lines        1677     1679    +2     
=======================================
+ Hits         1613     1615    +2     
  Misses         64       64           
Impacted Files Coverage Δ
...ffCore/Comparator/ResolvedSettingsComparator.swift 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3391eb4...43669dc. Read the comment docs.

kwridan
kwridan previously approved these changes Oct 12, 2020
Copy link
Contributor

@kwridan kwridan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! thanks @marciniwanicki

As an enhancement we could look into suppressing some of the xcodebuild output

e.g.

$ xcdff -g resolved_settings
2020-10-12 07:53:12.485 xcodebuild[74228:33668656] Unknown simulator cpu type (16777228)
2020-10-12 07:53:12.486 xcodebuild[74228:33668656] Unknown simulator cpu type (16777228)
2020-10-12 07:53:13.433 xcodebuild[74238:33668904] Unknown simulator cpu type (16777228)
...

Package.resolved Outdated
Comment on lines 45 to 55
"revision": "81bb2bb333eafa68f8ecd8187a4bb56d51e78e97",
"version": "7.14.0"
}
},
{
"package": "XcodeProjCExt",
"repositoryURL": "https://github.com/tuist/XcodeProjCExt",
"state": {
"branch": null,
"revision": "21a510c225ff2bc83d5920a21d902af4b1e7e218",
"version": "0.1.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: latest master already has this

Marcin Iwanicki added 2 commits October 16, 2020 08:02
Signed-off-by: Marcin Iwanicki <marcin.iwanicki@appliwings.com>
Signed-off-by: Marcin Iwanicki <marcin.iwanicki@appliwings.com>
@marciniwanicki marciniwanicki force-pushed the feature/63-use-xcodebuild-showbuildsettings-with-json-parameter branch from 5fd54d2 to 43669dc Compare October 16, 2020 07:03
@marciniwanicki marciniwanicki merged commit 21a15b0 into bloomberg:master Oct 16, 2020
@marciniwanicki marciniwanicki deleted the feature/63-use-xcodebuild-showbuildsettings-with-json-parameter branch October 16, 2020 08:14
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.

2 participants