Fix building issues with XCode
This commit is contained in:
parent
6f5385fe4a
commit
440b0123f2
7 changed files with 13 additions and 68 deletions
|
|
@ -150,7 +150,6 @@
|
||||||
9A996C5726DDF65900A4485D /* Base32 in Frameworks */ = {isa = PBXBuildFile; productRef = 9A996C5626DDF65900A4485D /* Base32 */; };
|
9A996C5726DDF65900A4485D /* Base32 in Frameworks */ = {isa = PBXBuildFile; productRef = 9A996C5626DDF65900A4485D /* Base32 */; };
|
||||||
9A996C5826DEB0D100A4485D /* passKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; };
|
9A996C5826DEB0D100A4485D /* passKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; };
|
||||||
9A996C5926DEB0D200A4485D /* passKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
9A996C5926DEB0D200A4485D /* passKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
|
||||||
9A996C5E26DEB79E00A4485D /* passKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; };
|
|
||||||
9A996C6426DEB93F00A4485D /* passAutoFillExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A239F5952158C08B00576CBF /* passAutoFillExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
9A996C6426DEB93F00A4485D /* passAutoFillExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A239F5952158C08B00576CBF /* passAutoFillExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
9A996C6826DEB96B00A4485D /* passShortcuts.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 30A69945240EED5E00B7D967 /* passShortcuts.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
9A996C6826DEB96B00A4485D /* passShortcuts.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 30A69945240EED5E00B7D967 /* passShortcuts.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
9A996C6B26DEB97600A4485D /* passExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A26700241EEC466A00176B8A /* passExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
9A996C6B26DEB97600A4485D /* passExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A26700241EEC466A00176B8A /* passExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
|
||||||
|
|
@ -192,6 +191,7 @@
|
||||||
DC037CBC1E4DD47B00609409 /* TextFieldTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DC037CBA1E4DD47B00609409 /* TextFieldTableViewCell.xib */; };
|
DC037CBC1E4DD47B00609409 /* TextFieldTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DC037CBA1E4DD47B00609409 /* TextFieldTableViewCell.xib */; };
|
||||||
DC037CBF1E4ED4E100609409 /* TextViewTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC037CBD1E4ED4E100609409 /* TextViewTableViewCell.swift */; };
|
DC037CBF1E4ED4E100609409 /* TextViewTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC037CBD1E4ED4E100609409 /* TextViewTableViewCell.swift */; };
|
||||||
DC037CC01E4ED4E100609409 /* TextViewTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DC037CBE1E4ED4E100609409 /* TextViewTableViewCell.xib */; };
|
DC037CC01E4ED4E100609409 /* TextViewTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = DC037CBE1E4ED4E100609409 /* TextViewTableViewCell.xib */; };
|
||||||
|
DC0F7692283C00220042DA74 /* passKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; };
|
||||||
DC193FFA1E49B4430077E0A3 /* AdvancedSettingsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC193FF91E49B4430077E0A3 /* AdvancedSettingsTableViewController.swift */; };
|
DC193FFA1E49B4430077E0A3 /* AdvancedSettingsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC193FF91E49B4430077E0A3 /* AdvancedSettingsTableViewController.swift */; };
|
||||||
DC3E64E61E656F11009A83DE /* CommitLogsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC3E64E51E656F11009A83DE /* CommitLogsTableViewController.swift */; };
|
DC3E64E61E656F11009A83DE /* CommitLogsTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC3E64E51E656F11009A83DE /* CommitLogsTableViewController.swift */; };
|
||||||
DC4914961E434301007FF592 /* LabelTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC4914941E434301007FF592 /* LabelTableViewCell.swift */; };
|
DC4914961E434301007FF592 /* LabelTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = DC4914941E434301007FF592 /* LabelTableViewCell.swift */; };
|
||||||
|
|
@ -514,7 +514,7 @@
|
||||||
isa = PBXFrameworksBuildPhase;
|
isa = PBXFrameworksBuildPhase;
|
||||||
buildActionMask = 2147483647;
|
buildActionMask = 2147483647;
|
||||||
files = (
|
files = (
|
||||||
9A996C5E26DEB79E00A4485D /* passKit.framework in Frameworks */,
|
DC0F7692283C00220042DA74 /* passKit.framework in Frameworks */,
|
||||||
30A3001826DA6974002A734E /* SwiftyUserDefaults in Frameworks */,
|
30A3001826DA6974002A734E /* SwiftyUserDefaults in Frameworks */,
|
||||||
);
|
);
|
||||||
runOnlyForDeploymentPostprocessing = 0;
|
runOnlyForDeploymentPostprocessing = 0;
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import passAutoFillExtension
|
||||||
import passKit
|
import passKit
|
||||||
import SVProgressHUD
|
import SVProgressHUD
|
||||||
import UIKit
|
import UIKit
|
||||||
|
import YubiKit
|
||||||
|
|
||||||
class PasswordDetailTableViewController: UITableViewController, UIGestureRecognizerDelegate, AlertPresenting {
|
class PasswordDetailTableViewController: UITableViewController, UIGestureRecognizerDelegate, AlertPresenting {
|
||||||
var passwordEntity: PasswordEntity?
|
var passwordEntity: PasswordEntity?
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,5 @@
|
||||||
#define Objective_CBridgingHeader_h
|
#define Objective_CBridgingHeader_h
|
||||||
|
|
||||||
@import ObjectiveGit;
|
@import ObjectiveGit;
|
||||||
#import "YubiKit.h"
|
|
||||||
|
|
||||||
#endif /* Objective_CBridgingHeader_h */
|
#endif /* Objective_CBridgingHeader_h */
|
||||||
|
|
|
||||||
|
|
@ -11,72 +11,16 @@ import SwiftyUserDefaults
|
||||||
|
|
||||||
// Workaround for Xcode 13: https://github.com/sunshinejr/SwiftyUserDefaults/issues/285
|
// Workaround for Xcode 13: https://github.com/sunshinejr/SwiftyUserDefaults/issues/285
|
||||||
|
|
||||||
extension DefaultsSerializable {
|
public extension DefaultsSerializable where Self: Codable {
|
||||||
public static var _defaultsArray: DefaultsArrayBridge<[T]> { return DefaultsArrayBridge() }
|
typealias Bridge = DefaultsCodableBridge<Self>
|
||||||
}
|
typealias ArrayBridge = DefaultsCodableBridge<[Self]>
|
||||||
extension Date: DefaultsSerializable {
|
|
||||||
public static var _defaults: DefaultsObjectBridge<Date> { return DefaultsObjectBridge() }
|
|
||||||
}
|
|
||||||
extension String: DefaultsSerializable {
|
|
||||||
public static var _defaults: DefaultsStringBridge { return DefaultsStringBridge() }
|
|
||||||
}
|
|
||||||
extension Int: DefaultsSerializable {
|
|
||||||
public static var _defaults: DefaultsIntBridge { return DefaultsIntBridge() }
|
|
||||||
}
|
|
||||||
extension Double: DefaultsSerializable {
|
|
||||||
public static var _defaults: DefaultsDoubleBridge { return DefaultsDoubleBridge() }
|
|
||||||
}
|
|
||||||
extension Bool: DefaultsSerializable {
|
|
||||||
public static var _defaults: DefaultsBoolBridge { return DefaultsBoolBridge() }
|
|
||||||
}
|
|
||||||
extension Data: DefaultsSerializable {
|
|
||||||
public static var _defaults: DefaultsDataBridge { return DefaultsDataBridge() }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension URL: DefaultsSerializable {
|
public extension DefaultsSerializable where Self: RawRepresentable {
|
||||||
#if os(Linux)
|
typealias Bridge = DefaultsRawRepresentableBridge<Self>
|
||||||
public static var _defaults: DefaultsKeyedArchiverBridge<URL> { return DefaultsKeyedArchiverBridge() }
|
typealias ArrayBridge = DefaultsRawRepresentableArrayBridge<[Self]>
|
||||||
#else
|
|
||||||
public static var _defaults: DefaultsUrlBridge { return DefaultsUrlBridge() }
|
|
||||||
#endif
|
|
||||||
public static var _defaultsArray: DefaultsKeyedArchiverBridge<[URL]> { return DefaultsKeyedArchiverBridge() }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extension DefaultsSerializable where Self: Codable {
|
|
||||||
public static var _defaults: DefaultsCodableBridge<Self> { return DefaultsCodableBridge() }
|
|
||||||
public static var _defaultsArray: DefaultsCodableBridge<[Self]> { return DefaultsCodableBridge() }
|
|
||||||
}
|
|
||||||
|
|
||||||
extension DefaultsSerializable where Self: RawRepresentable {
|
|
||||||
public static var _defaults: DefaultsRawRepresentableBridge<Self> { return DefaultsRawRepresentableBridge() }
|
|
||||||
public static var _defaultsArray: DefaultsRawRepresentableArrayBridge<[Self]> { return DefaultsRawRepresentableArrayBridge() }
|
|
||||||
}
|
|
||||||
|
|
||||||
extension DefaultsSerializable where Self: NSCoding {
|
|
||||||
public static var _defaults: DefaultsKeyedArchiverBridge<Self> { return DefaultsKeyedArchiverBridge() }
|
|
||||||
public static var _defaultsArray: DefaultsKeyedArchiverBridge<[Self]> { return DefaultsKeyedArchiverBridge() }
|
|
||||||
}
|
|
||||||
|
|
||||||
extension Dictionary: DefaultsSerializable where Key == String {
|
|
||||||
public typealias T = [Key: Value]
|
|
||||||
public typealias Bridge = DefaultsObjectBridge<T>
|
|
||||||
public typealias ArrayBridge = DefaultsArrayBridge<[T]>
|
|
||||||
public static var _defaults: Bridge { return Bridge() }
|
|
||||||
public static var _defaultsArray: ArrayBridge { return ArrayBridge() }
|
|
||||||
}
|
|
||||||
extension Array: DefaultsSerializable where Element: DefaultsSerializable {
|
|
||||||
public typealias T = [Element.T]
|
|
||||||
public typealias Bridge = Element.ArrayBridge
|
|
||||||
public typealias ArrayBridge = DefaultsObjectBridge<[T]>
|
|
||||||
public static var _defaults: Bridge {
|
|
||||||
return Element._defaultsArray
|
|
||||||
}
|
|
||||||
public static var _defaultsArray: ArrayBridge {
|
|
||||||
fatalError("Multidimensional arrays are not supported yet")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public var Defaults = DefaultsAdapter(defaults: UserDefaults(suiteName: Globals.groupIdentifier)!, keyStore: DefaultsKeys())
|
public var Defaults = DefaultsAdapter(defaults: UserDefaults(suiteName: Globals.groupIdentifier)!, keyStore: DefaultsKeys())
|
||||||
|
|
||||||
public enum KeySource: String, DefaultsSerializable {
|
public enum KeySource: String, DefaultsSerializable {
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,6 @@
|
||||||
// Copyright © 2019 Bob Sun. All rights reserved.
|
// Copyright © 2019 Bob Sun. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
import SwiftyUserDefaults
|
|
||||||
|
|
||||||
public enum SearchBarScope: Int {
|
public enum SearchBarScope: Int {
|
||||||
case current
|
case current
|
||||||
case all
|
case all
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}"
|
||||||
SWIFTFORMAT_VERSION="0.49.*"
|
SWIFTFORMAT_VERSION="0.49.*"
|
||||||
|
|
||||||
if [[ "${CI}" == "true" ]]; then
|
if [[ "${CI}" == "true" ]]; then
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
SWIFTLINT_VERSION="0.46.*"
|
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}"
|
||||||
|
|
||||||
|
SWIFTLINT_VERSION="0.47.*"
|
||||||
|
|
||||||
if [[ "${CI}" == "true" ]]; then
|
if [[ "${CI}" == "true" ]]; then
|
||||||
echo "Running in a Continuous Integration environment. Linting is skipped."
|
echo "Running in a Continuous Integration environment. Linting is skipped."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue