2012-04-06 93 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