diff --git a/onnxruntime/test/platform/apple/apple_package_test/Podfile.template b/onnxruntime/test/platform/apple/apple_package_test/Podfile.template index 3f9c50cc23b10..01fc3294b43cd 100644 --- a/onnxruntime/test/platform/apple/apple_package_test/Podfile.template +++ b/onnxruntime/test/platform/apple/apple_package_test/Podfile.template @@ -1,5 +1,5 @@ def should_exclude_macos_target - if '@C_POD_NAME@' != 'onnxruntime-c' + if '@C_POD_NAME@' != 'onnxruntime-mobile-c' return true end return false diff --git a/tools/ci_build/github/apple/default_training_ios_framework_build_settings.json b/tools/ci_build/github/apple/default_training_ios_framework_build_settings.json index 8f26aef678e65..f88934cd44a66 100644 --- a/tools/ci_build/github/apple/default_training_ios_framework_build_settings.json +++ b/tools/ci_build/github/apple/default_training_ios_framework_build_settings.json @@ -6,6 +6,10 @@ "iphonesimulator": [ "arm64", "x86_64" + ], + "macosx": [ + "arm64", + "x86_64" ] }, "build_params": { @@ -26,6 +30,9 @@ "iphonesimulator": [ "--ios", "--apple_deploy_target=12.0" + ], + "macosx": [ + "--apple_deploy_target=11.0" ] } } diff --git a/tools/ci_build/github/apple/test_apple_packages.py b/tools/ci_build/github/apple/test_apple_packages.py index 1f067d21f2d84..3610316e37af5 100644 --- a/tools/ci_build/github/apple/test_apple_packages.py +++ b/tools/ci_build/github/apple/test_apple_packages.py @@ -144,7 +144,7 @@ def _test_apple_packages(args): cwd=target_proj_path, ) - if PackageVariant[args.variant] == PackageVariant.Full: + if PackageVariant[args.variant] != PackageVariant.Mobile: subprocess.run( [ "xcrun",