Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
CocoaPods for '2.x' broken? #396
Comments
|
Just a guess, but ... should the branch be "2.x" ? On 20 December 2015 at 11:53, Brent Traut notifications@github.com wrote:
|
|
Oh, good eye! Unfortunately, that was a copy/paste error (somehow...?). I've got it correct in my project:
|
|
@btraut : I haven't duplicated this, but so far that looks like that should work, others have suggested the same thing and I made a pullreq ( #381 ) to add the same line to the readme. Oddly, I use cocoapods + the osx fork of svgkit, but don't even have an xcodeProjectData folder like you have in your screenshot, so go figure. Could you maybe try these things:
|
As far as I can tell, no import statements recognize it from the Swift side. Because SVGKit is an Objective-C project, I assumed I'd need to use a bridging header, but to your second point...
No, CocoaPods didn't build a folder under Pod > Headers. There's only Pod > Headers > Private, and it contains CocoaLumberjack but no SVGKit.
Oh, I was under the assumption that tvOS support had already merged in given the fact that there's a build target for it in the 2.x branch. I'll give that a shot and report back. Thanks! |
|
I couldn't figure out how to get the build in #375 working. It's a bit unrelated to this thread, but I was able to build and bridge to Swift manually:
|
|
What are the two versions of Lumberjack? If it's updated considerably, can someone please try latest as a commit on its own, check its working OK, then submit a PR? I don't want to update Lumberjack in the same commit as other changes! |
|
I've now upgraded project to latest Lumberjack - with tvOS compatibility - please download latest SVGKit (2.x branch) and see if it works |
|
Hi, I too am having difficulty getting the pod to install successfully. I also use Cocoalumberjack in my project however, and this should be completely independent, 'pod install' fails while both of these pods are disabled in my Podfile. When I say "both of these pods," I'm referring to: pod 'CocoaLumberjack/Swift' # 2.2 I haven't tried the lengthy approach @btraut has outlined to circumvent any current errors with either Cocoapods or the Podspec this repo may have but I may try this tomorrow as a last resort. Lastly, I'm confused as to what @btraut changed in the Podfile to include SVGKit in his project with regard to his original post.
looks identical in his first and second post. Am I missing something terribly obvious? |
|
2.x branch has been using lumberjack 2 for some time now, and is currently On 12 January 2016 9:21:01 am Alex Smith notifications@github.com wrote:
|
|
I also have an error using cocoapods My podfile contains this: This is the error I get:
I had no problems installing previous versions (2.0.0, 1.2) |
|
Cocoapods is not supported, as always. Whatever new problems CP creates: unless you can reproduce by simply On 12 January 2016 3:42:24 pm Tóth Balázs notifications@github.com wrote:
|
|
I have the same error as @tthbalazs Respectfully, @adamgit, it's not at all apparent that Cocoapods is NOT supported. In fact, the README indicates that it is! I'm using the latest stable version of Cocoapods. I don't know what version this repo may be using. 0.39.0 is the latest stable version while version 1.0.0.beta.2 is currently under development and available for public testing. Are you using a beta version? What version is @JohnWong using? Anyway, the point is that in an empty project, this pod fails to install every time. If this project doesn't support Cocoapods, then please update the README to reflect that. |
|
Thanks for the idea on readme. The install instructions don't cover CP, and I assumed it was obvious we On 13 January 2016 5:46:57 am Alex Smith notifications@github.com wrote:
|
|
@Shmaff I am using Cocoapods 0.39.0. I have found that the pch file referred in podspec file is missing. I have created a PR to fix this issue. You may wait for this PR to be merged or try this to see if it is really fixed:
|
|
@JohnWong I tried your fork and it works, thank you for the quick fix. |
|
Looks good to me, good find. I've merged it. On 13 January 2016 at 10:53, John Wong notifications@github.com wrote:
|
|
@adamgit Thank you, its working now |
|
As I understand it ... all is now working fine with CocoaPods (now that we've upgraded to latest Lumberjack, and fixed the reference in podfile that needed updating). Any new problems, please open new issues, but I'm closing this as Fixed. |
I'm trying to import SVGKit into my Swift tvOS project via CocoaPods and it's not working. I'm a newbie to both Swift development and CocoaPods, so I may be doing something wrong here.
I've added SVGKit to my podfile as such:
There are no errors upon installation and a folder for SVGKit is created (as well as for CocoaLumberjack). But the folder for SVGKit is empty both in the project file as well as on disk. From this point, I have no idea if it actually installed properly, and if so, how to import it.
This post suggests that CocoaPods should work fine but gives no instructions. Issue #189 also asks about using SVGKit with Swift, but the instructions on that thread seem to suggest that I need to manually download/import/configure, something I was hoping CocoaPods would do for me.
Thanks in advance!