wojtekmo / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

GTM for iOS: Can't load default container: "Type __NSCFArray is not supported" #857

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Google Tag Manager for iOS

Name of related library and version: GoogleTagManager / libTagManager 3.15.0

Issue summary:
Loading the default container, in JSON format, fails with this error:

GoogleTagManager warning: Error reading resource from json file: Type 
__NSCFArray is not supported

There is no error if I manually modify the JSON and remove all arrays. There is 
also no more error if I rename the keys of the values containing arrays. The 
application, including its AppDelegate, is mostly written in Swift, but moving 
the code to a View Controller written in Objective C also causes this error.

Steps to reproduce issue:
1. Put the sample code for opening GTM containers in an iOS app

Expected output:
The default container should be loaded.

Actual results:
The default container fails to load, and GTM proceeds without a container.

An empty container also fails in the same way. Using a completely different 
container causes the same issue.

Original issue reported on code.google.com by philippe...@getsparklist.com on 18 Jan 2016 at 4:54