2

这是阿吉特。我尝试从网站下载 monotouch 的试用版,但所有链接都已损坏。所以我通过从谷歌挖掘下载了以下内容。( )MonoDevelop-3.0.3.5 ( )MonoFramework-MRE-2.10.9_11.macos10.xamarin.x86.dmg (*)Monotouch-eval-5.1.0.pkg

但是这样做之后,当我从 xamarin 网站运行示例 ios 应用程序时,它才无法构建 -> 无法编译为本机代码。这是错误日志。


构建解决方案:HelloWorld_iPhone (Debug|iPhoneSimulator)

构建:HelloWorld_iPhone (Debug|iPhoneSimulator) 正在执行主编译... /Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.exe " "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/开发者/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" /nologo /warn:4 /debug:full /优化- /codepage:utf8 "/define:DEBUG" /t:exe "/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Main.cs" "/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/AppDelegate.cs" "/用户/PBSK/桌面/HelloWorld_iPhone/HelloWorld_iPhone/HelloWorld_iPhoneViewController。cs" "/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/HelloWorld_iPhoneViewController.designer.cs"

复制内容文件将“/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/57_icon.png”复制到“/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/57_icon.png” ' 复制 '/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/114_icon.png' 到 '/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/114_icon.png' 复制'/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/72_icon.png' 到'/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/72_icon.png' 复制'/用户/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/29_icon.png' 到 '/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/29_icon.png'复制'/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/58_icon.png'到'/Users /PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/58_icon.png'复制'/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/50_icon.png'到'/Users/PBSK /Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/50_icon.png' 构建完成 -- 0 个错误,0 个警告/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/58_icon.png'复制'/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/50_icon.png'到'/Users /PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/50_icon.png' 构建完成 -- 0 个错误,0 个警告/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/58_icon.png'复制'/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/Images/Icons/50_icon.png'到'/Users /PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app/50_icon.png' 构建完成 -- 0 个错误,0 个警告

编译为本机代码 /Developer/MonoTouch/usr/bin/mtouch -v --nomanifest --nosign -sim "/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone/bin/iPhoneSimulator/Debug/HelloWorld_iPhone.app" -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" -debug -nolink -sdk "5.1" "/Users/PBSK/Desktop/HelloWorld_iPhone/HelloWorld_iPhone /bin/iPhoneSimulator/Debug/HelloWorld_iPhone.exe” 评估版不支持此功能 未找到 gcc 编译器!mtouch 以代码 1 退出

- - - - - - - - - - - 完毕 - - - - - - - - - - -

构建:1 个错误,0 个警告


Xcode 版本是 4.4,Mac 版本是 10.7.4。

-谢谢!

4

2 回答 2

3

但是所有的链接都坏了

如果您对该网站有任何问题,请发送电子邮件至 support@xamarin.com。

Monotouch-eval-5.1.0.pkg

这是一个相当古老的 MonoTouch测试版。

MonoTouch 5.2.12 是当前的稳定版本,而 5.3.5 是当前的不稳定版本。

没有找到 gcc 编译器

这意味着没有找到 C 编译器。一般来说您应该确保您的 MonoDevelop 首选项(SDK 位置)设置为指向您的 Xcode 安装目录。

但是在这种情况下,我认为您的 MonoTouch 版本太旧而无法与 Xcode 4.4 一起使用。将评估版本更新到 5.2.12 是您应该尝试解决此问题的第一步。

于 2012-08-02T14:08:26.930 回答
2

以下是最终工作的 MonoTouch 评估的手动安装!:

Download and install packages listed below, in the order given:

1) Mono: http://download.mono-project.com/archive/2.10.9/macos-10-x86/10/MonoFramework-MDK-2.10.9_10.macos10.xamarin.x86.dmg

2) MonoDevelop: http://download.xamarin.com/monodevelop/Mac/MonoDevelop-3.0.dmg

3) Eval MonoTouch: http://download.xamarin.com/priv/d6d0ad447c01dd2bbbbbba829f6e1a/MonoTouch/Mac-eval/monotouch-eval-5.2.11.pkg

For the above mentioned environment this combination works like magic. Just hope that they'll fix the broken links on their site too or else many other newbies would continue to get discouraged. Thanks to support people of Xamarin who shared these links.

于 2012-08-03T03:16:23.143 回答