{"action":"created","issue":{"url":"https://api.github.com/repos/DevDmitryHub/cordova-plugin-appsflyer/issues/2","repository_url":"https://api.github.com/repos/DevDmitryHub/cordova-plugin-appsflyer","labels_url":"https://api.github.com/repos/DevDmitryHub/cordova-plugin-appsflyer/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/DevDmitryHub/cordova-plugin-appsflyer/issues/2/comments","events_url":"https://api.github.com/repos/DevDmitryHub/cordova-plugin-appsflyer/issues/2/events","html_url":"https://github.com/DevDmitryHub/cordova-plugin-appsflyer/issues/2","id":143204757,"number":2,"title":"Build error on iOS ","user":{"login":"AbraXus","id":3765573,"avatar_url":"https://avatars.githubusercontent.com/u/3765573?v=3","gravatar_id":"","url":"https://api.github.com/users/AbraXus","html_url":"https://github.com/AbraXus","followers_url":"https://api.github.com/users/AbraXus/followers","following_url":"https://api.github.com/users/AbraXus/following{/other_user}","gists_url":"https://api.github.com/users/AbraXus/gists{/gist_id}","starred_url":"https://api.github.com/users/AbraXus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbraXus/subscriptions","organizations_url":"https://api.github.com/users/AbraXus/orgs","repos_url":"https://api.github.com/users/AbraXus/repos","events_url":"https://api.github.com/users/AbraXus/events{/privacy}","received_events_url":"https://api.github.com/users/AbraXus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-24T10:03:53Z","updated_at":"2016-03-30T10:45:55Z","closed_at":"2016-03-24T16:21:24Z","body":"I get the following errors when building the app for iOS:\r\n\r\n```\r\nAppsFlyerPlugin.m:8:38: error: no visible @interface for 'CDVPlugin' declares the selector 'initWithWebView:'\r\n    self = (AppsFlyerPlugin *)[super initWithWebView:theWebView];\r\n```\r\n\r\nand\r\n\r\n```\r\nAppsFlyerPlugin.m:80:26: error: no visible @interface for 'UIView' declares the selector 'stringByEvaluatingJavaScriptFromString:'\r\n        [[super webView] stringByEvaluatingJavaScriptFromString: [NSString stringWithFormat:@\"javascript:window.plugins.appsFlyer.onInstallConversionDataLoaded(%@)\", JSONString]];\r\n```\r\n\r\nI tried both plugin versions **v.3.3.3** and **v.3.3.1** but same effect.\r\nI am using Cordova v6 with cordova-ios 4.0.1.\r\n\r\nAny help would be much appreciated."},"comment":{"url":"https://api.github.com/repos/DevDmitryHub/cordova-plugin-appsflyer/issues/comments/203375457","html_url":"https://github.com/DevDmitryHub/cordova-plugin-appsflyer/issues/2#issuecomment-203375457","issue_url":"https://api.github.com/repos/DevDmitryHub/cordova-plugin-appsflyer/issues/2","id":203375457,"user":{"login":"AbraXus","id":3765573,"avatar_url":"https://avatars.githubusercontent.com/u/3765573?v=3","gravatar_id":"","url":"https://api.github.com/users/AbraXus","html_url":"https://github.com/AbraXus","followers_url":"https://api.github.com/users/AbraXus/followers","following_url":"https://api.github.com/users/AbraXus/following{/other_user}","gists_url":"https://api.github.com/users/AbraXus/gists{/gist_id}","starred_url":"https://api.github.com/users/AbraXus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbraXus/subscriptions","organizations_url":"https://api.github.com/users/AbraXus/orgs","repos_url":"https://api.github.com/users/AbraXus/repos","events_url":"https://api.github.com/users/AbraXus/events{/privacy}","received_events_url":"https://api.github.com/users/AbraXus/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T10:45:55Z","updated_at":"2016-03-30T10:45:55Z","body":"Hi @DevDmitryHub \r\n\r\nThanks for the fast help. The issue above was resolved with v.4.0.1. \r\nHowever, I run into another error when starting the app.\r\n\r\nThe error occurrs on the following line: \r\n\r\n`[[super webViewEngine] evaluateJavaScript:[NSString stringWithFormat:@\"javascript:window.plugins.appsFlyer.onInstallConversionDataLoaded(%@)\", JSONString] completionHandler:nil];`\r\n\r\nXcode debug output:\r\n\r\n```\r\n2016-03-30 12:37:24.483 DEV[329:41137] AppsFlyer: __37-[AppsFlyerTracker getConversionData]_block_invoke170 conversion response from server:{\"af_status\": \"Organic\", \"af_message\": \"organic install\"}  [...]\r\n2016-03-30 12:37:24.491 DEV[329:41137] AppsFlyer: __37-[AppsFlyerTracker getConversionData]_block_invoke170 Caching conversion data.\r\n2016-03-30 12:37:24.491 DEV[329:41137] bool _WebTryThreadLock(bool), 0x1463755e0: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now...\r\n1   0x1858fcf8c WebThreadLock\r\n2   0x1870046b0 <redacted>\r\n3   0x10014af10 -[CDVUIWebViewEngine evaluateJavaScript:completionHandler:]\r\n4   0x1000f7b08 -[AppsFlyerPlugin onConversionDataReceived:]\r\n5   0x1001546a8 __37-[AppsFlyerTracker getConversionData]_block_invoke170\r\n6   0x18201f53c <redacted>\r\n7   0x1820320bc <redacted>\r\n8   0x1823ec510 <redacted>\r\n9   0x18233e900 <redacted>\r\n10  0x18232eed8 <redacted>\r\n11  0x1823ee904 <redacted>\r\n12  0x1006f9a3c _dispatch_client_callout\r\n13  0x100706554 _dispatch_queue_drain\r\n14  0x1006fd72c _dispatch_queue_invoke\r\n15  0x10070866c _dispatch_root_queue_drain\r\n16  0x100708364 _dispatch_worker_thread3\r\n17  0x181695470 _pthread_wqthread\r\n18  0x181695020 start_wqthread\r\n(lldb) \r\n```\r\n\r\nAny idea what is going wrong this time? "}}