DX Application Performance Management

Expand all | Collapse all

Integrate MAA on an Swift iOS App

  • 1.  Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 02:31 AM

    Hello,

    I’m trying to integrate MAA on an iOS App written in Swift and I'm using the test environment https://mdo.mobility.ca.com

    I’ve read the wiki page and done (I think) everything but it doesn’t seam to work, I don’t get any errors but I don’t any metrics either …

    Is it possible to add a debug log ?

     

    Thanks



  • 2.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 02:38 AM

    Daiele, Can you please copy and paste the xcode console log here? Console log should have more information on SDK initialization.

     

    Thanks

    --Venky



  • 3.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 02:45 AM

    This is the first line of log when my app start, after I can see only my debug line:

     

    2015-01-14 08:41:28.669 ConsoftAPI[6397:3650207] Plist File present.

    2015-01-14 08:41:28.670 ConsoftAPI[6397:3650207] camaa_staticPreferencesDict is NOT nil =5

    2015-01-14 08:41:28.670 ConsoftAPI[6397:3650207] plist file check success !

    2015-01-14 08:41:28.810 ConsoftAPI[6397:3650207] plist file check success !

    2015-01-14 08:41:28.810 ConsoftAPI[6397:3650207] CAMAA iOS SDK Build Version = 14.4-RC4 Mon Dec 22 16:32:06 PST 2014



    Thanks



  • 4.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 02:47 AM

    SDK seemed to have initialized successfully. Can you send all the log entries?

     

    Thanks



  • 5.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 02:52 AM

    Also can you let me know where you have added [CAMDOReporter initializeSDK] method?

     

    Thanks

    --Venky



  • 6.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 02:59 AM

    Hello,

    I've initialized sdk in AppDelegate.swift:

     

        func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

            // Override point for customization after application launch.

            CAMDOReporter.initializeSDK()

            return true

        }

     

     

    This is all the log I have :

     

    2015-01-14 08:41:28.669 ConsoftAPI[6397:3650207] Plist File present.

    2015-01-14 08:41:28.670 ConsoftAPI[6397:3650207] camaa_staticPreferencesDict is NOT nil =5

    2015-01-14 08:41:28.670 ConsoftAPI[6397:3650207] plist file check success !

    2015-01-14 08:41:28.810 ConsoftAPI[6397:3650207] plist file check success !

    2015-01-14 08:41:28.810 ConsoftAPI[6397:3650207] CAMAA iOS SDK Build Version = 14.4-RC4 Mon Dec 22 16:32:06 PST 2014

    Nome->APM > MOM GC Heap

    Tipo->wily

    Url->/wily/a

    xxNome->APM > Live WebServices

    Tipo->wily

    Url->/wily/b

    xxNome->APM > History WebServices

    Tipo->wilyh

    Url->/wily/c

    xxNome->CloudMonitor > tempi risposta TS

    Tipo->wilyh

    Url->/wily/tsweb

    xxNome->Service Desk > request (7gg)

    Tipo->sdesc

    Url->/servicedesk/request

    xxNome->Splunk > Tempi di Chiusura

    Tipo->csv

    Url->/splunk/chiusura

    xxNome->Splunk > Tempi di Approvazione

    Tipo->csv

    Url->/splunk/approvazione

    xxrefreshed

    The loaded image: <UIImage: 0x7fbc02730e10>

    The loaded image: <UIImage: 0x7fbc0273dff0>

    The loaded image: <UIImage: 0x7fbc027407d0>

    The loaded image: <UIImage: 0x7fbc02743250>

    The loaded image: <UIImage: 0x7fbc02745c30>

    The loaded image: <UIImage: 0x7fbc0274a460>

    The loaded image: <UIImage: 0x7fbc0274ce10>

    Optional({

        "multiRef": [

            {

                "metricData": {

                    "metricData": {"href": "#id8"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns3:MetricData[1]"

                },

                "id": "id2",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:38:00.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:38:15.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns3:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "metricData": {

                    "metricData": {"href": "#id9"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns4:MetricData[1]"

                },

                "id": "id7",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:39:15.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:39:30.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns4:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "metricData": {

                    "metricData": {"href": "#id10"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns5:MetricData[1]"

                },

                "id": "id3",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:38:15.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:38:30.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns5:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "metricData": {

                    "metricData": {"href": "#id11"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns6:MetricData[1]"

                },

                "id": "id1",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:37:45.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:38:00.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns6:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "metricData": {

                    "metricData": {"href": "#id12"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns7:MetricData[1]"

                },

                "id": "id4",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:38:30.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:38:45.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns7:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "metricData": {

                    "metricData": {"href": "#id13"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns8:MetricData[1]"

                },

                "id": "id6",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:39:00.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:39:15.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns8:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "metricData": {

                    "metricData": {"href": "#id14"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns9:MetricData[1]"

                },

                "id": "id5",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:38:45.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:39:00.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns9:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "metricData": {

                    "metricData": {"href": "#id15"},

                    "xsi:type": "soapenc:Array",

                    "soapenc:arrayType": "ns10:MetricData[1]"

                },

                "id": "id0",

                "soapenc:root": "0",

                "timesliceStartTime": {

                    "content": "2015-01-14T07:37:30.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "timesliceEndTime": {

                    "content": "2015-01-14T07:37:45.000Z",

                    "xsi:type": "xsd:dateTime"

                },

                "xsi:type": "ns10:TimeslicedResultSetMetricData",

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id10",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns11:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id13",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns12:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id15",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns13:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id14",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns14:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id9",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns15:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id8",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns16:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id11",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns17:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            },

            {

                "id": "id12",

                "metricType": {

                    "content": "257",

                    "xsi:type": "xsd:int"

                },

                "agentName": {

                    "content": "Custom Metric Host (Virtual)|Custom Metric Process (Virtual)|Custom Metric Agent (Virtual)",

                    "xsi:type": "xsd:string"

                },

                "soapenc:root": "0",

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "ns18:MetricData",

                "metricValue": {

                    "content": "0",

                    "xsi:type": "xsd:string"

                },

                "metricName": {

                    "content": "Enterprise Manager|WebService|Polling|/introscope-web-services/services/MetricsDataService:Average Response Time (ms)",

                    "xsi:type": "xsd:string"

                },

                "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

                "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

            }

        ],

        "ns1:getLiveMetricDataResponse": {

            "getLiveMetricDataReturn": {

                "getLiveMetricDataReturn": [

                    {"href": "#id0"},

                    {"href": "#id1"},

                    {"href": "#id2"},

                    {"href": "#id3"},

                    {"href": "#id4"},

                    {"href": "#id5"},

                    {"href": "#id6"},

                    {"href": "#id7"}

                ],

                "xmlns:soapenc": "http://schemas.xmlsoap.org/soap/encoding/",

                "xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance",

                "xsi:type": "soapenc:Array",

                "soapenc:arrayType": "ns2:TimeslicedResultSetMetricData[8]"

            },

            "xmlns:ns1": "http://metricsdata.webservicesimpl.server.introscope.wily.com",

            "xmlns:soapenv": "http://schemas.xmlsoap.org/soap/envelope/",

            "soapenv:encodingStyle": "http://schemas.xmlsoap.org/soap/encoding/"

        }

    })

    #id11

    id0

    id1

    id2

    id3

    id4

    id5

    id6

    id7

    location:-0.88, length:8.8

    location:-0.0, length:0.0

    location:-0.88, length:8.8

    location:-0.0, length:0.0

    1.0,0.0

    2.0,0.0

    3.0,0.0

    4.0,0.0

    5.0,0.0

    6.0,0.0

    7.0,0.0




  • 7.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 03:02 AM

    Can you minimize the application and relaunch the app? This will force the SDK to upload the data. For some reason, SDK doesn't seem to upload the data.

     

    Thanks

    --Venky



  • 8.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 03:09 AM

    With minimise do you mean to kill the app in iOS and launch again?



  • 9.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 03:11 AM

    No. Just hit the Home button and relaunch the application. And then send the console log.



  • 10.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 03:14 AM

    I don't see any differences; I've also tried (after the home and relaunch) to change screen in my app; this is my log:

     

    2015-01-14 09:12:20.131 ConsoftAPI[6639:3790370] Plist File present.

    2015-01-14 09:12:20.132 ConsoftAPI[6639:3790370] camaa_staticPreferencesDict is NOT nil =5

    2015-01-14 09:12:20.132 ConsoftAPI[6639:3790370] plist file check success !

    2015-01-14 09:12:20.260 ConsoftAPI[6639:3790370] plist file check success !

    2015-01-14 09:12:20.261 ConsoftAPI[6639:3790370] CAMAA iOS SDK Build Version = 14.4-RC4 Mon Dec 22 16:32:06 PST 2014

    Nome->APM > MOM GC Heap

    Tipo->wily

    Url->/wily/a

    xxNome->APM > Live WebServices

    Tipo->wily

    Url->/wily/b

    xxNome->APM > History WebServices

    Tipo->wilyh

    Url->/wily/c

    xxNome->CloudMonitor > tempi risposta TS

    Tipo->wilyh

    Url->/wily/tsweb

    xxNome->Service Desk > request (7gg)

    Tipo->sdesc

    Url->/servicedesk/request

    xxNome->Splunk > Tempi di Chiusura

    Tipo->csv

    Url->/splunk/chiusura

    xxNome->Splunk > Tempi di Approvazione

    Tipo->csv

    Url->/splunk/approvazione

    xxrefreshed

    The loaded image: <UIImage: 0x7fb1cae73df0>

    The loaded image: <UIImage: 0x7fb1cae77160>

    The loaded image: <UIImage: 0x7fb1cae79a50>

    The loaded image: <UIImage: 0x7fb1cac79c20>

    The loaded image: <UIImage: 0x7fb1cae7c4d0>

    The loaded image: <UIImage: 0x7fb1cae80d30>

    The loaded image: <UIImage: 0x7fb1cae83640>

    2015-01-14 09:12:39.883 ConsoftAPI[6639:3790370] Unable to simultaneously satisfy constraints.

      Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)

    (

        "<NSLayoutConstraint:0x7fb1caf80e20 H:[UILabel:0x7fb1caf80c70'Username'(106)]>",

        "<NSLayoutConstraint:0x7fb1caf80ec0 H:[UILabel:0x7fb1caf80c70'Username'(100)]>"

    )

     

    Will attempt to recover by breaking constraint

    <NSLayoutConstraint:0x7fb1caf80e20 H:[UILabel:0x7fb1caf80c70'Username'(106)]>

     

    Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.

    The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.




  • 11.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 05:00 AM

    Daniele

     

    I think you have forgotten to include the MAA plist file, which I think for your project should be called ConsoftAPI_camdo.plist

     

    You download this file from the App screen- the next to the link where you downloaded the SDK itself. Add the plist file to the "Supporting Files" section of your project such that you have twi plists in total.

     

    I am able to recreate your exact problem by removing this plist file from one of my Swift projects and recompiling, so I am pretty sure this is what's happening for you.



  • 12.  Re: Integrate MAA on an Swift iOS App

    Posted Jan 14, 2015 12:37 PM

    Hi Daniele,

     

    There is raw and processed  data in our mdo.mobility.ca.com (try and buy)  system from your app on the 9th and the 12th. For the 13 and 14th there is just raw data but not processed. Processed data is the one that gives various counts like sessions, users etc. I was able to run the project your shared by removing the PlotView class for now as I don't have the library it needs. Your project setup including Swift bridging as well as plist  looks correct to me. We will debug the issues with processed data and get back to you.

     

    In the meantime can you check if you are able to see any data by selecting last 30 days for example on one of "Usage" screen? Do you see anything when you select last 7 days?