DaveWoodCom / XCGLogger

A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flatMap Deprecation and Overlapping accesses issues

MMooreGitHub opened this issue · comments

Class:
XCGLogger -> Core -> URL+XCGAdditions.swift

Issues:

  1. I'm receiving the following warning using Pod version 6.0.2
    'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
  2. 'Overlapping accesses to 'data', but modification requires exclusive access; consider copying to a local variable' Lines 26 & 70

There's already a patch for it, but the updated pod is not released yet.

Meanwhile, you can change your Podfile and use the master branch:

pod 'XCGLogger', :git => 'https://github.com/DaveWoodCom/XCGLogger.git'

Then do a pod install and the warnings should be gone.

Ok, thank you @ijaureguialzo. I appreciate the advice and look forward to the update.

The overlapping access is now a failure with the new Xcode beta released today. Any chance of getting a release?

Yes. Working on it.

Excellent, thank you.

6.0.4 is now available as a pod etc. Fixes these issues (and a few more).