Bug 60497 - Pod Init Error
Summary: Pod Init Error
Status: NEW
Alias: None
Product: Objective Sharpie
Classification: Desktop
Component: General ()
Version: master
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Aaron Bockover [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-11-02 16:15 UTC by emme.milani
Modified: 2018-03-23 09:42 UTC (History)
2 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 60497 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:
NEW

Description emme.milani 2017-11-02 16:15:53 UTC
Hi,
in version 3.4.0 i have this exception executing this command:
"sharpie pod init ios AFNetworking"
it works correctly with previous version.


Unhandled Exception:
Sharpie.ProcessException: 'pod --version' exited with error code 255
  at Sharpie.ProcessRunner.Run[T] (Sharpie.FilePath executablePath, Sharpie.ProcessArguments arguments, System.Func`3[T1,T2,TResult] readHandler, System.Boolean redirectStandardOutput, System.Boolean redirectStandardError) [0x000db] in /Users/builder/vsts/_work/2/s/Sharpie.Core/ProcessRunner.cs:83 
  at Sharpie.CocoaPods.Pod.get_Version () [0x00002] in /Users/builder/vsts/_work/2/s/Sharpie/CocoaPods/Pod.cs:109 
  at Sharpie.PodTool+PodCommandTool.CheckForCocoaPods () [0x00001] in /Users/builder/vsts/_work/2/s/Sharpie/PodTool.cs:62 
  at Sharpie.PodTool+InitTool.Run () [0x0006b] in /Users/builder/vsts/_work/2/s/Sharpie/PodTool.cs:115 
  at Sharpie.Tooling.Tool.Run (System.Collections.Generic.IEnumerable`1[T] args) [0x0011b] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/Tool.cs:179 
  at Sharpie.Tooling.ToolRunnerTool.Run () [0x000eb] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/ToolRunnerTool.cs:95 
  at Sharpie.Tooling.Tool.Run (System.Collections.Generic.IEnumerable`1[T] args) [0x0011b] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/Tool.cs:179 
  at Sharpie.Tooling.ToolRunnerTool.Run () [0x000eb] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/ToolRunnerTool.cs:95 
  at Sharpie.Tooling.Tool.Run (System.Collections.Generic.IEnumerable`1[T] args) [0x0011b] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/Tool.cs:179 
  at Sharpie.Tooling.ToolRunnerTool.Run (System.Collections.Generic.IEnumerable`1[T] args, System.Action`1[T] aboutToRunToolHandler) [0x00008] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/ToolRunnerTool.cs:68 
  at Sharpie.Entry.Main (System.String[] args) [0x00142] in /Users/builder/vsts/_work/2/s/Sharpie/Entry.cs:89 
[ERROR] FATAL UNHANDLED EXCEPTION: Sharpie.ProcessException: 'pod --version' exited with error code 255
  at Sharpie.ProcessRunner.Run[T] (Sharpie.FilePath executablePath, Sharpie.ProcessArguments arguments, System.Func`3[T1,T2,TResult] readHandler, System.Boolean redirectStandardOutput, System.Boolean redirectStandardError) [0x000db] in /Users/builder/vsts/_work/2/s/Sharpie.Core/ProcessRunner.cs:83 
  at Sharpie.CocoaPods.Pod.get_Version () [0x00002] in /Users/builder/vsts/_work/2/s/Sharpie/CocoaPods/Pod.cs:109 
  at Sharpie.PodTool+PodCommandTool.CheckForCocoaPods () [0x00001] in /Users/builder/vsts/_work/2/s/Sharpie/PodTool.cs:62 
  at Sharpie.PodTool+InitTool.Run () [0x0006b] in /Users/builder/vsts/_work/2/s/Sharpie/PodTool.cs:115 
  at Sharpie.Tooling.Tool.Run (System.Collections.Generic.IEnumerable`1[T] args) [0x0011b] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/Tool.cs:179 
  at Sharpie.Tooling.ToolRunnerTool.Run () [0x000eb] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/ToolRunnerTool.cs:95 
  at Sharpie.Tooling.Tool.Run (System.Collections.Generic.IEnumerable`1[T] args) [0x0011b] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/Tool.cs:179 
  at Sharpie.Tooling.ToolRunnerTool.Run () [0x000eb] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/ToolRunnerTool.cs:95 
  at Sharpie.Tooling.Tool.Run (System.Collections.Generic.IEnumerable`1[T] args) [0x0011b] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/Tool.cs:179 
  at Sharpie.Tooling.ToolRunnerTool.Run (System.Collections.Generic.IEnumerable`1[T] args, System.Action`1[T] aboutToRunToolHandler) [0x00008] in /Users/builder/vsts/_work/2/s/Sharpie.Core/Tooling/ToolRunnerTool.cs:68 
  at Sharpie.Entry.Main (System.String[] args) [0x00142] in /Users/builder/vsts/_work/2/s/Sharpie/Entry.cs:89
Comment 1 Chris van Wyk 2017-11-09 15:55:55 UTC
Run pod --version if you see something like this

-bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory 

then you may want to fix your Ruby and CocoaPods gem installs.

I use Homebrew to manage my installs and took these steps:

run brew up
run brew install ruby
run brew install CocoaPods
(Following all steps to make sure you already existing targets or link all conflicting files.)

Now run sharpie pod init ios AFNetworking

Hope this helps.
Comment 2 Mikalai Daronin 2018-03-23 09:42:32 UTC
Got same problem: I guess it happened after upgrading to 10.13 High Sierra. I've made steps that Chris suggested but it didn't help.

I fixed this by running:

> $ sudo gem install cocoapods
> $ pod setup