Trying To Bind ZenDesk ZDC Chat

JSpringJSpring GBUniversity ✭✭
edited April 2016 in Objective Sharpie

Hi,

I am trying to bind ZenDesk's ZDC Chat SDK however I am getting the following error:

System.AggregateException: unable to parse Xcode project: Pods/Pods.xcodeproj/project.pbxproj ---> System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Stream has been closed'.
   at System.IO.FileStream.get_Length () in <filename unknown>:line 0
   at Xamarin.MacDev.PropertyListFormat+BinaryFormat.StartReading (System.IO.Stream input) in <filename unknown>:line 0
   at Xamarin.MacDev.PropertyListFormat.CreateReadContext (System.IO.Stream input) in <filename unknown>:line 0
   at Xamarin.MacDev.PObject.FromStream (System.IO.Stream stream) in <filename unknown>:line 0
   at Sharpie.Xcode.Project.PBXProjectFile..ctor (System.IO.Stream plistStream) in <filename unknown>:line 0
   at Sharpie.Xcode.Project.PBXProjectFile..ctor (FilePath fileName) in <filename unknown>:line 0
   at Sharpie.Xcode.Project.XcodeProject..ctor (FilePath fileName) in <filename unknown>:line 0
  --- End of inner exception stack trace ---
   at Sharpie.Xcode.Project.XcodeProject..ctor (FilePath fileName) in <filename unknown>:line 0
   at Sharpie.ParseTool.LoadXcodeProjectOptions (FilePath xcodeprojFile) in <filename unknown>:line 0
   at Sharpie.ParseTool.Run () in <filename unknown>:line 0
   at Sharpie.BindTool.CoreRun () in <filename unknown>:line 0
   at Sharpie.BindTool.Run () in <filename unknown>:line 0
---> (Inner Exception #0) System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Stream has been closed'.
   at System.IO.FileStream.get_Length () in <filename unknown>:line 0
   at Xamarin.MacDev.PropertyListFormat+BinaryFormat.StartReading (System.IO.Stream input) in <filename unknown>:line 0
   at Xamarin.MacDev.PropertyListFormat.CreateReadContext (System.IO.Stream input) in <filename unknown>:line 0
   at Xamarin.MacDev.PObject.FromStream (System.IO.Stream stream) in <filename unknown>:line 0
   at Sharpie.Xcode.Project.PBXProjectFile..ctor (System.IO.Stream plistStream) in <filename unknown>:line 0
   at Sharpie.Xcode.Project.PBXProjectFile..ctor (FilePath fileName) in <filename unknown>:line 0
   at Sharpie.Xcode.Project.XcodeProject..ctor (FilePath fileName) in <filename unknown>:line 0<---

After running:
sharpie pod init ios ZDCChat && sharpie pod bind

I also tried binding a few other other libraries (5) and they all gave the same error too. I ran a sharpie update to check I was on the latest version and it seems I am:
sharpie update
Current version: 3.0.8
Checking stable channel for newer version ...
No updates available. You are already up-to-date at version 3.0.8.

Since this is happening with more or less every library I try to bind I do not know if this is a problem with Sharpie or the underlying ObjC code in the Pod.

Any help would be appreciated!

Posts

  • DaveMurphySFDaveMurphySF USMember, Beta

    Did you ever figure this out? I have the same issue.

  • JSpringJSpring GBUniversity ✭✭

    @DaveMurphySF no - I am going to try pushing a few people towards this thread who can hopefully help. Failing that its over to Stack Overflowwww!

  • DaveMurphySFDaveMurphySF USMember, Beta

    @JSpring - I think I have a workaround. I read this thread and I tried adding a header phase to the Pods target (select Pods target > Build Phases > '+'> New Headers phase). Now the sharpie pod bind command works as it should.

  • JSpringJSpring GBUniversity ✭✭

    @DaveMurphySF seems to work! However I am getting one error in ZDCAccountOfflineCell.h where there there is an #import of the ZDCChat framework.

    Have added the framework to the linked libraries however its erroring:
    /Users/Jayden 1/Cocoa Sharpies/zdcchat/Pods/ZDCChat/ZDCChat.framework/Headers/ZDCAccountOfflineCell.h:18:9: fatal error: 'ZDCChat/ZDCChat.h'
    file not found
    #import <ZDCChat/ZDCChat.h>
    ^

    Will try seeing if the bindings work as is and let you know!

  • PhilippovAndreyPhilippovAndrey RUMember ✭✭

    @JSpring Hi!
    Did you get bindings to work? If yes, could you provide binding project source?

  • JSpringJSpring GBUniversity ✭✭

    No, im using HelpShift now. would recommend!

Sign In or Register to comment.