iOS 封装SDK时获取SDK资源,防止资源混淆

        /// 设置SDK Bundle
        /// AiphySDK为SDK下的类名,用于标识获取资源为SDK内资源
        let bundle = Bundle(path: Bundle(for: AiphySDK.self).path(forResource: "SDKResource", ofType: "bundle")!)
        let path = bundle?.path(forResource: "image", ofType: "png")
       

你可能感兴趣的:(iOS 封装SDK时获取SDK资源,防止资源混淆)