Files
ProxyIOS/build/XCBuildData/376368fc10958a611da72fd719efd259.xcbuilddata/attachments/4ac9a487b337de9028f8e26f8ba10f46
2026-04-06 11:28:40 -05:00

32 lines
1.1 KiB
Plaintext

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface swift_crypto_CCryptoBoringSSLShims_SWIFTPM_MODULE_BUNDLER_FINDER : NSObject
@end
@implementation swift_crypto_CCryptoBoringSSLShims_SWIFTPM_MODULE_BUNDLER_FINDER
@end
NSBundle* swift_crypto_CCryptoBoringSSLShims_SWIFTPM_MODULE_BUNDLE() {
NSString *bundleName = @"swift_crypto_CCryptoBoringSSLShims";
NSArray<NSURL*> *candidates = @[
NSBundle.mainBundle.resourceURL,
[NSBundle bundleForClass:[swift_crypto_CCryptoBoringSSLShims_SWIFTPM_MODULE_BUNDLER_FINDER class]].resourceURL,
NSBundle.mainBundle.bundleURL
];
for (NSURL* candidate in candidates) {
NSURL *bundlePath = [candidate URLByAppendingPathComponent:[NSString stringWithFormat:@"%@.bundle", bundleName]];
NSBundle *bundle = [NSBundle bundleWithURL:bundlePath];
if (bundle != nil) {
return bundle;
}
}
@throw [[NSException alloc] initWithName:@"SwiftPMResourcesAccessor" reason:[NSString stringWithFormat:@"unable to find bundle named %@", bundleName] userInfo:nil];
}
NS_ASSUME_NONNULL_END