Bug 33190 - xamarin-component.exe transform not working on Mac OS X but works on Windows
Summary: xamarin-component.exe transform not working on Mac OS X but works on Windows
Status: REOPENED
Alias: None
Product: Components
Classification: Xamarin
Component: Generation ()
Version: Production (addons.xamarin.com)
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Matthew Leibowitz
URL:
Depends on:
Blocks:
 
Reported: 2015-08-18 09:32 UTC by services
Modified: 2015-08-25 04:11 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 for Bug 33190 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
REOPENED

Description services 2015-08-18 09:32:46 UTC
Description of Problem:
Can't transform component package (.xam) into NuGet package (.nupkg) using xamarin-component Mac OS X but works fine on Windows.

Steps to reproduce the problem:
1. mono xamarin-component.exe transform <path_to_component_package_xam_file>
2. 


Actual Results:
Martins-MacBook-Pro:GA-SDK-XAMARIN-DEV mts$ mono xamarin-component.exe transform GA.Xamarin.SDK/component/GA.Xamarin.SDK-1.0.0.xam 

Unhandled Exception:
System.IO.DirectoryNotFoundException: Directory '/Users/mts/dev/git-hub/gameanalytics/GA-SDK-XAMARIN-DEV/.\/.\tmp584b8f92.tmp/ios' not found.
  at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, SearchOption searchOption) [0x00000] in <filename unknown>:0 
  at NuGet.PathResolver.PerformWildcardSearchInternal (System.String basePath, System.String searchPath, Boolean includeEmptyDirectories, System.String& normalizedBasePath) [0x00000] in <filename unknown>:0 
  at NuGet.PathResolver.ResolveSearchPattern (System.String basePath, System.String searchPath, System.String targetPath, Boolean includeEmptyDirectories) [0x00000] in <filename unknown>:0 
  at NuGet.PackageBuilder.AddFiles (System.String basePath, System.String source, System.String destination, System.String exclude) [0x00000] in <filename unknown>:0 
  at NuGet.PackageBuilder.PopulateFiles (System.String basePath, IEnumerable`1 files) [0x00000] in <filename unknown>:0 
  at Xamarin.Components.TransformCommandHandler.LoadLibrariesIntoNuGetPackage (Xamarin.Components.Packaging.ComponentPackage pack, ICSharpCode.SharpZipLib.Zip.ZipFile zf, System.String tempDir, NuGet.PackageBuilder pb, System.Boolean& didBreakEarly) [0x00000] in <filename unknown>:0 
  at Xamarin.Components.TransformCommandHandler.Invoke (System.String[] args) [0x00000] in <filename unknown>:0 
  at Xamarin.Components.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.DirectoryNotFoundException: Directory '/Users/mts/dev/git-hub/gameanalytics/GA-SDK-XAMARIN-DEV/.\/.\tmp584b8f92.tmp/ios' not found.
  at System.IO.Directory.ValidateDirectoryListing (System.String path, System.String searchPattern, System.Boolean& stop) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.GetFileSystemEntries (System.String path, System.String searchPattern, FileAttributes mask, FileAttributes attrs) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.GetFiles (System.String path, System.String searchPattern, SearchOption searchOption) [0x00000] in <filename unknown>:0 
  at NuGet.PathResolver.PerformWildcardSearchInternal (System.String basePath, System.String searchPath, Boolean includeEmptyDirectories, System.String& normalizedBasePath) [0x00000] in <filename unknown>:0 
  at NuGet.PathResolver.ResolveSearchPattern (System.String basePath, System.String searchPath, System.String targetPath, Boolean includeEmptyDirectories) [0x00000] in <filename unknown>:0 
  at NuGet.PackageBuilder.AddFiles (System.String basePath, System.String source, System.String destination, System.String exclude) [0x00000] in <filename unknown>:0 
  at NuGet.PackageBuilder.PopulateFiles (System.String basePath, IEnumerable`1 files) [0x00000] in <filename unknown>:0 
  at Xamarin.Components.TransformCommandHandler.LoadLibrariesIntoNuGetPackage (Xamarin.Components.Packaging.ComponentPackage pack, ICSharpCode.SharpZipLib.Zip.ZipFile zf, System.String tempDir, NuGet.PackageBuilder pb, System.Boolean& didBreakEarly) [0x00000] in <filename unknown>:0 
  at Xamarin.Components.TransformCommandHandler.Invoke (System.String[] args) [0x00000] in <filename unknown>:0 
  at Xamarin.Components.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 

Creates temporary folder .\tmp584b8f92.tmp

Expected Results:
Should create .nupkg like on Windows

How often does this happen? 
Every time

Additional Information:
Comment 1 Bill Holmes 2015-08-20 10:10:59 UTC
Mathew,

Not sure we officially support this or not.  However I know it is a project that you may be interested in.

Thanks
-Bill
Comment 2 Matthew Leibowitz 2015-08-20 16:00:06 UTC
Fixed in commit 316f93094565bd37731e5393bf235083d478041d

https://github.com/xamarin/xamarin-component/commit/316f93094565bd37731e5393bf235083d478041d
Comment 3 services 2015-08-25 04:11:52 UTC
It doesn't look like there has been made a new release of xamarin-component.exe yet. When I download the tool at https://components.xamarin.com/submit/xpkg I still get the bug.