Skip to content

iOS: Xcode warningsΒ #14290

@hbugdoll

Description

@hbugdoll

Introduction

Motivated by tidev/titanium-cli#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)

May not respond to warnings

  • TiFile to open: in iphone/Classes/FilesystemModule.m
  • TiUIClipboardProxy to initWithProperties: in iphone/Classes/UIModule.m
  • TiUIView to setBorderRadius_: in iphone/Classes/TiUIiOSBlurView.m

Class method not found warnings (-Wobjc-method-access)

Instance method not found warnings (-Wobjc-method-access)

  • -fireEvent:withObject: in iphone/Classes/TiUIWebView.m
  • -addEventListener: in iphone/Classes/TiUIWebView.m
  • -removeEventListener: in iphone/Classes/TiUIWebView.m
  • -isFunction in iphone/Classes/TiNetworkBonjourServiceProxy.m
  • fix(ios): reduced TitaniumKit build warnings & fixed TiBlob crashΒ #14298
    • SDK build: -JSValueInContext: in iphone/TitaniumKit/TitaniumKit/Sources/API/KrollModule.m
    • SDK build: -applyProperties: in iphone/TitaniumKit/TitaniumKit/Sources/API/TiProxy.h

Incompatible pointer types warnings (-Wincompatible-pointer-types)

  • JSValue * vs. NSString * in iphone/Classes/TiUIClipboardProxy.m
  • NSArray * vs. NSDictionary * in iphone/Classes/TiUIShortcutItemProxy.m
  • PlatformModule * vs. TiProxy * in iphone/Classes/PlatformModule.m
  • TiDatabaseProxy * vs. TiProxy * in iphone/Classes/TiDatabaseProxy.m
  • TiProxy * vs. TiUIClipboardProxy * in iphone/Classes/UIModule.m
  • fix(ios): reduced TitaniumKit build warnings & fixed TiBlob crashΒ #14298
    • SDK build: JSValueRef * vs. JSValueRef _Null_unspecified in iphone/TitaniumKit/TitaniumKit/Sources/API/TiBlob.m
    • SDK build: CAShapeLayer * vs. CALayer * in iphone/TitaniumKit/TitaniumKit/Sources/API/TiUIView.m

Missing selector name warnings (-Wmissing-selector-name)

  • newValue in iphone/Classes/TiUITextWidgetProxy

Multiple methods named found warnings (-Wobjc-multiple-method-names)

  • contentOffset in iphone/Classes/TiUITextArea.m

Auto property synthesis will not synthesize warnings (-Wobjc-protocol-property-synthesis)

  • socket in iphone/Classes/TiNetworkBonjourServiceProxy.m

Receiver is a forward class and corresponding interface may not exist warnings (-Wreceiver-forward-class)

Receiver type warnings (-Wreceiver-expr)

Enumeration value not handled in switch warnings (-Wswitch)

No assign, retain, or copy attribute warnings (-Wobjc-property-no-attribute)

  • TBA...

Loosed integer precision warnings (-Wshorten-64-to-32)

  • TBA...

Conditional compilation flags in Swift warnings

  • TBA...

Deprecation warnings (-Wdeprecated-declarations & -Wdeprecated-implementations)

  • TBA...

Linker warnings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions