cocopods use_frameworks 动态库 bun

2019-08-29  本文已影响0人  提灯走夜路

第一种:

NSString *bundlePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"boundleName"ofType:@"bundle"];\

[[NSBundle bundleWithPath:bundlePath].resourcePath stringByAppendingPathComponent:fileName];\

NSURL* associateBundleURL = [[NSBundle mainBundle] URLForResource:@"Frameworks" withExtension:nil];\

 associateBundleURL = [associateBundleURL URLByAppendingPathComponent:@"podName"];\

 associateBundleURL = [associateBundleURL URLByAppendingPathExtension:@"framework"];\

 NSBundle *associateBunle = [NSBundle bundleWithURL:associateBundleURL];\

 associateBundleURL = [associateBunle URLForResource:@"bundleName" withExtension:@"bundle"];\

 [[NSBundle bundleWithURL:associateBundleURL].resourcePath stringByAppendingPathComponent:name];\

上一篇下一篇

猜你喜欢

热点阅读