Enable MacOS build in ORT Objc Pod (#18786)

### Description
<!-- Describe your changes. -->

Add macos build for objc pod. 


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->

Follow up pr for #18550

---------

Co-authored-by: rachguo <rachguo@rachguos-Mini.attlocal.net>
This commit is contained in:
Rachel Guo 2023-12-13 13:50:42 -08:00 committed by GitHub
parent 487abcd25e
commit f3fa045681
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 1 deletions

View file

@ -154,6 +154,7 @@ def assemble_objc_pod_package(
"DESCRIPTION": pod_config["description"],
"INCLUDE_DIR_LIST": path_patterns_as_variable_value(include_dirs),
"IOS_DEPLOYMENT_TARGET": framework_info["iphonesimulator"]["APPLE_DEPLOYMENT_TARGET"],
"MACOSX_DEPLOYMENT_TARGET": framework_info.get("macosx", {}).get("APPLE_DEPLOYMENT_TARGET", ""),
"LICENSE_FILE": license_file,
"NAME": pod_name,
"PUBLIC_HEADER_FILE_LIST": path_patterns_as_variable_value(pod_files["public_header_files"]),

View file

@ -8,6 +8,12 @@ Pod::Spec.new do |s|
s.author = { "ONNX Runtime" => "onnxruntime@microsoft.com" }
s.source = { :http => "file:///http_source_placeholder" }
s.ios.deployment_target = "@IOS_DEPLOYMENT_TARGET@"
macosx_deployment_target = "@MACOSX_DEPLOYMENT_TARGET@"
if macosx_deployment_target != ""
s.osx.deployment_target = macosx_deployment_target
end
s.preserve_paths = [ "@LICENSE_FILE@" ]
s.default_subspec = "Core"
s.static_framework = true

View file

@ -38,7 +38,7 @@ stages:
cPodName: onnxruntime-training-c
objcPodName: onnxruntime-training-objc
timeoutInMinutes: 180
timeoutInMinutes: 210
steps:
- script: |