Skip to content

Commit

Permalink
Move +load method into a specific loader class, entirely defined in o…
Browse files Browse the repository at this point in the history
…bjective-c, to avoid crash on XCode 15 beta
  • Loading branch information
Enricoza committed Aug 7, 2023
1 parent 57205da commit 5810e15
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 8 additions & 8 deletions builder/tealium-swift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@
1563CEC926DFAA3300A1DAD1 /* PubSubTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1563CEC826DFAA3300A1DAD1 /* PubSubTests.swift */; };
1563CECA26DFAA3300A1DAD1 /* PubSubTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1563CEC826DFAA3300A1DAD1 /* PubSubTests.swift */; };
1563CECB26DFAA3300A1DAD1 /* PubSubTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1563CEC826DFAA3300A1DAD1 /* PubSubTests.swift */; };
1566C23F272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.h in Headers */ = {isa = PBXBuildFile; fileRef = 1566C23B272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.h */; };
1566C241272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.m in Sources */ = {isa = PBXBuildFile; fileRef = 1566C23E272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.m */; };
1566C23F272C460800FE9A5A /* TealiumDelegateProxyLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 1566C23B272C460800FE9A5A /* TealiumDelegateProxyLoader.h */; };
1566C241272C460800FE9A5A /* TealiumDelegateProxyLoader.m in Sources */ = {isa = PBXBuildFile; fileRef = 1566C23E272C460800FE9A5A /* TealiumDelegateProxyLoader.m */; };
156CB50C26CD4ACB005EFEDB /* AnyCodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 156CB50B26CD4ACB005EFEDB /* AnyCodableTests.swift */; };
156CB50D26CD4ACB005EFEDB /* AnyCodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 156CB50B26CD4ACB005EFEDB /* AnyCodableTests.swift */; };
156CB50E26CD4ACB005EFEDB /* AnyCodableTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 156CB50B26CD4ACB005EFEDB /* AnyCodableTests.swift */; };
Expand Down Expand Up @@ -2146,8 +2146,8 @@
1555F5CE26E6769E00AFDC3D /* MockInMemoryDataLayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MockInMemoryDataLayer.swift; sourceTree = "<group>"; };
1555F5E126E6786100AFDC3D /* TealiumAutotrackingTests-tvOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "TealiumAutotrackingTests-tvOS.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
1563CEC826DFAA3300A1DAD1 /* PubSubTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PubSubTests.swift; sourceTree = "<group>"; };
1566C23B272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "TealiumDelegateProxy+Swizzle.h"; sourceTree = "<group>"; };
1566C23E272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "TealiumDelegateProxy+Swizzle.m"; sourceTree = "<group>"; };
1566C23B272C460800FE9A5A /* TealiumDelegateProxyLoader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TealiumDelegateProxyLoader.h; sourceTree = "<group>"; };
1566C23E272C460800FE9A5A /* TealiumDelegateProxyLoader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TealiumDelegateProxyLoader.m; sourceTree = "<group>"; };
156C322F282A822E00D823E1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };
156CB50B26CD4ACB005EFEDB /* AnyCodableTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AnyCodableTests.swift; sourceTree = "<group>"; };
158CA93626B9478100748A80 /* TealiumASIdentifierManagerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TealiumASIdentifierManagerTests.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3017,8 +3017,8 @@
1566C23A272C460800FE9A5A /* objc */ = {
isa = PBXGroup;
children = (
1566C23B272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.h */,
1566C23E272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.m */,
1566C23B272C460800FE9A5A /* TealiumDelegateProxyLoader.h */,
1566C23E272C460800FE9A5A /* TealiumDelegateProxyLoader.m */,
);
path = objc;
sourceTree = "<group>";
Expand Down Expand Up @@ -4094,7 +4094,7 @@
D773AC77234FCA5300D584DD /* TealiumReadWrite.swift in Headers */,
D773AC78234FCA5300D584DD /* TealiumRepeatingTimer.swift in Headers */,
D773AC79234FCA5300D584DD /* TealiumUtils.swift in Headers */,
1566C23F272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.h in Headers */,
1566C23F272C460800FE9A5A /* TealiumDelegateProxyLoader.h in Headers */,
D773AC80234FCA5300D584DD /* Disk+Codable.swift in Headers */,
D773AC83234FCA5300D584DD /* Disk+InternalHelpers.swift in Headers */,
D773AC84234FCA5300D584DD /* Disk+VolumeInformation.swift in Headers */,
Expand Down Expand Up @@ -6408,7 +6408,7 @@
4BD9037224F5CED40041EFA0 /* Double+Tealium.swift in Sources */,
D719956322B8E97E005BE543 /* TealiumDiskStorage.swift in Sources */,
D7AA280822D780CB00254ADB /* AtomicInteger.swift in Sources */,
1566C241272C460800FE9A5A /* TealiumDelegateProxy+Swizzle.m in Sources */,
1566C241272C460800FE9A5A /* TealiumDelegateProxyLoader.m in Sources */,
D719955322B7F190005BE543 /* Disk+Codable.swift in Sources */,
D77E0B1C24521F0200A3E0C1 /* TealiumRequests.swift in Sources */,
D79A1CAC244A0FF500BBA8B3 /* DeviceDataModelInfo.swift in Sources */,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// TealiumDelegateProxy+Swizzle.h
// TealiumDelegateProxyLoader.h
// TealiumCore
//
// Created by Enrico Zannini on 18/10/21.
Expand All @@ -11,9 +11,9 @@

//NS_ASSUME_NONNULL_BEGIN

//@interface TealiumDelegateProxy (Swizzle)
//
//@end
@interface TealiumDelegateProxyLoader: NSObject

@end

//NS_ASSUME_NONNULL_END

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// TealiumDelegateProxy+Swizzle.m
// TealiumDelegateProxyLoader.m
// TealiumCore
//
// Created by Enrico Zannini on 18/10/21.
// Copyright © 2021 Tealium, Inc. All rights reserved.
//

#import "TealiumDelegateProxy+Swizzle.h"
#import "TealiumDelegateProxyLoader.h"
#if TARGET_OS_IOS

#if COCOAPODS
Expand All @@ -23,10 +23,10 @@
#endif
#endif

@implementation TealiumDelegateProxy (Swizzle)
@implementation TealiumDelegateProxyLoader

+ (void)load {
[self setup];
+(void)load {
[TealiumDelegateProxy setup];
}

@end
Expand Down

0 comments on commit 5810e15

Please sign in to comment.