mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
To align with Office and other MS products. Office's support policy is: "Office for iPad and iPhone is supported on the two most recent versions of iOS and iPadOS. When a new version of iOS or iPadOS is released, the Office Operating System requirement becomes the two most recent versions: the new version of iOS or iPadOS and the previous version." (from https://products.office.com/office-system-requirements) The latest iOS version is 17. So they support both 17 and 16. Here I set our min iOS version to 13 so that it will be a superset of what Office supports. This change would allow us using C++17's std::filesystem feature in the core framework. The modifications were generated by running ```bash find . -type f -exec sed -i "s/apple_deploy_target[ =]12.0/apple_deploy_target=13.0/g" {} \; ``` Cannot use 15.0 because otherwise iOS packaging would fail with: ``` /Users/runner/work/1/b/apple_framework/intermediates/iphoneos_arm64/Release/_deps/coremltools-src/mlmodel/src/MILBlob/Util/Span.hpp:288:9: error: cannot use 'throw' with exceptions disabled MILVerifyIsTrue(index < Size(), std::range_error, "index out of bounds"); ``` The Google OSS libraries we use only officially support iOS 15+.
28 lines
953 B
Ruby
28 lines
953 B
Ruby
require_relative '../node_modules/react-native/scripts/react_native_pods'
|
|
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
|
|
|
|
platform :ios, '13.0'
|
|
|
|
target 'OnnxruntimeModuleExample' do
|
|
config = use_native_modules!
|
|
|
|
use_react_native!(:path => config["reactNativePath"])
|
|
|
|
use_frameworks!
|
|
|
|
# Mobile build:
|
|
# ort_mobile_c_local_pod_path = ENV['ORT_MOBILE_C_LOCAL_POD_PATH']
|
|
# if ort_mobile_c_local_pod_path != nil
|
|
# print 'Using onnxruntime-c pod at ', ort_mobile_c_local_pod_path, "\n"
|
|
# pod 'onnxruntime-mobile-c', :path => ort_mobile_c_local_pod_path
|
|
# end
|
|
|
|
ort_c_local_pod_path = ENV['ORT_C_LOCAL_POD_PATH']
|
|
if ort_c_local_pod_path != nil
|
|
print 'Using onnxruntime-c pod at ', ort_c_local_pod_path, "\n"
|
|
pod 'onnxruntime-c', :path => ort_c_local_pod_path
|
|
end
|
|
pod 'onnxruntime-react-native', :path => '../node_modules/onnxruntime-react-native'
|
|
|
|
inherit! :search_paths
|
|
end
|