Bug 4076 - Invalid path to keystore and other tools
Summary: Invalid path to keystore and other tools
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: 2.8.6
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Alan McGovern
URL:
Depends on:
Blocks:
 
Reported: 2012-03-23 14:10 UTC by Paul Aicher
Modified: 2012-04-05 11:21 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Paul Aicher 2012-03-23 14:10:48 UTC
When running mono develop on a mac with osx lion, when you try to "publish" an application it is running into several problems. First if you try to create a new keystore it will fail because it is looking for /usr/keytool instead of /usr/bin/keytool

I took the command line from the stack trace below and modified it to point at /usr/bin/keytool and all worked fine.   Once I created the keystone manually and tried to use it in the publish tool, it failed verification.  I am assuming it failed verification because it once again could not find /usr/keytool because it doesn't exist at that location.    I eventually had to create the store manually, sign the package manually, and zipalign the package manually because the ui tool does not work at all.

See the following stack:

System.ComponentModel.Win32Exception: ApplicationName='/usr/keytool', CommandLine='-genkeypair -alias "com.us.ivi.aCenturion" -dname "CN=Thad Failor, O=Industrial Ventilation Inc., L=Nampa, S=Idaho, C=US" -storepass "xxxxxx" -keypass "xxxxxx" -keystore "/Users/paul.aicher/Projects/aCenturion/trunk/aCenturion/aCenturion.keystore" -keysize 2048 -keyalg RSA -validity "7300"', CurrentDirectory=''
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00352] in /private/tmp/monobuild/build/BUILD/mono-2.10.8/mcs/class/System/System.Diagnostics/Process.cs:1126 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00096] in /private/tmp/monobuild/build/BUILD/mono-2.10.8/mcs/class/System/System.Diagnostics/Process.cs:1200 
  at System.Diagnostics.Process.Start () [0x0002c] in /private/tmp/monobuild/build/BUILD/mono-2.10.8/mcs/class/System/System.Diagnostics/Process.cs:1210 
  at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00006] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs:27 
  at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
  at MonoDevelop.Core.Execution.ProcessService.StartProcess (System.Diagnostics.ProcessStartInfo startInfo, MonoDevelop.Core.Execution.ProcessEventHandler outputStreamChanged, MonoDevelop.Core.Execution.ProcessEventHandler errorStreamChanged, System.EventHandler exited) [0x000c3] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs:163 
  at MonoDevelop.Core.Execution.ProcessService.StartProcess (System.Diagnostics.ProcessStartInfo startInfo, System.IO.TextWriter outWriter, System.IO.TextWriter errorWriter, System.EventHandler exited) [0x0000e] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs:124 
  at MonoDevelop.MonoDroid.AndroidToolbox.StartProcess (System.String name, System.String args, System.IO.TextWriter outputLog, System.IO.TextWriter errorLog) [0x00045] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/AndroidToolbox.cs:157 
  at MonoDevelop.MonoDroid.AndroidToolbox.Genkeypair (MonoDevelop.MonoDroid.AndroidSigningOptions options, System.String dname, Int32 validity, System.IO.TextWriter outputLog, System.IO.TextWriter errorLog) [0x000ca] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/Adb/AndroidToolbox.cs:119 
  at MonoDevelop.MonoDroid.MonoDroidPublishOperation+<MonoDroidPublishOperation>c__AnonStorey24.<>m__73 () [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:646 
  at MonoDevelop.MonoDroid.ChainedAsyncOperationSequence.RunNext () [0x000df] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:774 
  at MonoDevelop.MonoDroid.ChainedAsyncOperationSequence.Start () [0x00021] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:743 
  at MonoDevelop.MonoDroid.MonoDroidPublishOperation.Start () [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:685 
  at MonoDevelop.MonoDroid.MonoDroidUtility.PublishPackage (IProgressMonitor monitor, MonoDevelop.MonoDroid.MonoDroidProject project, MonoDevelop.Projects.ConfigurationSelector configSel, MonoDevelop.MonoDroid.MonoDroidProjectConfiguration conf, MonoDevelop.MonoDroid.AndroidSigningOptions options, System.String sourceApk, System.String destApk, Boolean createNewKey, System.String dName, Int32 keyValidity) [0x0007e] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidUtility.cs:145 
  at MonoDevelop.MonoDroid.PublishApplicationHandler+<Run>c__AnonStoreyB.<>m__F (IAsyncOperation ) [0x00042] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidCommands.cs:237 
  at MonoDevelop.MonoDroid.PublishApplicationHandler.Run () [0x00085] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/md-addins/MonoDevelop.MonoDroid/MonoDevelop.MonoDroid/MonoDroidCommands.cs:246 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00000] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00076] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:696 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002d1] in /Users/builder/data/lanes/monodevelop-mac-2.8.6.5/96a2067d/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:666
Comment 1 Andreia Gaita 2012-04-05 11:21:42 UTC
This is fixed in the latest MD release (2.8.8.4)