2012-10-03 59 views
3

我想從命令行編譯monochouch應用程序作爲自動構建的一部分。當我運行以下命令:使用mdtool編譯MonoTouch應用程序時發現Mono for Android SDK錯誤

/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 .. 

如何獲得mdtool使用MonoTouch的,而不是MonoDroid的編制有什麼想法?

額外的配置信息:

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 

回答

2

可以忽略此錯誤。它總是發生,但是當你從MonoDevelop內部構建時,你看不到它。

相關問題