From 0a381cc40beb96f5665706f330d7c3448440e94d Mon Sep 17 00:00:00 2001 From: Scott McKay Date: Wed, 7 Jun 2023 08:22:37 +1000 Subject: [PATCH] Update url and checksum in Package.swift with the 1.15.0 iOS package details (#16174) ### Description Update Package.swift on the release branch with the url and checksum from the release iOS pod. ### Motivation and Context Swift Package Manager refers to the file in the repo directly, and we couldn't update the checksum until the release was done. --- Package.swift | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/Package.swift b/Package.swift index 7f8bfe0c3c..54609b104d 100644 --- a/Package.swift +++ b/Package.swift @@ -79,24 +79,10 @@ if let pod_archive_path = ProcessInfo.processInfo.environment["ORT_IOS_POD_LOCAL package.targets.append(Target.binaryTarget(name: "onnxruntime", path: pod_archive_path)) } else { - // When creating the release version: - // - remove the fatalError - // - uncomment the package.targets.append call - // - update the major/minor/patch version info in the url - // - insert the checksum info from the onnxruntime-ios-packaging-pipeline CI's 'Print ORT iOS Pod checksum' - // stage output (or download the pod archive artifact from the CI and run `shasum -a 256 ` - // to manually calculate it). - // The checksum length and chars should look something like - // "c89cd106ff02eb3892243acd7c4f2bd8e68c2c94f2751b5e35f98722e10c042b" - // - // package.targets.append( - // Target.binaryTarget(name: "onnxruntime", - // url: "https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-c-.zip", - // checksum: "Insert checksum here") - // ) - - fatalError("It is not valid to use a non-release branch from https://github.com/microsoft/onnxruntime.\n" + - "Please use a release branch (e.g. rel-1.15.0), or build the ONNX Runtime iOS pod archive locally " + - "and set the ORT_IOS_POD_LOCAL_PATH environment variable.\n" + - "See Package.swift for more information on using a local pod archive.") + // ORT 1.15.0 release + package.targets.append( + Target.binaryTarget(name: "onnxruntime", + url: "https://onnxruntimepackages.z14.web.core.windows.net/pod-archive-onnxruntime-c-1.15.0.zip", + checksum: "9b41412329a73d7d298b1d94ab40ae9adb65cb84f132054073bc82515b4f5f82") + ) }