Cocoapods: turning MagicalRecord logging off

You can use a post_install hook to modify pretty much any build setting. Just add this code to your Podfile: post_install do |installer| target = installer.project.targets.find{|t| t.to_s == “Pods-MagicalRecord”} target.build_configurations.each do |config| s = config.build_settings[‘GCC_PREPROCESSOR_DEFINITIONS’] s = [ ‘$(inherited)’ ] if s == nil; s.push(‘MR_ENABLE_ACTIVE_RECORD_LOGGING=0’) if config.to_s == “Debug”; config.build_settings[‘GCC_PREPROCESSOR_DEFINITIONS’] = s end end Note … Read more

How to save Array to CoreData?

Ok, I made some research and testing. Using Transformable type, solution is simple: 1. What do I declare inside my NSManagedObject class? @NSManaged var values: [NSNumber] //[Double] also works 2. What do I declare inside my .xcdatamodel? Transformable data type. 3. How do I save this in my Entity? statistics!.values = [23, 45, 567.8, 123, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)