{"id":18555447,"url":"https://github.com/k-lpmg/xcode-build-script-for-carthage","last_synced_at":"2025-07-26T00:38:41.456Z","repository":{"id":160297391,"uuid":"134530912","full_name":"k-lpmg/xcode-build-script-for-carthage","owner":"k-lpmg","description":"If you're using Carthage, you can easily set up Framework dependency in XCode through this script","archived":false,"fork":false,"pushed_at":"2019-10-13T05:11:32.000Z","size":29,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T16:13:08.007Z","etag":null,"topics":["carthage","dependency","framework","ios","ruby","script","xcode"],"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/k-lpmg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-23T07:29:21.000Z","updated_at":"2025-02-19T11:53:24.000Z","dependencies_parsed_at":"2023-06-01T21:15:44.758Z","dependency_job_id":null,"html_url":"https://github.com/k-lpmg/xcode-build-script-for-carthage","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k-lpmg/xcode-build-script-for-carthage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2Fxcode-build-script-for-carthage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2Fxcode-build-script-for-carthage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2Fxcode-build-script-for-carthage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2Fxcode-build-script-for-carthage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k-lpmg","download_url":"https://codeload.github.com/k-lpmg/xcode-build-script-for-carthage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k-lpmg%2Fxcode-build-script-for-carthage/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267093920,"owners_count":24034958,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["carthage","dependency","framework","ios","ruby","script","xcode"],"created_at":"2024-11-06T21:26:41.978Z","updated_at":"2025-07-26T00:38:41.403Z","avatar_url":"https://github.com/k-lpmg.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XCode Build Script for Carthage\n[![GitHub license](https://img.shields.io/badge/license-MIT-lightgrey.svg?style=flat)](https://raw.githubusercontent.com/k-lpmg/RealmWrapper/master/LICENSE)\n\n\nIf you're using [Carthage](https://github.com/Carthage/Carthage) as the library dependency manager, you must manually configure the framework path to Build phases and Build settings in XCode after run 'carthage update'. However, using this script after run 'carthage update' eliminates the need to manually configure the framework path.\n\nAfter `carthage update`, this script add a `run script` for [Carthage](https://github.com/Carthage/Carthage) to Build Phases, set up `frameworks dependency` and add `framework search paths` to Build Settings\n\n- [Getting Started](#getting-started)\n- [Example](#example)\n\n\n## Getting Started\n\n#### This script uses [Xcodeproj](https://github.com/CocoaPods/Xcodeproj). Install it by performing the following command:\n```console\n$ [sudo] gem install xcodeproj\n```\n\n#### 1. To use the script, open the ruby file (Source/carthage_build_setup.rb)\n\u003e Enter the target of your project in @scriptTargets you want to apply the script to.\n```ruby\n# Constants\n@scriptTargets = []\n```\n\u003e Enter the path to your project.\n```ruby\n# Constants\nCARTHAGE_FRAMEWORK_PATH = \"YOUR_CARTHAGE_FOLDER_PATH/Carthage/Build/iOS\"\n\n# Variables\n@project = Xcodeproj::Project.open\"YOUR_PROJECT_PATH/YOUR_PROJECT_NAME.xcodeproj\"\n```\n\n#### 2. Move the script file to your project path.\n\n#### 3. Run\n```console\n$ carthage update\n$ ruby carthage_build_setup.rb\n```\n\n#### 4. Press check, your project `Build Phases`, `Frameworks` and `Framework Search Paths` in Build Settings\n\n\n## Example\n\n#### Building Project\n\n1. Install Carthage libraries.\n    ```console\n    $ carthage update\n    $ cd Scripts\n    $ ruby carthage_build_phase_setup.rb\n    ```\n      or\n    ```console\n    $ cd Scripts\n    $ sh carthage_update.sh\n    ```\n\n2. Open **`CarthageScriptExample.xcodeproj`** file.\n3. Press \u003ckbd\u003e⌘\u003c/kbd\u003e + \u003ckbd\u003eB\u003c/kbd\u003e to build the project.\n4. Press check, the build is succeeded\n5. Press check, your project Build Phases and Framework Search Paths in Build Settings\n\n**`Script Success`**\n\n![script-success](https://user-images.githubusercontent.com/15151687/41411863-3951df72-7019-11e8-8271-9c4c9842f80a.png)\n\n**`Frameworks Dependency`**\n\n![project-frameworks](https://user-images.githubusercontent.com/15151687/66711251-31b71b00-edc3-11e9-864f-c85fd9be1c38.png)\n\n**`Build Phases`**\n\n![build-phases](https://user-images.githubusercontent.com/15151687/66711252-3380de80-edc3-11e9-8ffb-ae31f4819e03.png)\n\n\n## LICENSE\n\nThese works are available under the MIT license. See the [LICENSE][license] file\nfor more info.\n\n[ruby]: http://www.ruby-lang.org/en/\n[license]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-lpmg%2Fxcode-build-script-for-carthage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk-lpmg%2Fxcode-build-script-for-carthage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk-lpmg%2Fxcode-build-script-for-carthage/lists"}