Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Objective Sharpie pod init takes forever #8238

Open
Mikilll94 opened this issue Mar 30, 2020 · 9 comments
Open

Objective Sharpie pod init takes forever #8238

Mikilll94 opened this issue Mar 30, 2020 · 9 comments
Labels
external-objective-sharpie Issues affecting the Objective Sharpie and are not specific to Xamarin.iOS or Xamarin.Mac
Milestone

Comments

@Mikilll94
Copy link

Steps to Reproduce

  1. Run sharpie pod init ios AFNetworking like in the docs here:
    https://docs.microsoft.com/en-us/xamarin/cross-platform/macios/binding/objective-sharpie/examples/cocoapod?context=xamarin/ios
  2. The installation hangs on this:
** Setting up CocoaPods master repo ...
   (this may take a while the first time)
Setup completed
** Searching for requested CocoaPods ...

Expected Behavior

The installation should complete.

Actual Behavior

The installation hangs.

Environment

Objective Sharpie version: 3.4.0-c0f0e73
CocoaPods version: 1.9.1
macOS version: 10.15.3

@chamons
Copy link
Contributor

chamons commented Mar 30, 2020

Sharpie pod support is not in the best shape, I'd strongly suggest not using it and doing the sharpie work by hand.

FYI @dalexsoto

@chamons chamons added the external-objective-sharpie Issues affecting the Objective Sharpie and are not specific to Xamarin.iOS or Xamarin.Mac label Mar 30, 2020
@chamons chamons added this to the Future milestone Mar 30, 2020
@Mikilll94
Copy link
Author

@chamons
Seriously? When this is going to be fixed? Manually doing bindings for complex Objective-C libraries is a disaster.

@dalexsoto
Copy link
Member

@Mikilll94 I think there is a little misunderstanding here, what @chamons means is not doing the binding work by hand but doing the pod initialization yourself, we are deprecating sharpie pod tool but not sharpie bind unfortunately our cocoapods wrappers are too old and cocoapods has changed a lot and the way the tool is designed needs a lot of refactoring, it has been in our backlog for too long that we decided to invest this time in other areas that improve Xamarin.iOS/Mac experience.

So TL;DR; you can still use objective sharpie to bind any Objective-C headers

@dogiaplinh
Copy link

@dalexsoto If sharpie pod was deprecated, what’s methods we could use to binding pod packages?

@chamons
Copy link
Contributor

chamons commented May 4, 2020

You would need to come up with your own sharpie command line invocation similar to the documented one here.

Sometimes those require some knowledge of objective-c/the library in question, as you have to get the header path correct.

@alataffective
Copy link

I didn't have a problem when running sharpie pod init ios AFNetworking but had the hang problem described when running sharpie pod init macosx CocoaFob.

Regarding https://docs.microsoft.com/en-us/xamarin/cross-platform/macios/binding/objective-sharpie/get-started:

NEW! version 3.0 also introduces a tool for easily binding CocoaPods via the sharpie pod command. If the library you're interested in is available as a CocoaPod, we recommend you start by attempting to bind the CocoaPod with Objective Sharpie (versus attempting to bind against the source directly).

If sharpie pod is being deprecated, is this still the right advice?

@nielscup
Copy link

nielscup commented Jun 9, 2020

@dalexsoto

we are deprecating sharpie pod tool but not sharpie bind unfortunately our cocoapods wrappers are too old and cocoapods has changed a lot and the way the tool is designed needs a lot of refactoring, it has been in our backlog for too long that we decided to invest this time in other areas that improve Xamarin.iOS/Mac experience.

Is sharpie pod being deprecated or not? Your documentation still recommends using sharpie pod

nielscup added a commit to nielscup/xamarin-docs that referenced this issue Jun 9, 2020
sharpie pod is deprecated acoording to this thread: xamarin/xamarin-macios#8238
@LelicKAS
Copy link

Hey ... guys ...
I think it would be nice to clean up the documentation ... The documentation recommends a path that leads to a hang ....

@eman1986
Copy link

if pod is in fact not the best solution, you guys should update the doc to mention that tool is outdated, the way it's currently presented sounds like a new feature of sharpie and that we should use it.

I do feel the sharpie docs aren't as up to date as the other xamarin tools docs are, I understand you guys are busy but this sort of thing hurts people trying to work with your product and makes them think it's not production-grade work.

Reisclef added a commit to Reisclef/xamarin-docs that referenced this issue Apr 26, 2022
Updated version to 3.4
Removed broken link to 3.4 forum post
Removed section regarding sharpie pod command due to xamarin/xamarin-macios#8238 stating that sharpie pod will be deprecated
davidbritch pushed a commit to MicrosoftDocs/xamarin-docs that referenced this issue May 10, 2022
Updated version to 3.4
Removed broken link to 3.4 forum post
Removed section regarding sharpie pod command due to xamarin/xamarin-macios#8238 stating that sharpie pod will be deprecated
johannperez added a commit to johannperez/xamarin-docs that referenced this issue Mar 2, 2023
According to @dalexsoto in this discussion [sharpie pod is deprecated](xamarin/xamarin-macios#8238)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-objective-sharpie Issues affecting the Objective Sharpie and are not specific to Xamarin.iOS or Xamarin.Mac
Projects
None yet
Development

No branches or pull requests

8 participants