Skip to content

请问命令行是怎么用的呢? #16

@heeween

Description

@heeween

我是把pbxproj文件夹拷到了usr/bin/目录下 并且修改了权限
然后运行/usr/local/bin/pbxproj/main.swift caocaoSwift.xcodeproj/project.pbxproj -apply /Users/heew/Desktop/xprojhelp/JsonConfiguration.json
报错如下
/usr/local/bin/pbxproj/main.swift:38:13: error: cannot find 'PropertyListHandler' in scope
PropertyListHandler.generateJSON(filePath: output, withModifiedProject: URL(fileURLWithPath: modifiedFile), originalProject: URL(fileURLWithPath: originalFile))
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:47:33: error: cannot find 'PropertyListHandler' in scope
if let jsonObject = PropertyListHandler.parseJSON(fileURL: URL(fileURLWithPath: jsonFile)) as? [String: Any],
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:48:37: error: cannot find 'PropertyListHandler' in scope
let projectObject = PropertyListHandler.parseProject(fileURL: URL(fileURLWithPath: projectFile)) {
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:49:44: error: cannot find 'PropertyListHandler' in scope
let appliedProjectObject = PropertyListHandler.apply(json: jsonObject, onProjectData: projectObject)
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:50:17: error: cannot find 'PropertyListHandler' in scope
PropertyListHandler.generateProject(fileURL: URL(fileURLWithPath: projectFile), withPropertyList: appliedProjectObject)
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:60:33: error: cannot find 'PropertyListHandler' in scope
if let jsonObject = PropertyListHandler.parseJSON(fileURL: URL(fileURLWithPath: jsonFile)) as? [String: Any],
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:61:37: error: cannot find 'PropertyListHandler' in scope
let projectObject = PropertyListHandler.parseProject(fileURL: URL(fileURLWithPath: projectFile)) {
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:62:44: error: cannot find 'PropertyListHandler' in scope
let appliedProjectObject = PropertyListHandler.apply(json: jsonObject, onProjectData: projectObject, forward: false)
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:63:17: error: cannot find 'PropertyListHandler' in scope
PropertyListHandler.generateProject(fileURL: URL(fileURLWithPath: projectFile), withPropertyList: appliedProjectObject)
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:72:16: error: cannot find 'PropertyListHandler' in scope
if PropertyListHandler.recoverProject(fileURL: URL(fileURLWithPath: projectFile)) {
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:82:36: error: cannot find 'PropertyListHandler' in scope
if let projectObject = PropertyListHandler.parseProject(fileURL: URL(fileURLWithPath: projectFile)) {
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:83:17: error: cannot find 'PropertyListHandler' in scope
PropertyListHandler.generateProject(fileURL: URL(fileURLWithPath: projectFile), withPropertyList: projectObject)
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:89:36: error: cannot find 'PropertyListHandler' in scope
if let projectObject = PropertyListHandler.parseProject(fileURL: URL(fileURLWithPath: projectFile)) {
^~~~~~~~~~~~~~~~~~~
/usr/local/bin/pbxproj/main.swift:90:17: error: cannot find 'PropertyListHandler' in scope
PropertyListHandler.generateProject(fileURL: URL(fileURLWithPath: projectFile), withPropertyList: projectObject)
^~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions