aboutsummaryrefslogtreecommitdiff
path: root/ios-bootstrap/bundle-loader.m
diff options
context:
space:
mode:
Diffstat (limited to 'ios-bootstrap/bundle-loader.m')
-rw-r--r--ios-bootstrap/bundle-loader.m6
1 files changed, 1 insertions, 5 deletions
diff --git a/ios-bootstrap/bundle-loader.m b/ios-bootstrap/bundle-loader.m
index 45c37cd..fec2513 100644
--- a/ios-bootstrap/bundle-loader.m
+++ b/ios-bootstrap/bundle-loader.m
@@ -79,15 +79,12 @@ static enum test_filters_ret test_filters(NSDictionary *plist_dict) {
NSArray *bundles = [filter objectForKey:@"Bundles"];
if (bundles) {
- NSString *main_identifier = [[NSBundle mainBundle] bundleIdentifier];
- if (!main_identifier)
- main_identifier = @"";
if (![bundles isKindOfClass:[NSArray class]])
return INVALID;
for (NSString *identifier in bundles) {
if (![identifier isKindOfClass:[NSString class]])
return INVALID;
- if ([identifier isEqualToString:main_identifier])
+ if ([NSBundle bundleWithIdentifier:identifier])
goto ok2;
}
return FAILED;
@@ -132,7 +129,6 @@ static void init() {
return;
for (NSString *dylib in list) {
- NSLog(@"?%@", dylib);
if (![[dylib pathExtension] isEqualToString:@"dylib"])
continue;
NSString *plist = [[dylib stringByDeletingPathExtension]