From 6bafe62a9b006533367dbdd2175b14cc55e0fdd5 Mon Sep 17 00:00:00 2001 From: Marco Moschettini Date: Fri, 19 Jan 2024 12:25:10 +0100 Subject: [PATCH] chore: manually build app --- CubbitDS3Sync.xcodeproj/project.pbxproj | 40 +++++++++++++++++-------- Provider/FileProviderExtension.swift | 3 +- 2 files changed, 30 insertions(+), 13 deletions(-) diff --git a/CubbitDS3Sync.xcodeproj/project.pbxproj b/CubbitDS3Sync.xcodeproj/project.pbxproj index 444d7f5..7f9bf82 100644 --- a/CubbitDS3Sync.xcodeproj/project.pbxproj +++ b/CubbitDS3Sync.xcodeproj/project.pbxproj @@ -1290,10 +1290,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = CubbitDS3Sync/CubbitDS3Sync.entitlements; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_ASSET_PATHS = "\"CubbitDS3Sync/Preview Content\""; - DEVELOPMENT_TEAM = X889956QSM; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=macosx*]" = X889956QSM; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; @@ -1319,11 +1321,13 @@ MARKETING_VERSION = 1.2; PRODUCT_BUNDLE_IDENTIFIER = io.cubbit.CubbitDS3Sync; PRODUCT_NAME = "Cubbit DS3"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Cubbit DS3Sync"; SDKROOT = auto; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SUPPORTED_PLATFORMS = macosx; + SUPPORTS_MACCATALYST = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; }; @@ -1334,10 +1338,12 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = CubbitDS3Sync/CubbitDS3Sync.entitlements; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 2; DEVELOPMENT_ASSET_PATHS = "\"CubbitDS3Sync/Preview Content\""; - DEVELOPMENT_TEAM = X889956QSM; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=macosx*]" = X889956QSM; ENABLE_HARDENED_RUNTIME = YES; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; @@ -1363,11 +1369,13 @@ MARKETING_VERSION = 1.2; PRODUCT_BUNDLE_IDENTIFIER = io.cubbit.CubbitDS3Sync; PRODUCT_NAME = "Cubbit DS3"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Cubbit DS3Sync"; SDKROOT = auto; - SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SUPPORTED_PLATFORMS = macosx; + SUPPORTS_MACCATALYST = NO; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release; }; @@ -1448,9 +1456,11 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Provider/Provider.entitlements; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 2; - DEVELOPMENT_TEAM = X889956QSM; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=macosx*]" = X889956QSM; ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Provider/Info.plist; @@ -1465,6 +1475,8 @@ MARKETING_VERSION = 1.2; PRODUCT_BUNDLE_IDENTIFIER = io.cubbit.CubbitDS3Sync.Provider; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Cubbit DS3Sync Provider"; SDKROOT = macosx; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; @@ -1476,9 +1488,11 @@ isa = XCBuildConfiguration; buildSettings = { CODE_SIGN_ENTITLEMENTS = Provider/Provider.entitlements; - CODE_SIGN_STYLE = Automatic; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer"; + CODE_SIGN_STYLE = Manual; CURRENT_PROJECT_VERSION = 2; - DEVELOPMENT_TEAM = X889956QSM; + DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=macosx*]" = X889956QSM; ENABLE_HARDENED_RUNTIME = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Provider/Info.plist; @@ -1493,6 +1507,8 @@ MARKETING_VERSION = 1.2; PRODUCT_BUNDLE_IDENTIFIER = io.cubbit.CubbitDS3Sync.Provider; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=macosx*]" = "Cubbit DS3Sync Provider"; SDKROOT = macosx; SKIP_INSTALL = YES; SWIFT_EMIT_LOC_STRINGS = YES; diff --git a/Provider/FileProviderExtension.swift b/Provider/FileProviderExtension.swift index 130c98d..ba10b9c 100644 --- a/Provider/FileProviderExtension.swift +++ b/Provider/FileProviderExtension.swift @@ -259,13 +259,14 @@ class FileProviderExtension: NSObject, NSFileProviderReplicatedExtension /* TODO } if newContents == nil { + // TODO: Handle metadata changes completionHandler(item, NSFileProviderItemFields(), false, nil) return Progress() } // TODO: Handle versioning - // TODO: Handle metadata changes // TODO: Is it handling folders? + // TODO: Handle renaming self.logger.debug("Should upload modified file \(item.filename, privacy: .public)")