2012-04-24 59 views
1

我有一個迷你mac與Lion osx,我從應用商店安裝了Xcode 4.3.2,之後我下載了單聲道觸控試用版軟件。當我使用編譯一個全新的項目單發展,我得到下面的錯誤:MonoTouch - 無法編譯接口文件

Failed to compile interface file. 

Building: 12 (Debug|iPhoneSimulator) 

Building Solution 12 

Building: 12 (Debug|iPhoneSimulator) 

Performing main compilation... 
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/aegonaegon/Projects/12/12/bin/iPhoneSimulator/Debug/12.exe" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" /nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG" /t:exe "/Users/aegonaegon/Projects/12/12/Main.cs" "/Users/aegonaegon/Projects/12/12/AppDelegate.cs" "/Users/aegonaegon/Projects/12/12/12ViewController.cs" "/Users/aegonaegon/Projects/12/12/12ViewController.designer.cs" 

Compiling interface definitions 
/Developer/usr/bin/ibtool --errors --warnings --notices --output-format human-readable-text "/Users/aegonaegon/Projects/12/12/12ViewController.xib" --compile "/Users/aegonaegon/Projects/12/12/bin/iPhoneSimulator/Debug/12.app/12ViewController.nib" --sdk "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk" 
/* com.apple.ibtool.errors */ 
Internal Error: 
    Description: Illegal invocation. Try 'man ibtool' for more information. 
ibtool exited with code 1 
Build complete -- 1 error, 0 warnings 

---------------------- Done ---------------------- 

Build: 1 error, 0 warnings 

我有未安裝的Xcode 4.32,單開發和重新安裝,但沒有成功。 在這個問題上的任何幫助將有所幫助。

謝謝。

回答

2

您可能在以前的Xcode安裝中的/ Developer中有一箇舊的ibtool。 /Developer/usr/bin/ibtool --version顯示什麼?

可以確保您使用的是最新ibtool做這個:

sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer