开发者

How can I compile a .pbxproj project through a makefile

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 nee开发者_如何学Cd anyway.

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


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.

...
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜