aharren / LibComponentLogging-Core

A small logging library for Objective-C applications (Mac OS X and iPhone OS/iOS) which provides conditional logging based on log levels and log components. Additionally, different logging strategies can be used, e.g. writing log messages to a file or sending them to the system log, while using the same logging interface.
http://0xc0.de/LibComponentLogging
110 stars 11 forks source link

Add CocoaPods pods without post_install hooks #24

Closed aharren closed 10 years ago

aharren commented 10 years ago

started https://github.com/aharren/LibComponentLogging-CocoaPods-NewSpecs

aharren commented 10 years ago

Some first new specs can be found here: https://github.com/aharren/LibComponentLogging-CocoaPods-NewSpecs The specs work out-of-the box if the lcl_config* files are created manually.

Initial version of the auto-configuration tool: https://github.com/aharren/LibComponentLogging-configure Users will have to run

lcl_configure pod

after a

pod install

lcl_configure will then analyze the Podfile.lock file and the Pods folder and then create the lcl_config* files based on the configured pods.

It's still under construction, and un-embedding of RestKit's logging infrastructure is still missing.

tscheepers commented 10 years ago

Great that you are working on this :+1:. I could not find any quick fix since cocoapods does not yet seem to be able to load local json podspecs.

aharren commented 10 years ago

Being pragmatic, if you want to give it a try, you can delete the LibComponentLogging-* pods from ~/.cocoapods/repos/master/Specs and copy the specs from https://github.com/aharren/LibComponentLogging-CocoaPods-NewSpecs there.

aharren commented 10 years ago

https://github.com/aharren/LibComponentLogging-configure now also supports integration of RestKit (>=0.20.0) by un-embedding it and integrating its log components into the central lcl_config_components.h file.

tscheepers commented 10 years ago

Thanks! Cloning the repository and moving the files into the local specs repository did work. :-)

For others having the same problem:

$ git clone https://github.com/aharren/LibComponentLogging-CocoaPods-NewSpecs.git
$ cd LibComponentLogging-CocoaPods-NewSpecs
$ mv specs/LibComponentLogging-Core/* ~/.cocoapods/repos/master/Specs/LibComponentLogging-Core/
aharren commented 10 years ago
$ pod repo add lcl https://github.com/aharren/LibComponentLogging-CocoaPods-NewSpecs.git

should also do the trick without the need to delete files from the master specs repository at ~/.cocoapods/repos/master

aharren commented 10 years ago

New specs are merged to https://github.com/CocoaPods/Specs.