MonoTouch - 无法编译接口文件

时间:2012-04-24 15:19:45

标签: mono touch

我有一个使用Lion osx的mini mac,我从应用程序商店安装了Xcode 4.3.2,之后我下载了单声道触控试用软件。当我使用mono develop编译一个全新的项目时,我得到以下错误:

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,单声道开发并重新安装但没有成功。 有关此问题的任何帮助都会有所帮助。

谢谢。

1 个答案:

答案 0 :(得分:2)

您可能在以前的Xcode安装中使用/ Developer中的旧ibtool。 /Developer/usr/bin/ibtool --version显示什么?

您可以通过以下方式确保使用最新的ibtool:

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