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

Pods #8

Closed
decanus opened this issue May 5, 2021 · 11 comments
Closed

Pods #8

decanus opened this issue May 5, 2021 · 11 comments

Comments

@decanus
Copy link

decanus commented May 5, 2021

What is required to get this running with cocoapods? I would love to get it into my app but sadly need it as a pod.

@stasel
Copy link
Owner

stasel commented May 6, 2021

Unfortunately I get an error when trying to publish the pod (Related issue].

I suggest to either link the framework manually for now or as a workaround you can clone the repo and in your Podfile specify a local path to the podspec.
Alternatively you can add the repo as a git submodule as well.

Not the best solution and I hope that the next version of Cocoapods will fix the error I have

@decanus
Copy link
Author

decanus commented May 6, 2021

@stasel idk if local linking will work, when I try to link it by using a manual git path it comes up as empty.

@stasel
Copy link
Owner

stasel commented May 6, 2021

I think linking it directly to your project(s) without cocoapods using xcode should work as well if thats an option.

There is a podspec in the library which I think works locally.

Let me know if you kind a good way to use the podspec without publishing the pod

@decanus
Copy link
Author

decanus commented May 6, 2021

Will have a look, the issue is linking the framework is a bit of a hasstle right now because it is even too big to upload to github.

@decanus
Copy link
Author

decanus commented May 8, 2021

Ok @stasel can confirm the pod does not work locally, when trying to import WebRTC it is not found. It also looks like the pod is empty.

@stasel
Copy link
Owner

stasel commented May 8, 2021

Thanks for checking this out,
Is using Carthage an acceptable workaround for you? I just added instructions in the README file how to add the library using Carthage

@decanus
Copy link
Author

decanus commented May 8, 2021

I wonder if the issue could be that the zip file and framework name do not match?

@stasel
Copy link
Owner

stasel commented May 8, 2021

I tried to change the zip file name but I got the same issue with pod spec lint. I think it's a cocoapods issue with xcframework files

@stasel
Copy link
Owner

stasel commented May 27, 2021

Opened a ticket in Cocoapods. Lets hope it will get fixed soon
CocoaPods/CocoaPods#10638

@stasel
Copy link
Owner

stasel commented Aug 15, 2021

Update: After discussing the problem with cocoapods contributor, I managed to solve the problem. Cocoapods will be supported in the next release: M93 🎉

@stasel
Copy link
Owner

stasel commented Sep 2, 2021

Cocoapods is now supported.
You can add the following line to your Podfile:

pod 'WebRTC-lib'

and run pod install

@stasel stasel closed this as completed Sep 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants