Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

📝 Read, update and write your Xcode projects

License

NotificationsYou must be signed in to change notification settings

fxnai/XcodeProj

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

All Contributors

Swift Package ManagerReleaseCode CoverageLicense

XcodeProj is a library written in Swift for parsing and working with Xcode projects. It's heavily inspired byCocoaPods XcodeProj andxcode.


Projects Using XcodeProj

ProjectRepository
ProjLintgithub.com/JamitLabs/ProjLint
rules_xcodeprojgithub.com/buildbuddy-io/rules_xcodeproj
Rugbygithub.com/swiftyfinch/Rugby
Sourcerygithub.com/krzysztofzablocki/Sourcery
Tuistgithub.com/tuist/tuist
XcodeGengithub.com/yonaskolb/XcodeGen
xspmgitlab.com/Pyroh/xspm
Privacy Manifestgithub.com/stelabouras/privacy-manifest
Functiongithub.com/fxnai/fxnios

If you are also leveraging XcodeProj in your project, feel free to open a PR to include it in the list above.

Installation

Swift Package Manager

Add the dependency in yourPackage.swift file:

letpackage=Package(    name:"myproject",    dependencies:[.package(url:"https://github.com/tuist/XcodeProj.git",.upToNextMajor(from:"8.12.0")),],    targets:[.target(            name:"myproject",            dependencies:["XcodeProj"]),])

Scripting

Usingswift-sh you can automate project-tasks using scripts, for example wecan make a script that keeps a project’s version key in sync with the currentgit tag that represents the project’s version:

#!/usr/bin/swift shimport Foundationimport XcodeProj  // @tuist ~> 8.8.0import PathKitguardCommandLine.arguments.count==3else{letarg0=Path(CommandLine.arguments[0]).lastComponentfputs("usage:\(arg0) <project> <new-version>\n", stderr)exit(1)}letprojectPath=Path(CommandLine.arguments[1])letnewVersion=CommandLine.arguments[2]letxcodeproj=tryXcodeProj(path: projectPath)letkey="CURRENT_PROJECT_VERSION"forconfin xcodeproj.pbxproj.buildConfigurationswhere conf.buildSettings[key]!=nil{    conf.buildSettings[key]= newVersion}try xcodeproj.write(path: projectPath)

You could then store this in your repository, for example atscripts/set-project-version and then run it:

$ scripts/set-project-version ./App.xcodeproj 1.2.3$ git add App.xcodeproj$ git commit -m"Bump version"$ git tag 1.2.3

Future adaption could easily include determining the version and bumping itautomatically. If so, we recommend using a library that provides aVersionobject.

References 📚

Contributing

  1. Git clone the repositorygit@github.com:tuist/xcodeproj.git.
  2. OpenPackage.swift with Xcode.

License

XcodeProj is released under the MIT license.See LICENSE for details.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Joseph Colicchio
Joseph Colicchio

🤔
deatondg
deatondg

🤔
Dan Fleming
Dan Fleming

💻
Sascha Schwabbauer
Sascha Schwabbauer

🤔
Marcin Iwanicki
Marcin Iwanicki

🚧
Adam Khazi
Adam Khazi

🚧
Elliott Williams
Elliott Williams

💻
Muukii
Muukii

🖋
Yuya Oka
Yuya Oka

💻
Keith Smiley
Keith Smiley

🖋
Ian Leitch
Ian Leitch

💻
Daniil Subbotin
Daniil Subbotin

💻
Florentin Bekier
Florentin Bekier

💻
Vadim Smal
Vadim Smal

🐛
freddi(Yuki Aki)
freddi(Yuki Aki)

💻
Kristopher Jackson
Kristopher Jackson

💻
Jake Prickett
Jake Prickett

💻
Jake Adams
Jake Adams

💻
matsuji
matsuji

💻
Bogdan Belogurov
Bogdan Belogurov

💻
Chuck Grindel
Chuck Grindel

💻
Michael McGuire
Michael McGuire

💻
C-凡
C-凡

💻
Maxwell Elliott
Maxwell Elliott

💻
Brentley Jones
Brentley Jones

💻
Teameh
Teameh

💻
Johannes Ebeling
Johannes Ebeling

💻
baegteun
baegteun

📖
Alex Kovács
Alex Kovács

📖
Christoffer Winterkvist
Christoffer Winterkvist

💻
Timothy Costa
Timothy Costa

💻
Mary
Mary

💻
Md. Ibrahim Hassan
Md. Ibrahim Hassan

💻
tatagrigory
tatagrigory

💻
Ruslan Alikhamov
Ruslan Alikhamov

💻
Ladislas de Toldi
Ladislas de Toldi

💻
Matt Massicotte
Matt Massicotte

💻
Артем Ворхлик
Артем Ворхлик

💻
Jaewon-Yun
Jaewon-Yun

💻
Mike Gerasymenko
Mike Gerasymenko

💻
Filip Racki
Filip Racki

💻

This project follows theall-contributors specification. Contributions of any kind welcome!

About

📝 Read, update and write your Xcode projects

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift99.4%
  • Other0.6%

[8]ページ先頭

©2009-2025 Movatter.jp