zoho / SalesIQ-Mobilisten-iOS

Your mobile app's ideal live chat partner. Power up your iOS App with the SalesIQ Mobilisten iOS SDK.
https://mobilisten.io
12 stars 4 forks source link

SDK Not working in Objective C #6

Closed hirengohel closed 4 years ago

hirengohel commented 4 years ago

I follow installation step as per give into zoho portal. but it give always error.i attach screenshot of error please help me to find out proper solution. Because same step follow in swift project and in work file for me. [ZohoSalesIQ initWithAppKey:**zohoAppKey** accessKey:**zohoAccessKey** completion:^(BOOL completed) { }];
[ZohoSalesIQ.Chat setThemeColor:[UIColor navigationBarColor]]; [ZohoSalesIQ.Chat setBarTintColor:[UIColor navigationBarTextColor]]; [ZohoSalesIQ showLiveChat:YES];

I import header file in file.

Screenshot 2020-03-23 at 12 48 25 PM Screenshot 2020-03-23 at 12 49 21 PM
Rishabh-Raghunath commented 4 years ago

Hello @hirengohel We understand the issue. The issue is caused since Mobilisten cannot be run on a simulator target only in Objective-C projects. This is due to a known issue introduced in Xcode 10.2 and present in the versions above. While we work on a fix to allow running Objective-C projects on the simulator, you will be able to build the Objective-C project successfully if you attempt to build and run the project on a device rather than on a simulator. A workaround for this has been planned in an upcoming release.

Rishabh-Raghunath commented 4 years ago

Hi @hirengohel, This issue has been fixed in version 3.1.0 and above. You should now be able to import Mobilisten and build your Objective-C project with Simulator selected as the run target without any issues. Closing this issue since this has been addressed in the update.