'update'
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import Foundation
|
||||
|
||||
extension Foundation.Bundle {
|
||||
static let module: Bundle = {
|
||||
let mainPath = Bundle.main.bundleURL.appendingPathComponent("ZIPFoundation_ZIPFoundation.bundle").path
|
||||
let buildPath = "/Users/gavin/ibook/ipad_app/.build/arm64-apple-macosx/debug/ZIPFoundation_ZIPFoundation.bundle"
|
||||
|
||||
let preferredBundle = Bundle(path: mainPath)
|
||||
|
||||
guard let bundle = preferredBundle ?? Bundle(path: buildPath) else {
|
||||
// Users can write a function called fatalError themselves, we should be resilient against that.
|
||||
Swift.fatalError("could not load resource bundle: from \(mainPath) or \(buildPath)")
|
||||
}
|
||||
|
||||
return bundle
|
||||
}()
|
||||
}
|
||||
Reference in New Issue
Block a user