-
May 20th, 2016, 10:45 AM
#21

Originally Posted by
Dmitry Sazanovich
Would be nice to make a vote bw iOS programmers who are using this library, but I'm strongly sure that lib shouldn't throw exception.
Dmitry.V.Sazanovich
Agreed. I use iOS client version 1.4.3 build 163 but it is still throwing Exceptions even for NSError version methods, which sounds like a blasphemy to me.
Exceptions should be caught at a lower level in the Lighstreamer code and converted to NSErrors.
On another topic, I tried a quick integration test of the pod version, not to actually use it, just for future integration when it will be time to move to it.
The thing is the pod is holding a static library, which makes it difficult/impossible to integrate in development pods:
https://github.com/CocoaPods/CocoaPods/issues/3267
https://github.com/CocoaPods/CocoaPods/issues/3346
https://github.com/CocoaPods/CocoaPods/issues/3583
https://github.com/CocoaPods/CocoaPods/issues/3985
-
May 21st, 2016, 09:28 AM
#22
Hello Romano,
in client libraries version 1.x, there are some exceptions that we still throw from NSError methods because they are due to programmer errors. E.g. unsubscribing a table twice. Apple itself resorts to exceptions in such situations, to make the developer aware of the problem quickly.
Anyway, as stated before, since client library 2.0 the APIs have been redesigned and error handling is now fully asynchronous. No more exceptions or even NSErrors.
Regarding difficulties with our pods, a dependency we rely upon is distributed exclusively as a static library. As far as we know, to distribute a framework linked to a static library requires distributing the static library too, so that would not make any improvement. If you have better information to share with us, regarding these issues, we will surely consider them and take any appropriate step to improve our product.
Best regards,
Gianluca
Similar Threads
-
By Anatoly Gurfinkel in forum Client SDKs
Replies: 9
Last Post: July 6th, 2015, 05:24 PM
-
By LS_Developer in forum Client SDKs
Replies: 3
Last Post: February 14th, 2013, 03:47 PM
-
By mibrahim.youxel in forum Client SDKs
Replies: 4
Last Post: December 3rd, 2012, 10:49 AM
-
By bor306 in forum Client SDKs
Replies: 7
Last Post: July 11th, 2012, 03:28 PM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: March 28th, 2011, 04:06 PM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 06:05 PM.
Bookmarks