Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-28408

iOS: App with remote policy encryption crashes when offline

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 10.0.0
    • Fix Version/s: Release 10.0.0
    • Component/s: iOS
    • Labels:
    • Environment:

      Mac OS: 10.15.4
      SDK: 10.0.0.v20210324082120
      Appc CLI: 8.1.1
      JDK: 11.0.6
      Node: 12.16.1
      Studio: 6.0.0.202005141803
      Xcode: 12.3
      Device: iPhone 7 Plus(v14.0)

    • Story Points:
      8
    • Sprint:
      2021 Sprint 7

      Description

      This is a regression in 10.0.

      When an app with remote policy encryption enabled is launched without network then it crashes.

      Steps to Reproduce:
      1. Create a Titanium app project.
      2. Add the following line to the "tiapp.xml" file.
      <property name="appc-sourcecode-encryption-policy">remote</property>
      3. Disable the internet connection on the iOS device
      4. Build and run the app to the iOS device.

      Actual Result:
      The app crashes on launch with following error in log

      [ERROR] :  TypeError: undefined is not an object
      [ERROR] :      Foundation 0x000000018fefe940 _NSDescriptionWithLocaleFunc + 96
      [ERROR] :      CoreFoundation 0x000000018ebb8fe4 96F8386D-D88A-3C89-A323-A17975C3317F + 778212
      [ERROR] :      CoreFoundation 0x000000018ebba154 _CFStringCreateWithFormatAndArgumentsReturningMetadata + 160
      [ERROR] :      TitaniumKit 0x00000001031d59cc TiLogMessage + 60
      [ERROR] :      TitaniumKit 0x0000000103210fec -[TiExceptionHandler reportScriptError:] + 76
      [ERROR] :      TitaniumKit 0x00000001031e9ac4 -[KrollBridge didStartNewContext:] + 560
      [ERROR] :      TitaniumKit 0x000000010321f660 -[KrollContext main] + 1068
      [ERROR] :      libdispatch.dylib 0x000000018e84d298 6C143C51-288F-3CD0-84DD-17B9A0AAEE62 + 393880
      [ERROR] :      libdispatch.dylib 0x000000018e84e280 6C143C51-288F-3CD0-84DD-17B9A0AAEE62 + 397952
      [ERROR] :      libdispatch.dylib 0x000000018e7fd05c 6C143C51-288F-3CD0-84DD-17B9A0AAEE62 + 65628
      [ERROR] :      CoreFoundation 0x000000018eb955d0 96F8386D-D88A-3C89-A323-A17975C3317F + 632272
      [ERROR] :      CoreFoundation 0x000000018eb8fa78 96F8386D-D88A-3C89-A323-A17975C3317F + 608888
      [ERROR] :      CoreFoundation 0x000000018eb8eb90 CFRunLoopRunSpecific + 572
      [ERROR] :      GraphicsServices 0x00000001a4eb1598 GSEventRunModal + 160
      [ERROR] :      UIKitCore 0x0000000191478638 71B59F62-19DA-3CFF-89E1-DACF333BAB0D + 11716152
      [ERROR] :      UIKitCore 0x000000019147dbb8 UIApplicationMain + 164
      [ERROR] :      testTicket 0x0000000102e62e1c testTicket + 28188
      [ERROR] :      libdyld.dylib 0x000000018e86d588 E31C0887-C999-3047-9B80-203248EC2396 + 5512
      

      Expected Result:
      The app should launch without a crash and show a message related to Security Violation Detected

        Attachments

          Activity

            People

            • Assignee:
              cwilliams Christopher Williams
              Reporter:
              ssekhri Satyam Sekhri
              Reviewer:
              Vijay Singh
              Tester:
              Satyam Sekhri
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration