Added missing configs for tvos tests

pull/19897/head
Tony Lu 6 years ago
parent fb21394c43
commit eaf26b7ac3
  1. 2
      src/objective-c/tests/Podfile
  2. 2
      src/objective-c/tests/run_one_test.sh

@ -103,7 +103,7 @@ post_install do |installer|
# the test target 'InteropTestsRemoteWithCronet'
# Activate GRPCCall+InternalTests functions for the dedicated build configuration 'Test', which will
# be used by all test targets using it.
if /gRPC-(mac|i)OS/.match(target.name)
if /gRPC-(mac|i|tv)OS/.match(target.name)
target.build_configurations.each do |config|
if config.name == 'Cronet'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = '$(inherited) COCOAPODS=1 GRPC_COMPILE_WITH_CRONET=1 GRPC_TEST_OBJC=1'

@ -51,6 +51,8 @@ elif [ $PLATFORM == ios ]; then
DESTINATION='name=iPhone 8'
elif [ $PLATFORM == macos ]; then
DESTINATION='platform=macOS'
elif [ $PLATFORM == tvos ]; then
DESTINATION='platform=tvOS Simulator,name=Apple TV'
fi
xcodebuild \

Loading…
Cancel
Save