Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28112] iOS: Unable to build using Xcode 11.3.1

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2020-09-09T12:40:30.000+0000
Affected Version/sRelease 9.2.0
Fix Version/sRelease 9.2.0
ComponentsiOS
Labelsn/a
ReporterEwan Harris
AssigneeEwan Harris
Created2020-09-08T12:42:27.000+0000
Updated2020-09-10T12:23:27.000+0000

Description

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
[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')
[DEBUG] [TRACE] :      cd /Users/build/jenkins/workspace/titanium-sdk_yeti_master/Modules/API/Acceptance/App/temporaryApp/build/iphone
[DEBUG] [TRACE] :      export LANG=en_US.US-ASCII
[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
[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'?
[DEBUG] [TRACE] :    return @(UIDatePickerStyleAutomatic);
[DEBUG] [TRACE] :             ^~~~~~~~~~~~~~~~~~~~~~~~~~
[DEBUG] [TRACE] :             UIActionSheetStyleAutomatic
[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:
[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
[DEBUG] [TRACE] :      UIActionSheetStyleAutomatic        = -1,       // take appearance from toolbar style otherwise uses 'default'
[DEBUG] [TRACE] :      ^
[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'
[DEBUG] [TRACE] :    return @(UIDatePickerStyleWheels);
[DEBUG] [TRACE] :             ^
[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'
[DEBUG] [TRACE] :    return @(UIDatePickerStyleCompact);
[DEBUG] [TRACE] :             ^
[DEBUG] [TRACE] :  3 errors generated.

Comments

  1. Ewan Harris 2020-09-08

    PR: https://github.com/appcelerator/titanium_mobile/pull/12020
  2. Christopher Williams 2020-09-09

    Merged to master for 9.2.0 target, backport PR merged to 9_3_X for eventual 9.3.0
  3. Samir Mohammed 2020-09-10

    FR Passed, Jenkins build looks good.

JSON Source