{"id":17090911,"url":"https://github.com/phimage/xcodeprojkit","last_synced_at":"2026-03-09T14:33:10.496Z","repository":{"id":56928739,"uuid":"99158756","full_name":"phimage/XcodeProjKit","owner":"phimage","description":"Parse project file and write it to open step format.","archived":false,"fork":false,"pushed_at":"2022-11-11T22:32:02.000Z","size":350,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-05-01T21:11:43.331Z","etag":null,"topics":["openstep","parser","plist","swift","xcode","xcodeproj","xcodeproject"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/phimage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"phimage","custom":"https://www.paypal.com/paypalme2/ericphimage"}},"created_at":"2017-08-02T20:36:59.000Z","updated_at":"2024-03-12T05:01:02.000Z","dependencies_parsed_at":"2022-08-21T05:50:56.366Z","dependency_job_id":null,"html_url":"https://github.com/phimage/XcodeProjKit","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FXcodeProjKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FXcodeProjKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FXcodeProjKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phimage%2FXcodeProjKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phimage","download_url":"https://codeload.github.com/phimage/XcodeProjKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248639481,"owners_count":21137849,"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":["openstep","parser","plist","swift","xcode","xcodeproj","xcodeproject"],"created_at":"2024-10-14T13:57:05.350Z","updated_at":"2026-03-09T14:33:10.462Z","avatar_url":"https://github.com/phimage.png","language":"Swift","readme":"# XcodeProjKit\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://mit-license.org)\n[![Platform](http://img.shields.io/badge/platform-macOS_Linux-lightgrey.svg?style=flat)](https://developer.apple.com/resources/)\n[![Language](http://img.shields.io/badge/language-swift-orange.svg?style=flat)](https://developer.apple.com/swift)\n[![Swift](https://github.com/phimage/XcodeProjKit/actions/workflows/swift.yml/badge.svg)](https://github.com/phimage/XcodeProjKit/actions/workflows/swift.yml)\n[![Sponsor](https://img.shields.io/badge/Sponsor-%F0%9F%A7%A1-white.svg?style=flat)](https://github.com/sponsors/phimage)\n\nParse project file and write it to open step format.\n\nWork also on simple plist in xml, binary or json format.\n\n## Project description\n\nPlist files could be in binary, xml or open step format. All could be parsed natively using `PropertyListSerialization`.\n\n:warning: But you cannot be written back into open step format.\n\nThis project aim to\n- check xcode project file. Error could occurs after merging file using git.\n- rewrite the file into open step format, if you edit it using some command line like [plutil](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/plutil.1.html).\n\nAlternatively you can use apple private framework DVTFoundation, like [Xcodeproj](https://github.com/CocoaPods/Xcodeproj) do.\n\n## Usage\n\n### Read\n\n```swift\nlet xcodeProj = try XcodeProj(url: url)\nlet project: PBXProject = xcodeProj.project\n\nlet mainGroup: PBXGroup? = project.mainGroup\nlet targets: [PBXNativeTarget] = project.targets\nlet buildConfigurationList: XCConfigurationList? = project.buildConfigurationList\n```\n\n### Write\n\n```swift\ntry xcodeProj.write(to: newURL, format: .openStep)\n```\n\n## Setup\n\n### Using Swift Package Manager\n\n```swift\nlet package = Package(\n    name: \"MyProject\",\n    dependencies: [\"\n        .package(url: \"https://github.com/phimage/XcodeProjKit.git\", from: \"3.0.0\"),\n        ],\n    targets: [\n        .target(\n            name: \"MyProject\",\n            dependencies: [\"XcodeProjKit\"]),\n        ]\n)\n```\n\n### Using Carthage\n\nCarthage is a decentralized dependency manager for Objective-C and Swift.\n\nAdd the project to your Cartfile.\n```\ngithub \"phimage/XcodeProjKit\"\n```\nRun carthage update and follow the additional steps in order to add MomXML to your project.\n\n### Using Cocoapod\n\nAdd the project to your Podfile.\n```\npod \"XcodeProjKit\"\n```\n\n### References\n\n- http://danwright.info/blog/2010/10/xcode-pbxproject-files/\n- http://www.monobjc.net/xcode-project-file-format.html\n- https://github.com/apple/swift-package-manager/tree/master/Sources/Xcodeproj\n\n### Thanks\n\n- @Karumi for the test files : https://github.com/Karumi/Kin\n- @allu22 for the PR\n\n### Used by\n\n- [iblinter](https://github.com/IBDecodable/IBLinter) a command line tool to check your storyboards\n- [plistconvert](https://github.com/phimage/plistconvert) a command line tool to convert plist and pbxproj to different supported format (work on linux and macOS)\n- [xprojup](https://github.com/phimage/xprojup) a command line tool to update xcode proj to latest version (to avoid warnings)\n- [punic](https://github.com/phimage/punic) a command line tool too remove the usage of binary frameworks introduced by [Carthage](https://github.com/Carthage/Carthage) and to go back to developpement with sources.\n\n### Contribute\n- Fork\n- Make PR\n","funding_links":["https://github.com/sponsors/phimage","https://www.paypal.com/paypalme2/ericphimage"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphimage%2Fxcodeprojkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphimage%2Fxcodeprojkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphimage%2Fxcodeprojkit/lists"}