Skip to content

Commit c1f9dfd

Browse files
committed
Tuning bundle scanning
1 parent 0fc8297 commit c1f9dfd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Alchemic.xcodeproj/project.pbxproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,7 +1855,7 @@
18551855
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
18561856
COPY_PHASE_STRIP = NO;
18571857
CURRENT_PROJECT_VERSION = "";
1858-
DYLIB_CURRENT_VERSION = 2.2.10;
1858+
DYLIB_CURRENT_VERSION = 2.2.11;
18591859
ENABLE_STRICT_OBJC_MSGSEND = YES;
18601860
ENABLE_TESTABILITY = YES;
18611861
GCC_C_LANGUAGE_STANDARD = "compiler-default";
@@ -1927,7 +1927,7 @@
19271927
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
19281928
COPY_PHASE_STRIP = NO;
19291929
CURRENT_PROJECT_VERSION = "";
1930-
DYLIB_CURRENT_VERSION = 2.2.10;
1930+
DYLIB_CURRENT_VERSION = 2.2.11;
19311931
ENABLE_NS_ASSERTIONS = NO;
19321932
ENABLE_STRICT_OBJC_MSGSEND = YES;
19331933
GCC_C_LANGUAGE_STANDARD = "compiler-default";
@@ -2108,6 +2108,7 @@
21082108
6C0432D91DF2F484008C548C /* Release */,
21092109
);
21102110
defaultConfigurationIsVisible = 0;
2111+
defaultConfigurationName = Release;
21112112
};
21122113
6C24CCF81CA42BA80026D18C /* Build configuration list for PBXNativeTarget "Integration tests" */ = {
21132114
isa = XCConfigurationList;

alchemic/NSBundle+Alchemic.m

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ +(void) scanApplicationWithProcessors:(NSArray<id<ALCClassProcessor>> *) process
2222

2323
CFBundleRef bundle = (CFBundleRef) CFArrayGetValueAtIndex(allBundles, i);
2424

25-
// Commenting out as some bundles don't have an id when testing.
2625
// Ignore all Apple bundles as we know they won't have Alchemic registration code in them.
27-
// NSString *bundleId = (NSString *) CFBundleGetIdentifier(bundle);
28-
// if (!bundleId || [bundleId hasPrefix:@"com.apple"]) {
29-
// continue;
30-
// }
26+
NSString *bundleId = (NSString *) CFBundleGetIdentifier(bundle);
27+
if ([bundleId hasPrefix:@"com.apple"]) {
28+
continue;
29+
}
3130

3231
// Now get the executable from the bundle so we can scan it for classes.
3332
NSURL *executableURL = (NSURL *) CFBridgingRelease(CFBundleCopyExecutableURL(bundle));

0 commit comments

Comments
 (0)