iOS: Xcode warnings
Introduction
Motivated by https://github.com/tidev/titanium-cli/issues/593 I took a closer look at the log messages during the build process (app build and SDK build).
Currently, almost all Xcode warnings end up at log level trace – there are quite a lot of them.
 I have marked the warnings in the SDK build, because they are (a little bit) less relevant. A normal user is more likely to use a compiled/published SDK version.
The following list is intended as an overview and will be continuously updated.
Not conform to protocol warnings (-Wprotocol)
- https://github.com/tidev/titanium-sdk/issues/14286
May not respond to warnings
- [ ]
TiFiletoopen:iniphone/Classes/FilesystemModule.m - [ ]
TiUIClipboardProxytoinitWithProperties:iniphone/Classes/UIModule.m - [ ]
TiUIViewtosetBorderRadius_:iniphone/Classes/TiUIiOSBlurView.m
Class method not found warnings (-Wobjc-method-access)
- [ ]
+appIdentifieriniphone/Classes/AppModule.m - [ ]
+_startActivity:iniphone/Classes/TiAppiOSActivityAttributesProxy.m - #14298
- [x] SDK build:
+resourceBasedURL:baseURL:iniphone/TitaniumKit/TitaniumKit/Sources/API/ScriptModule.m
- [x] SDK build:
Instance method not found warnings (-Wobjc-method-access)
- [ ]
-fireEvent:withObject:iniphone/Classes/TiUIWebView.m - [ ]
-addEventListener:iniphone/Classes/TiUIWebView.m - [ ]
-removeEventListener:iniphone/Classes/TiUIWebView.m - [ ]
-isFunctioniniphone/Classes/TiNetworkBonjourServiceProxy.m - #14298
- [x] SDK build:
-JSValueInContext:iniphone/TitaniumKit/TitaniumKit/Sources/API/KrollModule.m - [x] SDK build:
-applyProperties:iniphone/TitaniumKit/TitaniumKit/Sources/API/TiProxy.h
- [x] SDK build:
Incompatible pointer types warnings (-Wincompatible-pointer-types)
- [ ]
JSValue *vs.NSString *iniphone/Classes/TiUIClipboardProxy.m - [ ]
NSArray *vs.NSDictionary *iniphone/Classes/TiUIShortcutItemProxy.m - [ ]
PlatformModule *vs.TiProxy *iniphone/Classes/PlatformModule.m - [ ]
TiDatabaseProxy *vs.TiProxy *iniphone/Classes/TiDatabaseProxy.m - [ ]
TiProxy *vs.TiUIClipboardProxy *iniphone/Classes/UIModule.m - #14298
- [x] SDK build:
JSValueRef *vs.JSValueRef _Null_unspecifiediniphone/TitaniumKit/TitaniumKit/Sources/API/TiBlob.m - [x] SDK build:
CAShapeLayer *vs.CALayer *iniphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m
- [x] SDK build:
Missing selector name warnings (-Wmissing-selector-name)
- [ ]
newValueiniphone/Classes/TiUITextWidgetProxy
Multiple methods named found warnings (-Wobjc-multiple-method-names)
- [ ]
contentOffsetiniphone/Classes/TiUITextArea.m
Auto property synthesis will not synthesize warnings (-Wobjc-protocol-property-synthesis)
- [ ]
socketiniphone/Classes/TiNetworkBonjourServiceProxy.m
Receiver is a forward class and corresponding interface may not exist warnings (-Wreceiver-forward-class)
- #14298
- [x] SDK build:
TiHostiniphone/TitaniumKit/TitaniumKit/Sources/API/ScriptModule.m
- [x] SDK build:
Receiver type warnings (-Wreceiver-expr)
- #14298
- [x] SDK build:
NSUncaughtExceptionHandler *iniphone/TitaniumKit/TitaniumKit/Sources/API/TiExceptionHandler.m
- [x] SDK build:
Enumeration value not handled in switch warnings (-Wswitch)
- #14298
- [x] SDK build:
TiBlobTypeSystemImageiniphone/TitaniumKit/TitaniumKit/Sources/API/TiBlob.m
- [x] SDK build:
Unused variable warning (-Wunused)
- #14313
- [x] SDK build:
sharedAnalyticsiniphone/TitaniumKit/TitaniumKit/Sources/API/KrollBridge.m
- [x] SDK build:
No assign, retain, or copy attribute warnings (-Wobjc-property-no-attribute)
- TBA...
Loosed integer precision warnings (-Wshorten-64-to-32)
- TBA...
Parameter not found in the function declaration warning (-Wdocumentation)
- #14313
- [x] SDK build:
{BOOL},{NSInteger}anddeployTimeiniphone/TitaniumKit/TitaniumKit/Libraries/APSAnalytics/APSAnalytics.h
- [x] SDK build:
Marked with deprecated command but no deprecation attribute warning (-Wdocumentation-deprecated-sync)
- #14313
- [x] SDK build:
sendCrashReport()and others iniphone/TitaniumKit/TitaniumKit/Libraries/APSAnalytics/APSAnalytics.h
- [x] SDK build:
Deprecation warnings (-Wdeprecated-declarations & -Wdeprecated-implementations)
- TBA...
Conditional compilation flags do not have values in Swift warnings
- #14352
- [ ] SDK build:
SWIFT_ACTIVE_COMPILATION_CONDITIONSiniphone/iphone/Titanium.xcodeproj/project.pbxproj
- [ ] SDK build:
Linker warnings
- https://github.com/tidev/titanium-sdk/issues/14285
Destination warnings Using the first of multiple matching destinations
- https://github.com/tidev/titanium-sdk/pull/14349
- [x] running
xcodebuild cleanfromiphone/cli/commands/_build.js - [x] SDK build: running
xcodebuild archivefromiphone/TitaniumKit/TitaniumKit/Scripts/build-universal-framework.shandsupport/iphone/build_titaniumkit.sh
- [x] running