2012-04-06 95 views
4

我刚刚从http://www.xiph.org/downloads/(http://downloads.xiph.org/releases/ogg/libogg-1.3.0.tar.gz)下载了libogg,我正在尝试编译该包中提供的Ogg.xcodeproj项目。当我尝试建立,我得到以下错误:使用Xcode 4编译libogg

The run destination My Mac 64-bit is not valid for Running the scheme 'Ogg'.

The scheme 'Ogg' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64-bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.

,我收到了类似的错误,如果我试图使用静态库,而不是框架:

The run destination My Mac 64-bit is not valid for Running the scheme 'libogg (static)'.

The scheme 'libogg (static)' contains no buildables that can be built for the SDKs supported by the run destination My Mac 64-bit. Make sure your targets all specify SDKs that are supported by this version of Xcode.

再次,这是刚刚开场该项目在Xcode 4.3.2第一次,并试图建立。我根本没有改变项目文件。

任何人都可以指出我的方向来解决这个问题吗?

回答

2

在我的情况下,Xcode项目与旧架构(OS X 10.5 PPC,而我有OS X 10.8 Mountain Lion x64)上的旧SDK链接。

要在Xcode 5中修复此问题,请选择Xcode中的顶级项目(项目文件夹窗格中带有蓝色“A”图标的顶部节点),然后选择项目。更改架构,以适合当前系统的东西,如构建机器的乡土建筑,改变基地SDK当前安装到您的Xcode环境中的SDK,例如OS X 10.8

这里是我的项目,以帮助您找到这些设置的截图(以下突出显示的部分:kisshelper>kisshelper>架构):

enter image description here