From f7d27c348eb3330ba943ed42d46158c72fd36406 Mon Sep 17 00:00:00 2001 From: Muhammad Ibrar Date: Fri, 8 Mar 2024 16:24:51 +0500 Subject: [PATCH] Fixed Xcode 15.3 archive issue --- HandyJSON.xcodeproj/project.pbxproj | 12 ++++++------ Source/Metadata.swift | 10 ++++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/HandyJSON.xcodeproj/project.pbxproj b/HandyJSON.xcodeproj/project.pbxproj index 7913ee0..507a225 100644 --- a/HandyJSON.xcodeproj/project.pbxproj +++ b/HandyJSON.xcodeproj/project.pbxproj @@ -1323,7 +1323,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = "$(SRCROOT)/Source/Info-iOS.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.aliyun.app.HandyJSON; PRODUCT_NAME = "$(PROJECT_NAME)"; @@ -1347,7 +1347,7 @@ ENABLE_BITCODE = NO; INFOPLIST_FILE = "$(SRCROOT)/Source/Info-iOS.plist"; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.aliyun.app.HandyJSON; PRODUCT_NAME = "$(PROJECT_NAME)"; @@ -1366,7 +1366,7 @@ DEVELOPMENT_TEAM = QBMN2BBW3K; ENABLE_BITCODE = NO; INFOPLIST_FILE = HandyJSONDemo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.aliyun.app.HandyJSONDemo; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1386,7 +1386,7 @@ DEVELOPMENT_TEAM = QBMN2BBW3K; ENABLE_BITCODE = NO; INFOPLIST_FILE = HandyJSONDemo/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.aliyun.app.HandyJSONDemo; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1402,7 +1402,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = "Tests/HandyJSONTests/Info-iOS.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.aliyun.app.HandyJSONTests; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1417,7 +1417,7 @@ BUNDLE_LOADER = "$(TEST_HOST)"; DEVELOPMENT_TEAM = ""; INFOPLIST_FILE = "Tests/HandyJSONTests/Info-iOS.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 8.0; + IPHONEOS_DEPLOYMENT_TARGET = 12.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; PRODUCT_BUNDLE_IDENTIFIER = com.aliyun.app.HandyJSONTests; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Source/Metadata.swift b/Source/Metadata.swift index 35d78b3..4f88b7d 100755 --- a/Source/Metadata.swift +++ b/Source/Metadata.swift @@ -292,11 +292,13 @@ extension Metadata { } for i in 0.. Any.Type?] = [ + "function": { _getTypeByMangledNameInContext(mangledTypeName, UInt(getMangledTypeNameSize(mangledTypeName)), genericContext: self.contextDescriptorPointer, genericArguments: self.genericArgumentVector) } + ] - result.append(Property.Description(key: name, type: fieldType, offset: fieldOffsets[i])) - } + guard let function = functionMap["function"], let fieldType = function() else { continue } + result.append(Property.Description(key: name, type: fieldType, offset: fieldOffsets[i])) } return result }