Skip to content

armgit / xtool

Public Imported from GitHub
0

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, macOS.

360 B
Raw Blame
import Foundation

public func exampleDynamicLibraryFunction() -> String {
    guard let bundled = #bundle.url(forResource: "response", withExtension: "txt")
        else { fatalError("Missing bundled.txt resource") }
    // swiftlint:disable:next force_try
    let contents = try! String(contentsOf: bundled, encoding: .utf8)
    return "Hello \(contents)"
}