美文网首页
cocopods use_frameworks 动态库 bun

cocopods use_frameworks 动态库 bun

作者: 提灯走夜路 | 来源:发表于2019-08-29 17:22 被阅读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];\

    相关文章

      网友评论

          本文标题:cocopods use_frameworks 动态库 bun

          本文链接:https://www.haomeiwen.com/subject/obfwectx.html