{"id":22656703,"url":"https://github.com/scior/danger-xcode_warnings","last_synced_at":"2025-04-12T04:53:43.147Z","repository":{"id":35012287,"uuid":"196158025","full_name":"Scior/danger-xcode_warnings","owner":"Scior","description":"📡Danger plugin for analyzing the result from xcodebuild","archived":false,"fork":false,"pushed_at":"2023-01-25T03:23:04.000Z","size":342,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T04:53:34.449Z","etag":null,"topics":["danger","danger-plugin","xcode","xcodebuild"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Scior.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-10T07:48:17.000Z","updated_at":"2022-10-18T10:35:13.000Z","dependencies_parsed_at":"2023-02-14T04:16:09.267Z","dependency_job_id":null,"html_url":"https://github.com/Scior/danger-xcode_warnings","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scior%2Fdanger-xcode_warnings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scior%2Fdanger-xcode_warnings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scior%2Fdanger-xcode_warnings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Scior%2Fdanger-xcode_warnings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Scior","download_url":"https://codeload.github.com/Scior/danger-xcode_warnings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248519472,"owners_count":21117757,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["danger","danger-plugin","xcode","xcodebuild"],"created_at":"2024-12-09T10:15:45.688Z","updated_at":"2025-04-12T04:53:43.125Z","avatar_url":"https://github.com/Scior.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# danger-xcode_warnings\n\n[![Gem Version](https://badge.fury.io/rb/danger-xcode_warnings.svg)](https://badge.fury.io/rb/danger-xcode_warnings)\n![Build Status](https://github.com/Scior/danger-xcode_warnings/workflows/Ruby%20Gem/badge.svg)\n[![version](https://img.shields.io/badge/Xcode-11-blue.svg)](https://developer.apple.com/xcode/)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA Danger plugin to format and show warnings from `xcodebuild`.\n\n![Sample](doc/sample.png)\n\n## Features\n\n- Extract the compiler and linker warnings from the build log and format them for Danger\n  - Both `xcodebuild` and `xcpretty` format are supported\n- Gather the build timing summary and show\n\n## Installation\n\n```sh\ngem install danger-xcode_warnings\n```\n\nOr using Bundler,\n\n```ruby\ngem 'danger-xcode_warnings'\n```\n\n## Usage\n\n### With xcodebuild\n\nFirstly, collect the log from `xcodebuild`.\n\n```sh\nxcodebuild clean build -workspace ... \u003e build.log\n# If you want to show the log with xcpretty\nxcodebuild clean build -workspace ... | tee build.log | xcpretty\n```\n\nAnd then, call `analyze_file` method in your `Dangerfile` to analyze the build log,\n\n```ruby\nxcode_warnings.analyze_file 'build.log'\n```\n\nwith some shell scripts with your CI, like:\n\n```sh\nbundle install\nbundle exec danger\n```\n\n### With xcpretty\n\nIf you want to analyze the xcpretty log, you MUST set the `use_xcpretty` flag in your `Dangerfile`:\n\n```ruby\nxcode_warnings.use_xcpretty = true\nxcode_warnings.analyze_file 'build.log'\n```\n\nYour build script for CI should be like,\n\n```sh\nxcodebuild clean build -workspace ... | xcpretty \u003e build.log\n```\n\n### Show linker warnings\n\nTo show linker warnings, set the `show_linker_warnings` to `true` before analyzing the log:\n\n```ruby\nxcode_warnings.show_linker_warnings = true\nxcode_warnings.analyze_file 'build.log'\n```\n\n### Gathering build timing sumamry\n\nTo gather the build timing summary, you have to add `-showBuildTimingSummary` option to your build script:\n\n```sh\nxcodebuild clean build -workspace ... -showBuildTimingSummary \u003e build.log\n```\n\nThen, set the `build_timing_summary` flag to `true`.\n\n```ruby\nxcode_warnings.build_timing_summary = true\nxcode_warnings.analyze_file 'build.log'\n```\n\n### See also\n\n`RubyDoc` for this plugin is here:\n\n- \u003chttps://www.rubydoc.info/gems/danger-xcode_warnings\u003e\n\n## Development\n\n1. Clone this repo\n2. Run `bundle install` to setup dependencies.\n3. Run `bundle exec rake spec` to run the tests.\n4. Use `bundle exec guard` to automatically have tests run as you make changes.\n5. Make your changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscior%2Fdanger-xcode_warnings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscior%2Fdanger-xcode_warnings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscior%2Fdanger-xcode_warnings/lists"}