Description
When building an app using Xcode 11.3.1 the build will fail with the below error, we probably need to guard the API usage with an IS_SDK_IOS_134 or something
[37m[DEBUG] [TRACE] : CompileC /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Objects-normal/x86_64/TiUIiOSProxy.o /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/Classes/TiUIiOSProxy.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Acceptance' from project 'Acceptance')[0m
[37m[DEBUG] [TRACE] : cd /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone[0m
[37m[DEBUG] [TRACE] : export LANG=en_US.US-ASCII[0m
[37m[DEBUG] [TRACE] : /Applications/Xcode-11.3.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -target x86_64-apple-ios10.0-simulator -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-weak -fmodules -gmodules -fmodules-cache-path=/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/DerivedData/ModuleCache.noindex -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wunreachable-code -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self -Wduplicate-method-match -Wno-missing-braces -Wno-parentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wno-unused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wdeprecated-implementations -DDEPLOYTYPE=development -D__LOG__ID__=bedba964-bd8a-4cd3-9888-8237d31fccf7 -DDEBUG=1 -DTI_VERSION=9.2.0 -DDISABLE_TI_LOG_SERVER=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode-11.3.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -Wno-unguarded-availability -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/DerivedData/Index/DataStore -iquote /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Acceptance-generated-files.hmap -I/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Acceptance-own-target-headers.hmap -I/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Acceptance-all-target-headers.hmap -iquote /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Acceptance-project-headers.hmap -I/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Products/Debug-iphonesimulator/include -I/Applications/Xcode-11.3.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/libxml2 -Iheaders -I/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/DerivedSources-normal/x86_64 -I/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/DerivedSources/x86_64 -I/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/DerivedSources -Wno-arc-performSelector-leaks -F/Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Products/Debug-iphonesimulator -FFrameworks -F/Users/build/Library/Application\ Support/Titanium/modules/iphone/facebook/8.0.0/platform -F/Users/build/Library/Application\ Support/Titanium/modules/iphone/facebook/8.0.0/platform -DDEBUG -include /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/PrecompiledHeaders/SharedPrecompiledHeaders/16264311059098882130/Acceptance_Prefix.pch -MMD -MT dependencies -MF /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Objects-normal/x86_64/TiUIiOSProxy.d --serialize-diagnostics /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Objects-normal/x86_64/TiUIiOSProxy.dia -c /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/Classes/TiUIiOSProxy.m -o /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/build/Intermediates/Acceptance.build/Debug-iphonesimulator/Acceptance.build/Objects-normal/x86_64/TiUIiOSProxy.o[0m
[37m[DEBUG] [TRACE] : /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/Classes/TiUIiOSProxy.m:203:12: error: use of undeclared identifier 'UIDatePickerStyleAutomatic'; did you mean 'UIActionSheetStyleAutomatic'?[0m
[37m[DEBUG] [TRACE] : return @(UIDatePickerStyleAutomatic);[0m
[37m[DEBUG] [TRACE] : ^~~~~~~~~~~~~~~~~~~~~~~~~~[0m
[37m[DEBUG] [TRACE] : UIActionSheetStyleAutomatic[0m
[37m[DEBUG] [TRACE] : In module 'UIKit' imported from /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/Acceptance_Prefix.pch:7:[0m
[37m[DEBUG] [TRACE] : /Applications/Xcode-11.3.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIActionSheet.h:20:5: note: 'UIActionSheetStyleAutomatic' declared here[0m
[37m[DEBUG] [TRACE] : UIActionSheetStyleAutomatic = -1, // take appearance from toolbar style otherwise uses 'default'[0m
[37m[DEBUG] [TRACE] : ^[0m
[37m[DEBUG] [TRACE] : /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/Classes/TiUIiOSProxy.m:212:12: error: use of undeclared identifier 'UIDatePickerStyleWheels'[0m
[37m[DEBUG] [TRACE] : return @(UIDatePickerStyleWheels);[0m
[37m[DEBUG] [TRACE] : ^[0m
[37m[DEBUG] [TRACE] : /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone/Classes/TiUIiOSProxy.m:221:12: error: use of undeclared identifier 'UIDatePickerStyleCompact'[0m
[37m[DEBUG] [TRACE] : return @(UIDatePickerStyleCompact);[0m
[37m[DEBUG] [TRACE] : ^[0m
[37m[DEBUG] [TRACE] : 3 errors generated.[0m
PR: https://github.com/appcelerator/titanium_mobile/pull/12020
Merged to master for 9.2.0 target, backport PR merged to 9_3_X for eventual 9.3.0
FR Passed, Jenkins build looks good.