From dd7a9d20b6a6b61cc591aaee1b4e55f016d29b89 Mon Sep 17 00:00:00 2001 From: Amir Abbas Date: Fri, 14 Apr 2017 23:26:40 +0430 Subject: [PATCH] Fixed macOS build error --- FileProvider.podspec | 2 +- FileProvider.xcodeproj/project.pbxproj | 4 ++-- Sources/FileProvider.swift | 2 +- Sources/RemoteSession.swift | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/FileProvider.podspec b/FileProvider.podspec index 803171e..a279941 100644 --- a/FileProvider.podspec +++ b/FileProvider.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "FileProvider" - s.version = "0.16.0" + s.version = "0.16.1" s.summary = "FileManager replacement for Local and Remote (WebDAV/FTP/Dropbox/OneDrive/SMB2) files on iOS and macOS." # This description is used to generate tags and improve search results. diff --git a/FileProvider.xcodeproj/project.pbxproj b/FileProvider.xcodeproj/project.pbxproj index 21a530e..9103be8 100644 --- a/FileProvider.xcodeproj/project.pbxproj +++ b/FileProvider.xcodeproj/project.pbxproj @@ -621,7 +621,7 @@ 799396601D48B7BF00086753 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - BUNDLE_VERSION_STRING = 0.16.0; + BUNDLE_VERSION_STRING = 0.16.1; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; @@ -652,7 +652,7 @@ 799396611D48B7BF00086753 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - BUNDLE_VERSION_STRING = 0.16.0; + BUNDLE_VERSION_STRING = 0.16.1; CLANG_WARN_BOOL_CONVERSION = YES; CLANG_WARN_CONSTANT_CONVERSION = YES; CLANG_WARN_EMPTY_BODY = YES; diff --git a/Sources/FileProvider.swift b/Sources/FileProvider.swift index 75513f2..2b6fd98 100644 --- a/Sources/FileProvider.swift +++ b/Sources/FileProvider.swift @@ -691,7 +691,7 @@ extension FileProviderBasic { } var i = number ?? 2 let similiar = contents.map { - $0.url.lastPathComponent ?? $0.name + $0.url.lastPathComponent.isEmpty ? $0.name : $0.url.lastPathComponent }.filter { $0.hasPrefix(result) } diff --git a/Sources/RemoteSession.swift b/Sources/RemoteSession.swift index cfe81bc..25a2f11 100644 --- a/Sources/RemoteSession.swift +++ b/Sources/RemoteSession.swift @@ -142,7 +142,7 @@ final public class SessionDelegate: NSObject, URLSessionDataDelegate, URLSession if !(task is URLSessionDownloadTask), case FileOperationType.fetch = op { return } - if #available(iOSApplicationExtension 9.0, *) { + if #available(iOS 9.0, macOS 10.11, *) { if task is URLSessionStreamTask { return }