如何通过 makefile 编译 .pbxproj 项目

发布于 2024-11-10 04:48:29 字数 218 浏览 2 评论 0原文

我从 Apple 开源存储库下载了一些源代码。 这些项目是 .pbxproj 文件,我可以在 XCode 中打开它们。 但我需要将项目导出到 Makefile/Configure 配置。

我用谷歌搜索了一下,发现了一些关于 pbxbuild 的评论,但可以 找不到下载链接,我不确定这是否是我需要的。

我还尝试了一个名为 pbtomake 的工具,该工具在项目文件上失败了。 我猜它太旧了。

I've downloaded some source code from Apple open source repository.
The projects are .pbxproj files which I can open in XCode.
But I need to export the project to a Makefile/Configure configuration.

I've googled around and found some comments about pbxbuild but could
not find a download link and I'm not sure it is what I need anyway.

Also I tried a tool called pbtomake which failed on the project file.
I guess it's too old.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你对谁都笑 2024-11-17 04:48:30

pbxbuild 已过时 - 您需要 xcodebuild

$ man xcodebuild


XCODEBUILD(1)             BSD General Commands Manual            XCODEBUILD(1)

NAME
     xcodebuild -- build Xcode projects and workspaces

SYNOPSIS
     xcodebuild [-project projectname] [-target targetname ...] [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [buildaction ...]
                [setting=value ...] [-userdefault=value ...]
     xcodebuild -workspace workspacename -scheme schemename [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [buildaction ...]
                [setting=value ...] [-userdefault=value ...]
     xcodebuild -version [-sdk [sdkfullpath | sdkname]] [infoitem]
     xcodebuild -showsdks
     xcodebuild -list [-project projectname | -workspace workspacename]

DESCRIPTION
     xcodebuild builds one or more targets contained in an Xcode project, or builds a scheme contained in an Xcode workspace.

...

pbxbuild is obsolete - you need xcodebuild:

$ man xcodebuild


XCODEBUILD(1)             BSD General Commands Manual            XCODEBUILD(1)

NAME
     xcodebuild -- build Xcode projects and workspaces

SYNOPSIS
     xcodebuild [-project projectname] [-target targetname ...] [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [buildaction ...]
                [setting=value ...] [-userdefault=value ...]
     xcodebuild -workspace workspacename -scheme schemename [-configuration configurationname] [-sdk [sdkfullpath | sdkname]] [buildaction ...]
                [setting=value ...] [-userdefault=value ...]
     xcodebuild -version [-sdk [sdkfullpath | sdkname]] [infoitem]
     xcodebuild -showsdks
     xcodebuild -list [-project projectname | -workspace workspacename]

DESCRIPTION
     xcodebuild builds one or more targets contained in an Xcode project, or builds a scheme contained in an Xcode workspace.

...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文