Skip to content

Commit

Permalink
configure optional exclude macos target for not pod onnxruntime-c
Browse files Browse the repository at this point in the history
  • Loading branch information
rachguo authored and rachguo committed Nov 20, 2023
1 parent 172ab19 commit 65356e6
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions onnxruntime/test/platform/ios/ios_package_test/Podfile.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
def should_exclude_macos_target
if '@C_POD_NAME@' != 'onnxruntime-c'
return true
end
return false
end

target 'ios_package_test' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
Expand All @@ -10,16 +17,18 @@ target 'ios_package_test' do
end
end

target 'macos_package_test' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
unless should_exclude_macos_target
target 'macos_package_test' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

platform :osx, '11.0'
platform :osx, '11.0'

target 'macos_package_testUITests' do
inherit! :search_paths
pod '@C_POD_NAME@', :podspec => '@C_POD_PODSPEC@'
end
target 'macos_package_testUITests' do
inherit! :search_paths
pod '@C_POD_NAME@', :podspec => '@C_POD_PODSPEC@'
end
end
end

# This is to prevent the pods to be code signed if enabled
Expand Down

0 comments on commit 65356e6

Please sign in to comment.