SkillAgentSearch skills...

Xcp

Xcode utility for reading and writing pbxproj file format.

Install / Use

/learn @bannzai/Xcp
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Kuri is code generate for iOS CleanArchitecture.

License

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

Related Skills

View on GitHub
GitHub Stars15
CategoryContent
Updated4y ago
Forks0

Languages

Swift

Security Score

75/100

Audited on Nov 14, 2021

No findings