1

我有一台带有 Lion osx 的 mini mac,我从应用商店安装了 Xcode 4.3.2,然后我下载了 mono touch 试用软件。当我使用 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,单声道开发并重新安装但没有成功。关于这个问题的任何帮助都会有所帮助。

谢谢你。

4

1 回答 1

2

您可能在 /Developer 中有一个旧的 ibtool 来自以前的 Xcode 安装。显示什么/Developer/usr/bin/ibtool --version

您可以通过执行以下操作确保您使用的是最新的 ibtool:

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

于 2012-04-24T21:17:09.600 回答