flatMap Deprecation and Overlapping accesses issues
MMooreGitHub opened this issue · comments
Class:
XCGLogger -> Core -> URL+XCGAdditions.swift
Issues:
- 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 - '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).