XcodeProject is a library for Xcode utility for read structure and it can be overwrite for`project.pbxproj. And XcodeProject package has executable library about append and remove files and directory to your xcode project on CLI named by xcp.
About XcodeProject Library
Usage XcodeProject Core Function.
Instanciate XcodeProject class. XcodeProject is necessary edit for project.pbxproj.
// Prepare for your project `project.pbxproj` file path.
let yourProjectPath = "/Users/bannzai/development/iOSProject/iOSProject.xcodeproj"
let pbxPath = yourProjectPath + "/project.pbxproj"
let xcodeprojectFileURL = URL(fileURLWithPath: pbxPath)
// Instanciate `XcodeProject`.
let xcodeproject = try XcodeProject(xcodeprojectURL: xcodeprojectFileURL)
Append file with relative wfile path from iOSProject.xcodeproject directory and build target name.
XcodeProject
XcodeProject is a library for Xcode utility for read structure and it can be overwrite for`project.pbxproj.
And XcodeProject package has executable library about append and remove files and directory to your xcode project on CLI named by xcp.
About XcodeProject Library
Usage XcodeProject Core Function.
Instanciate
XcodeProject
class.XcodeProject
is necessary edit forproject.pbxproj
.Append file with relative wfile path from iOSProject.xcodeproject directory and build target name.
Remove file with relative wfile path from iOSProject.xcodeproject directory and build target name.
If you want overwrite
project.pbxproj
, You can callxcodeproject.write()
method.Command Line Tool
Install
Using mint.
Usage
Add file
xcp –add-file
Add group
xcp –add-group
Remove file
xcp –remove-file
Remove group
xcp –remove-group
Used in
Kuri
Kuri is code generate for iOS CleanArchitecture.
License
XcodeProject
is available under the MIT license. See the LICENSE file for more info.