defagos / CoconutKit

CoconutKit is a productivity framework for iOS, crafted with love and focusing on ease of use
Other
1.15k stars 111 forks source link

CocoaPod for 2.0.x #23

Closed HiveHicks closed 11 years ago

HiveHicks commented 11 years ago

I need the ability to debug CoconutKit code in order to find out why the code below returns nil to me. I'm using version 2.0.1 (binary). But there is no such version of library in CocoaPods and no easy way to include sources in my project. Any suggestions? Maybe you could tell me why the following doesn't work:

    HLSModelManager *modelManager =
            [HLSModelManager SQLiteManagerWithModelFileName:@"CoreDataDb"
                                              configuration:nil
                                             storeDirectory:[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]
                                                    options:HLSModelManagerLightweightMigrationOptions];

modelManager remains nil after that.

UPD. Although modelManager is nil, I can see the database file in user documents directory.

defagos commented 11 years ago

Version 2.0.2 is available using CocoaPods, maybe your local spec repository is not up-to-date.

Since CoconutKit 2 you can now also build debug libraries yourself if you need to be able to debug CoconutKit internals (checkout the project, open the workspace, build the CoconutKit-staticframework target, add the binaries to your project, and enable HLSLogger logging)

I hope this will let you investigate your issue further. I have probably forgotten to cleanup the database file when HLSModelManager creation fails. I will fix this issue in an upcoming version. Thanks for your feedback.

HiveHicks commented 11 years ago

Thank you! You were right, I just had to update my local spec repo.