question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Publish SonarKit.podspec to the CocoaPods Master Repository

See original GitHub issue

Currently SonarKit is published to the Facebook Sonar private repository. In order to get SonarKit.podspec published to the CocoaPods master repo, we first need to take care of fixing and publishing some of its direct dependencies:

  • Yoga podspec should be updated to include the DEFINES_MODULE directive. We should be opening an issue in Yoga, a PR and ask the owners of the repository to pod trunk the new podspec. There are other workarounds to avoid modifying the podspec, like setting the :modular_headers directive for Yoga in a Podfile, but that would prevent us from being able to lint and push the SonarKit.podspec to CocoaPods.

  • YogaKit has a dependency on the patch version of Yoga. We should tell the repository owners to avoid that, otherwise, if Yoga gets updated to 1.9 due to new API , or changes on its podspec, YogaKit won’t be able to pull a new minor version due to directly defining a dependency on a patch version. Long story short, YogaKit should depend on Yoga ~>1.8 instead of Yoga ~>1.8.1 or CocoaPods will treat 1.9 for example as a major version change, when it is not. Let’s make sure they publish the new podspec to the cocoapods master repo.

  • Sonar. Well, unfortunately for Sonar.podspec, there is already a published pod with the same name. There is no much we can do here, unless we change Sonar podspec name to something else so we can publish it, or build a subspec in SonarKit where we define Sonar, or make Sonar subspec part of our Core subspec. If we don’t see other iOS developers consuming Sonar.podspec as a direct dependency, and its always through SonarKit, maybe a subspec would be the best option here.

  • RSocket.podspec needs to be published to the cocoapods master repo. It doesn’t exist yet, so that is good for us. We need to create an issue and a PR in RSocket repository

  • Peertalk needs to also be updated. I already opened an issue #48 in PeerTalk asking them to generate a new tag using the latest commit since their podspec is pointing to an old commit that doesn’t include the latest codebase.

  • Folly. The latest pushed Folly.podspec seems so much different from the one SonarKit is depending. The one SonarKit depends on has more dependencies, more compiler flags, etc… We should get with the Folly owners and decide if our Folly.podspec should be pushed to cocoapods master

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
KrauseFxcommented, Nov 17, 2018

I was thinking about this more, I’d recommend grabbing the official name as soon as possible, and putting a placeholder there for now, until this issue is fully completed.

Right now, a malicious actor could easily grab the flipper name on CocoaPods, and cause damage rather easily by abusing the prepare_command spec, or other attack vectors.

1reaction
israelidannycommented, Dec 13, 2018

Is there an ETA for the Podpsec getting published on Cocoa Pods? And what’s an easy way to use Flipper meanwhile?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Refactor Sonar Podspec to include all of its dependencies · Issue ...
Ideally, we should be pushing the podspec to cocoapods master repo. Update PeerTalk.podspec ... I would love to publish SonarKit pod in cocoapods...
Read more >
Private Pods - CocoaPods Guides
There are a few steps to getting a private pods setup for your project; creating a private repository for them, letting CocoaPods know...
Read more >
Pod install is staying on "Setting up CocoaPods Master repo"
When you click the link from my post in the left-top corner in the search box type: command line tools and you have...
Read more >
Create and Distribute Private Libraries with Cocoapods
In this post I'm going to show you how to develop and distribute in-house private ... The Podspec repository needs to be created...
Read more >
Here's How to Easily Setup your Private CocoaPods Repository
Setting up your own private CocoaPods repository is easy by following a few steps!1. Create and git push your Pod Library2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found