Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
heeween opened this issue Mar 16, 2021 · 3 comments
Open

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

heeween opened this issue Mar 16, 2021 · 3 comments

Comments

@heeween
Copy link

heeween commented Mar 16, 2021

我是把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)
^~~~~~~~~~~~~~~~~~~

@heeween
Copy link
Author

heeween commented Mar 16, 2021

找到问题了,要选到pbxproj这个schem,archive一下,然后选build Products,导出可执行文件pbxproj,再把pbxproj拷贝到/usr/local/bin/

@yulingtianxia
Copy link
Owner

嗯,我的 release 构建产物也上传了 pbxproj 二进制文件 @heeween

@heeween
Copy link
Author

heeween commented Mar 23, 2021

嗯,我的 release 构建产物也上传了 pbxproj 二进制文件 @heeween

好的,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants