我希望动态加载框架。我下载了框架并将其放在app文档字典中,但我不知道如何替换旧框架。
let frameworkName = "myFirstTest.framework"
var path: URL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent(frameworkName, isDirectory: false)
if FileManager.default.fileExists(atPath: path.absoluteString) {
print("exist")
} else {
print("no exist")
}