Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26111] iOS: Fix static analyzer warnings and possible leaks

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-06-13T14:38:46.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.5.0
ComponentsiOS
Labelsn/a
ReporterHans Knöchel
AssigneeHans Knöchel
Created2018-06-08T00:31:42.000+0000
Updated2018-10-03T11:12:27.000+0000

Description

The new static analyzer in Xcode 10 surfaces a few issues that we haven't been aware so far. These should be addressed and unit-tested with the existing test-suite

Comments

  1. Hans Knöchel 2018-06-08

    PR: https://github.com/appcelerator/titanium_mobile/pull/10098/files Test-Cases: Via existing unit-tests. The calendar one cannot be unit-tested, since it requires UI-interaction, but it's also pretty save as per standard alloc/release rules.
  2. Samir Mohammed 2018-10-03

    *Closing ticket.* Tested on SDK Version 7.5.0.v20180928103802. Improvement can be seen on the amount of static analyzer warnings and possible leaks, (Although the improvement was little). Tested using a calendar module test, a userActivity test that includes the continueUserActivity event, and notifications with attachments. The amount of analyzer warnings and possible leaks were then compared against 7.4.1. *Test Environment*
       Test Environment
       APPC Studio: 5.1.0.201808080937
       iPhone 6 (12.0)
       APPC CLI: 7.0.7-master.4
       Operating System Name: Mac OS Mojave
       Operating System Version: 10.14
       Node.js Version: 8.9.1
       Xcode 10.0
       

JSON Source