Ticket #12: dyld_framework_path.patch
| File dyld_framework_path.patch, 0.9 KB (added by maarten@…, 3 years ago) |
|---|
-
objc.m
2919 2919 NSString *path; 2920 2920 NSBundle *bundle; 2921 2921 NSError *error; 2922 2922 2923 2923 rb_scan_args(argc, argv, "11", &framework, &search_network); 2924 2924 2925 2925 Check_Type(framework, T_STRING); … … 2977 2977 stringByAppendingPathComponent:@"Library"]; 2978 2978 FIND_LOAD_PATH_IN_LIBRARY(dir); 2979 2979 } 2980 2981 dirs = [[[[NSProcessInfo processInfo] environment] valueForKey:@"DYLD_FRAMEWORK_PATH"] componentsSeparatedByString: @":"]; 2982 for (i = 0, count = [dirs count]; i < count; i++) { 2983 NSString *dir = [dirs objectAtIndex:i]; 2984 path = [dir stringByAppendingPathComponent:frameworkName]; 2985 if ([fileManager fileExistsAtPath:path]) 2986 goto success; 2987 } 2980 2988 2981 2989 #undef FIND_LOAD_PATH_IN_LIBRARY 2982 2990

