diff --git a/Alchemic.xcodeproj/project.pbxproj b/Alchemic.xcodeproj/project.pbxproj index c7f8230..d1d9edc 100644 --- a/Alchemic.xcodeproj/project.pbxproj +++ b/Alchemic.xcodeproj/project.pbxproj @@ -1855,7 +1855,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = ""; - DYLIB_CURRENT_VERSION = 2.2.10; + DYLIB_CURRENT_VERSION = 2.2.11; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; GCC_C_LANGUAGE_STANDARD = "compiler-default"; @@ -1927,7 +1927,7 @@ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = ""; - DYLIB_CURRENT_VERSION = 2.2.10; + DYLIB_CURRENT_VERSION = 2.2.11; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = "compiler-default"; @@ -2108,6 +2108,7 @@ 6C0432D91DF2F484008C548C /* Release */, ); defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; }; 6C24CCF81CA42BA80026D18C /* Build configuration list for PBXNativeTarget "Integration tests" */ = { isa = XCConfigurationList; diff --git a/alchemic/NSBundle+Alchemic.m b/alchemic/NSBundle+Alchemic.m index 39238bc..fddf947 100644 --- a/alchemic/NSBundle+Alchemic.m +++ b/alchemic/NSBundle+Alchemic.m @@ -22,12 +22,11 @@ +(void) scanApplicationWithProcessors:(NSArray> *) process CFBundleRef bundle = (CFBundleRef) CFArrayGetValueAtIndex(allBundles, i); - // Commenting out as some bundles don't have an id when testing. // Ignore all Apple bundles as we know they won't have Alchemic registration code in them. -// NSString *bundleId = (NSString *) CFBundleGetIdentifier(bundle); -// if (!bundleId || [bundleId hasPrefix:@"com.apple"]) { -// continue; -// } + NSString *bundleId = (NSString *) CFBundleGetIdentifier(bundle); + if ([bundleId hasPrefix:@"com.apple"]) { + continue; + } // Now get the executable from the bundle so we can scan it for classes. NSURL *executableURL = (NSURL *) CFBridgingRelease(CFBundleCopyExecutableURL(bundle));