Sharpie 3.4.0 Bug

Hi,
in version 3.4.0 i have this exception executing this command:
"sharpie pod init ios AFNetworking"
it works correctly with previous version.
I opened a Bug here too: https://bugzilla.xamarin.com/show_bug.cgi?id=60497
Someone other have this error?

    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 

Posts

  • ChrisvanwykChrisvanwyk USXamarin Team, University, XamUProfessors, Developer Group Leader Xamurai

    Hi @MarkJackMilian

    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:

    1. run brew up
    2. run brew install ruby
    3. 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.

  • MarkJackMilianMarkJackMilian ITUniversity ✭✭

    Hello @Chrisvanwyk ! Thank you for your suggestions but the problem continues to arise. Do you have any other suggestions I can try?

  • ChrisvanwykChrisvanwyk USXamarin Team, University, XamUProfessors, Developer Group Leader Xamurai

    Hi @MarkJackMilian

    What is the result when your run pod --version ?

  • MarkJackMilianMarkJackMilian ITUniversity ✭✭

    Hi, @Chrisvanwyk .
    Runnning pod --version i got:
    -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

    doesn't seem like a good message :smile:

  • ChrisvanwykChrisvanwyk USXamarin Team, University, XamUProfessors, Developer Group Leader Xamurai

    No unfortunately not :)

    You will have to fix this error first before you are going to get Sharpie to do its thing.

  • MarkJackMilianMarkJackMilian ITUniversity ✭✭

    Thank you for your help. I had some problems with links on brew. It now works properly. Thanks!

  • ChrisvanwykChrisvanwyk USXamarin Team, University, XamUProfessors, Developer Group Leader Xamurai

    Great!

Sign In or Register to comment.