Skip to content
/ xcp Public

Xcode utility for reading and writing pbxproj file format.

License

Notifications You must be signed in to change notification settings

bannzai/xcp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xcp

xcp is Xcode utility for reading and writing project.pbxproj file format.

Usage

let pbxPath = projectFilePath + "project.pbxproj"
let xcodeprojectFileUrl = URL(fileURLWithPath: pbxPath)

// Read pbxproj when create XCProject instance
let project = try XCProject(for: xcodeprojectFileUrl)

// Append for PBX Object with
// project root direcotry path,
// will append file path relative for project root directory path,
// will append project target name.
...
project.appendFilePath(
    with: projectRootPath,
    filePath: filePath,
    targetName: targetName
)
...

// Write in pbxproj.
// If you added the PBX Object it will be reflected
try project.write()

Used in

Kuri is code generate for iOS CleanArchitecture.

License

xcp is available under the MIT license. See the LICENSE file for more info.

About

Xcode utility for reading and writing pbxproj file format.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages