使用mdtool编译MonoTouch应用程序时,在找到Android SDK的Mono时出错

时间:2012-10-03 17:09:51

标签: xamarin.ios

我正在尝试从命令行编译monotouch应用程序,作为自动构建的一部分。当我运行以下命令时:

/Applications/MonoDevelop.app/Contents/MacOS/mdtool -v build "--configuration:Debug:iPhone --project:App.Project" /Users/james/Development/App/App.sln

我得到了输出:

MonoDevelop Build Tool
ERROR [2012-10-03 18:03:33Z]: ANDROID: Error finding Mono for Android SDK
System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x00000] in <filename unknown>:0 
  at Xamarin.AndroidTools.MonoDroidSdkUnix.FindFramework (System.String sdk) [0x00000] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/Sdks/MonoDroidSdkUnix.cs:51 
  at Xamarin.AndroidTools.MonoDroidSdkBase.Initialize (System.String mfaSdkPath, System.String mfaFrameworkPath) [0x0000e] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/Sdks/MonoDroidSdkBase.cs:56 
  at Xamarin.AndroidTools.MonoDroidSdk.Refresh (System.String mfaSdkPath, System.String mfaFrameworkPath) [0x00037] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-3.0.4-branch/ea010826/source/md-addins/MonoDevelop.MonoDroid/external/androidtools/Xamarin.AndroidTools/MonoDroidSdk.cs:120 
Loading solution: /Users/james/Development/App/App.sln
   Loading solution: /Users/james/Development/App/App.sln
      Loading projects ..

关于如何使用MonoTouch而不是MonoDroid来编译mdtool的想法?

其他配置信息:

MonoDevelop 3.0.4.7
Runtime:
    Mono 2.10.9 (tarball)
    GTK 2.24.10
    GTK# (2.12.0.0)
    Package version: 210090011
Apple Developer Tools:
     Xcode 4.5 (1839)
     Build 4G182
Monotouch: 6.0.3
Mono for Android: Not Installed

1 个答案:

答案 0 :(得分:2)

您可以忽略此错误。它总是会发生,但是当你从MonoDevelop中构建时,你却看不到它。