Skip to content

Commit

Permalink
finally re-branded to classdump-c, classdumpios was no longer an accu…
Browse files Browse the repository at this point in the history
…rate descriptor of this project. cleaned up some build warnings
  • Loading branch information
lechium committed Jul 18, 2022
1 parent 45e0bcc commit 7bf16e2
Show file tree
Hide file tree
Showing 16 changed files with 64 additions and 102 deletions.
8 changes: 4 additions & 4 deletions build_debug.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
XCP=$(/usr/bin/which xcpretty)

if [ -z $XCP ]; then
xcodebuild -target classdumpios -configuration Debug
xcodebuild -target classdumpc -configuration Debug
xcodebuild -target classdump -configuration Debug
xcodebuild -target classdump-ios -configuration Debug
xcodebuild -target classdumpios-bin -configuration Debug
xcodebuild -target classdumpc-bin -configuration Debug
xcodebuild -target classdumptvos-bin -configuration Debug
else
xcodebuild -target classdumpios -configuration Debug | $XCP
xcodebuild -target classdumpc -configuration Debug | $XCP
xcodebuild -target classdump -configuration Debug | $XCP
xcodebuild -target classdump-ios -configuration Debug | $XCP
xcodebuild -target classdumpios-bin -configuration Debug | $XCP
xcodebuild -target classdumpc-bin -configuration Debug | $XCP
xcodebuild -target classdumptvos-bin -configuration Debug | $XCP
fi
12 changes: 6 additions & 6 deletions build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
XCP=$(/usr/bin/which xcpretty)

if [ -z $XCP ]; then
xcodebuild -target classdumpios -configuration Release
xcodebuild -target classdumpc -configuration Release
xcodebuild -target classdump -configuration Release
xcodebuild -target classdump-ios -configuration Release
xcodebuild -target classdumpios-bin -configuration Release
xcodebuild -target classdumpc-bin -configuration Release
xcodebuild -target classdumptvos-bin -configuration Release
else
xcodebuild -target classdumpios -configuration Release | $XCP
xcodebuild -target classdumpc -configuration Release | $XCP
xcodebuild -target classdump -configuration Release | $XCP
xcodebuild -target classdump-ios -configuration Release | $XCP
xcodebuild -target classdumpios-bin -configuration Release | $XCP
xcodebuild -target classdumpc-bin -configuration Release | $XCP
xcodebuild -target classdumptvos-bin -configuration Release | $XCP
fi

rm classdumpios-release
cp build/Release/classdumpios classdumpios-release
rm classdumpc-release
cp build/Release/classdumpc classdumpc-release
Original file line number Diff line number Diff line change
Expand Up @@ -609,13 +609,13 @@
32B1AACB2869458200CDFF07 /* CDLCExportTRIEData.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CDLCExportTRIEData.m; sourceTree = "<group>"; };
32B1AB10286966C000CDFF07 /* CDLCChainedFixups.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CDLCChainedFixups.h; sourceTree = "<group>"; };
32B1AB11286966C000CDFF07 /* CDLCChainedFixups.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CDLCChainedFixups.m; sourceTree = "<group>"; };
4BBC09EF288468F700730798 /* classdumpios-bin */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "classdumpios-bin"; sourceTree = BUILT_PRODUCTS_DIR; };
4BBC09EF288468F700730798 /* classdumpc-bin */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "classdumpc-bin"; sourceTree = BUILT_PRODUCTS_DIR; };
4BBC0A4728859ED400730798 /* classdumptvos-bin */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = "classdumptvos-bin"; sourceTree = BUILT_PRODUCTS_DIR; };
4C01BD2928821ECE007DEA0F /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
4C01BDD3288235C5007DEA0F /* libclassdump-ios.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libclassdump-ios.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4C0F4067286E301800C2E934 /* NSData+Flip.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSData+Flip.h"; sourceTree = "<group>"; };
4C0F4068286E301800C2E934 /* NSData+Flip.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = "NSData+Flip.mm"; sourceTree = "<group>"; };
4C952D0D2837E11D00BFE504 /* classdumpios */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = classdumpios; sourceTree = BUILT_PRODUCTS_DIR; };
4C952D0D2837E11D00BFE504 /* classdumpc */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = classdumpc; sourceTree = BUILT_PRODUCTS_DIR; };
4C952D182837E18500BFE504 /* CDLCDataInCode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDLCDataInCode.m; sourceTree = "<group>"; };
4C952D192837E18500BFE504 /* NSString-CDExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSString-CDExtensions.m"; sourceTree = "<group>"; };
4C952D1A2837E18500BFE504 /* NSError-CDExtensions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSError-CDExtensions.m"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1074,10 +1074,10 @@
4C952D0E2837E11D00BFE504 /* Products */ = {
isa = PBXGroup;
children = (
4C952D0D2837E11D00BFE504 /* classdumpios */,
4C952D0D2837E11D00BFE504 /* classdumpc */,
4CDA2A80286263F800566FBB /* libclassdump.a */,
4C01BDD3288235C5007DEA0F /* libclassdump-ios.a */,
4BBC09EF288468F700730798 /* classdumpios-bin */,
4BBC09EF288468F700730798 /* classdumpc-bin */,
4BBC0A4728859ED400730798 /* classdumptvos-bin */,
);
name = Products;
Expand Down Expand Up @@ -1305,9 +1305,9 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
4BBC0998288468F700730798 /* classdumpios-bin */ = {
4BBC0998288468F700730798 /* classdumpc-bin */ = {
isa = PBXNativeTarget;
buildConfigurationList = 4BBC09EC288468F700730798 /* Build configuration list for PBXNativeTarget "classdumpios-bin" */;
buildConfigurationList = 4BBC09EC288468F700730798 /* Build configuration list for PBXNativeTarget "classdumpc-bin" */;
buildPhases = (
4BBC0999288468F700730798 /* Sources */,
4BBC09EA288468F700730798 /* Frameworks */,
Expand All @@ -1317,9 +1317,9 @@
);
dependencies = (
);
name = "classdumpios-bin";
name = "classdumpc-bin";
productName = classdumpios;
productReference = 4BBC09EF288468F700730798 /* classdumpios-bin */;
productReference = 4BBC09EF288468F700730798 /* classdumpc-bin */;
productType = "com.apple.product-type.library.dynamic";
};
4BBC09F028859ED400730798 /* classdumptvos-bin */ = {
Expand Down Expand Up @@ -1356,9 +1356,9 @@
productReference = 4C01BDD3288235C5007DEA0F /* libclassdump-ios.a */;
productType = "com.apple.product-type.library.static";
};
4C952D0C2837E11D00BFE504 /* classdumpios */ = {
4C952D0C2837E11D00BFE504 /* classdumpc */ = {
isa = PBXNativeTarget;
buildConfigurationList = 4C952D142837E11D00BFE504 /* Build configuration list for PBXNativeTarget "classdumpios" */;
buildConfigurationList = 4C952D142837E11D00BFE504 /* Build configuration list for PBXNativeTarget "classdumpc" */;
buildPhases = (
4C952D092837E11D00BFE504 /* Sources */,
4C952D0A2837E11D00BFE504 /* Frameworks */,
Expand All @@ -1368,9 +1368,9 @@
);
dependencies = (
);
name = classdumpios;
name = classdumpc;
productName = classdumpios;
productReference = 4C952D0D2837E11D00BFE504 /* classdumpios */;
productReference = 4C952D0D2837E11D00BFE504 /* classdumpc */;
productType = "com.apple.product-type.tool";
};
4CDA2A7F286263F800566FBB /* classdump */ = {
Expand Down Expand Up @@ -1406,7 +1406,7 @@
};
};
};
buildConfigurationList = 4C952D082837E11D00BFE504 /* Build configuration list for PBXProject "classdumpios" */;
buildConfigurationList = 4C952D082837E11D00BFE504 /* Build configuration list for PBXProject "classdumpc" */;
compatibilityVersion = "Xcode 12.0";
developmentRegion = en;
hasScannedForEncodings = 0;
Expand All @@ -1419,10 +1419,10 @@
projectDirPath = "";
projectRoot = "";
targets = (
4C952D0C2837E11D00BFE504 /* classdumpios */,
4C952D0C2837E11D00BFE504 /* classdumpc */,
4CDA2A7F286263F800566FBB /* classdump */,
4C01BD2A288235C5007DEA0F /* classdump-ios */,
4BBC0998288468F700730798 /* classdumpios-bin */,
4BBC0998288468F700730798 /* classdumpc-bin */,
4BBC09F028859ED400730798 /* classdumptvos-bin */,
);
};
Expand Down Expand Up @@ -2008,6 +2008,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING = YES;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand Down Expand Up @@ -2067,6 +2068,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DISABLE_MANUAL_TARGET_ORDER_BUILD_WARNING = YES;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand Down Expand Up @@ -2143,7 +2145,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
4BBC09EC288468F700730798 /* Build configuration list for PBXNativeTarget "classdumpios-bin" */ = {
4BBC09EC288468F700730798 /* Build configuration list for PBXNativeTarget "classdumpc-bin" */ = {
isa = XCConfigurationList;
buildConfigurations = (
4BBC09ED288468F700730798 /* Debug */,
Expand All @@ -2170,7 +2172,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
4C952D082837E11D00BFE504 /* Build configuration list for PBXProject "classdumpios" */ = {
4C952D082837E11D00BFE504 /* Build configuration list for PBXProject "classdumpc" */ = {
isa = XCConfigurationList;
buildConfigurations = (
4C952D122837E11D00BFE504 /* Debug */,
Expand All @@ -2179,7 +2181,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
4C952D142837E11D00BFE504 /* Build configuration list for PBXNativeTarget "classdumpios" */ = {
4C952D142837E11D00BFE504 /* Build configuration list for PBXNativeTarget "classdumpc" */ = {
isa = XCConfigurationList;
buildConfigurations = (
4C952D152837E11D00BFE504 /* Debug */,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4BBC0998288468F700730798"
BuildableName = "classdumpios-test"
BlueprintName = "classdumpios-bin"
ReferencedContainer = "container:classdumpios.xcodeproj">
BuildableName = "classdumpc-bin"
BlueprintName = "classdumpc-bin"
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -51,9 +51,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4BBC0998288468F700730798"
BuildableName = "classdumpios-test"
BlueprintName = "classdumpios-bin"
ReferencedContainer = "container:classdumpios.xcodeproj">
BuildableName = "classdumpc-bin"
BlueprintName = "classdumpc-bin"
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4C952D0C2837E11D00BFE504"
BuildableName = "classdumpios"
BlueprintName = "classdumpios"
ReferencedContainer = "container:classdumpios.xcodeproj">
BuildableName = "classdumpc"
BlueprintName = "classdumpc"
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -45,9 +45,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4C952D0C2837E11D00BFE504"
BuildableName = "classdumpios"
BlueprintName = "classdumpios"
ReferencedContainer = "container:classdumpios.xcodeproj">
BuildableName = "classdumpc"
BlueprintName = "classdumpc"
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
Expand All @@ -62,9 +62,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4C952D0C2837E11D00BFE504"
BuildableName = "classdumpios"
BlueprintName = "classdumpios"
ReferencedContainer = "container:classdumpios.xcodeproj">
BuildableName = "classdumpc"
BlueprintName = "classdumpc"
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4BBC09F028859ED400730798"
BuildableName = "classdumptvos-bi"
BuildableName = "classdumptvos-bin"
BlueprintName = "classdumptvos-bin"
ReferencedContainer = "container:classdumpios.xcodeproj">
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -51,9 +51,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4BBC09F028859ED400730798"
BuildableName = "classdumptvos-bi"
BuildableName = "classdumptvos-bin"
BlueprintName = "classdumptvos-bin"
ReferencedContainer = "container:classdumpios.xcodeproj">
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
BlueprintIdentifier = "4C01BD2A288235C5007DEA0F"
BuildableName = "libclassdump-ios.a"
BlueprintName = "classdump-ios"
ReferencedContainer = "container:classdumpios.xcodeproj">
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -53,7 +53,7 @@
BlueprintIdentifier = "4C01BD2A288235C5007DEA0F"
BuildableName = "libclassdump-ios.a"
BlueprintName = "classdump-ios"
ReferencedContainer = "container:classdumpios.xcodeproj">
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
BlueprintIdentifier = "4CDA2A7F286263F800566FBB"
BuildableName = "libclassdump.a"
BlueprintName = "classdump"
ReferencedContainer = "container:classdumpios.xcodeproj">
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -53,7 +53,7 @@
BlueprintIdentifier = "4CDA2A7F286263F800566FBB"
BuildableName = "libclassdump.a"
BlueprintName = "classdump"
ReferencedContainer = "container:classdumpios.xcodeproj">
ReferencedContainer = "container:classdumpc.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
Expand Down
Binary file not shown.

This file was deleted.

4 changes: 4 additions & 0 deletions classdumpios/Classes/Extensions/NSString-CDExtensions.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ @implementation NSDictionary (CDExtensions)

- (NSString *)stringRepresentation {
NSString *error = nil;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
NSData *xmlData = [NSPropertyListSerialization dataFromPropertyList:self format:NSPropertyListXMLFormat_v1_0 errorDescription:&error];
NSString *s=[[NSString alloc] initWithData:xmlData encoding: NSUTF8StringEncoding];
return s;
Expand All @@ -23,10 +25,12 @@ - (id)dictionaryRepresentation {
NSString *error = nil;
NSPropertyListFormat format;
NSData *theData = [self dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES];

id theDict = [NSPropertyListSerialization propertyListFromData:theData
mutabilityOption:NSPropertyListMutableContainersAndLeaves
format:&format
errorDescription:&error];
#pragma clang diagnostic pop
return theDict;
}

Expand Down
Loading

0 comments on commit 7bf16e2

Please sign in to comment.