Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-3394

Cordova iOS crashes when multiple access elements in config.xml

    XMLWordPrintableJSON

    Details

      Description

      The presence of more than one access element in config.xml causes Cordova iOS to crash.

      EDIT: one of them has to be a wildcard to cause the crash, see comment.

      <access origin="*" />
      <access origin="build.phonegap.com" />

      It halts with "Thread 1: signal SIGABRT" on the following line of main.m:
      int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate");

      Traced down to the loadSettings function.

      Full output log:

      2013-05-14 20:28:59.431 Test270[53246:c07] Multi-tasking -> Device: YES, App: YES
      2013-05-14 20:28:59.435 Test270[53246:c07] -[__NSArrayI addObject:]: unrecognized selector sent to instance 0xa2860a0
      2013-05-14 20:28:59.437 Test270[53246:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI addObject:]: unrecognized selector sent to instance 0xa2860a0'

          • First throw call stack:
            (0x16b012 0x25e4e7e 0x1f64bd 0x15abbc 0x15a94e 0x53eea 0x53151 0x57cae 0x56970 0x56a3e 0x30b9 0x485e1e 0x56afe 0x311d 0x2bdb 0x3a4157 0x3a4747 0x3a594b 0x3b6cb5 0x3b7beb 0x3a9698 0x3416df9 0x3416ad0 0xe0bf5 0xe0962 0x111bb6 0x110f44 0x110e1b 0x3a517a 0x3a6ffc 0x28bc 0x2815 0x1)
            libc++abi.dylib: terminate called throwing an exceptio

        Attachments

          Activity

            People

            • Assignee:
              shazron Shazron Abdullah
              Reporter:
              wildabeast Ryan Willoughby
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: