88// A user of the Swift Package Manager (SPM) package will consume this file directly from the ORT SPM github repository.
99// For context, the end user's config will look something like:
1010//
11+ // TODO: UPDATE VERSION NUMBER HERE ONCE A 1.16.0 RELEASE IS CONDUCTED ON THE SPM REPO
1112// dependencies: [
1213// .package(url: "https://github.com/microsoft/onnxruntime-swift-package-manager", from: "1.15.0"),
1314// ...
@@ -19,7 +20,7 @@ import class Foundation.ProcessInfo
1920
2021let package = Package (
2122 name: " onnxruntime " ,
22- platforms: [ . iOS( . v11 ) ] ,
23+ platforms: [ . iOS( . v12 ) ] ,
2324 products: [
2425 . library( name: " onnxruntime " ,
2526 type: . static,
@@ -103,25 +104,21 @@ if let pod_archive_path = ProcessInfo.processInfo.environment["ORT_IOS_POD_LOCAL
103104 package . targets. append ( Target . binaryTarget ( name: " onnxruntime " , path: pod_archive_path) )
104105
105106} else {
106- // ORT 1.15 .0 release
107+ // ORT 1.16 .0 release
107108 package . targets. append (
108109 Target . binaryTarget ( name: " onnxruntime " ,
109- url: " https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-c-1.15 .0.zip " ,
110- checksum: " 9b41412329a73d7d298b1d94ab40ae9adb65cb84f132054073bc82515b4f5f82 " )
110+ url: " https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-c-1.16 .0.zip " ,
111+ checksum: " 684f317081d6795e5fd619972bc5dd9a648156ba9d3e0fb2292314582a216d8e " )
111112 )
112113}
113114
114115if let ext_pod_archive_path = ProcessInfo . processInfo. environment [ " ORT_EXTENSIONS_IOS_POD_LOCAL_PATH " ] {
115116 package . targets. append ( Target . binaryTarget ( name: " onnxruntime_extensions " , path: ext_pod_archive_path) )
116- }
117- // Note: ORT Extensions 0.8.0 release version pod (Currently not working - it gives a header path not found error.)
118- else {
119- // package.targets.append(
120- // Target.binaryTarget(name: "onnxruntime_extensions",
121- // url: "https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-extensions-c-0.8.0.zip",
122- // checksum: "1d003770c9a6d0ead92c04ed40d5083e8f4f55ea985750c3efab91489be15512")
123- // )
124- fatalError ( " It is not valid to use a release version extensions c pod for now. \n " +
125- " Please set ORT_EXTENSIONS_IOS_POD_LOCAL_PATH environment variable to specify a location for local dev version pod. \n " +
126- " See Package.swift for more information on using a local pod archive. " )
117+ } else {
118+ // ORT Extensions 0.9.0 release
119+ package . targets. append (
120+ Target . binaryTarget ( name: " onnxruntime_extensions " ,
121+ url: " https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-extensions-c-0.9.0.zip " ,
122+ checksum: " 2549ae80482a1de285aa54cc07440b7daf8a93f91043eff6ba56b6e73274d6cf " )
123+ )
127124 }
0 commit comments