ios - Segment framework make UIAlertController to crash -


i follow "https://segment.com/" implement analytics user usage on ios source. when use uialertcontroller show alert title @"", app crash! don't know why. solve it, must set title of alert nil. , logs:

2016-11-10 17:12:57.185 lightning rider partner[24434:236155] *** assertion failure in -[seganalytics screen:properties:options:](), /users/dungdo/desktop/tcourier-ios/v2_driver/pods/analytics/analytics/classes/seganalytics.m:323 2016-11-10 17:12:57.192 lightning rider partner[24434:236155] *** terminating app due uncaught exception 'nsinternalinconsistencyexception', reason: 'screen name () must not empty.' *** first throw call stack: (     0   corefoundation                      0x000000010c1f134b __exceptionpreprocess + 171     1   libobjc.a.dylib                     0x00000001120f521e objc_exception_throw + 48     2   corefoundation                      0x000000010c1f5442 +[nsexception raise:format:arguments:] + 98     3   foundation                          0x0000000111cc1d79 -[nsassertionhandler handlefailureinfunction:file:linenumber:description:] + 166     4   analytics                           0x000000010bc29d37 -[seganalytics screen:properties:options:] + 471     5   analytics                           0x000000010bc3fb7c -[uiviewcontroller(segscreen) seg_viewdidappear:] + 444     6   uikit                               0x000000010e50eb0c -[uiviewcontroller _setviewappearstate:isanimating:] + 945     7   uikit                               0x000000010e51187a __64-[uiviewcontroller viewdidmovetowindow:shouldappearordisappear:]_block_invoke + 42     8   uikit                               0x000000010e50fb64 -[uiviewcontroller _executeafterappearanceblock] + 86     9   uikit                               0x000000010e374438 _runaftercacommitdeferredblocks + 653     10  uikit                               0x000000010e360f6f _cleanupaftercaflushandrundeferredblocks + 566     11  uikit                               0x000000010e3923da _aftercacommithandler + 176     12  corefoundation                      0x000000010c195e17 __cfrunloop_is_calling_out_to_an_observer_callback_function__ + 23     13  corefoundation                      0x000000010c195d87 __cfrunloopdoobservers + 391     14  corefoundation                      0x000000010c17ab9e __cfrunlooprun + 1198     15  corefoundation                      0x000000010c17a494 cfrunlooprunspecific + 420     16  graphicsservices                    0x0000000115145a6f gseventrunmodal + 161     17  uikit                               0x000000010e367964 uiapplicationmain + 159     18  lightning rider partner             0x000000010ad74c3f main + 111     19  libdyld.dylib                       0x00000001128a868d start + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception 

i getting same issue while using segment framework.

i comment assert statement in sdk file empty screen. please search line below in whole project , comment out.

nscassert1(screentitle.length > 0, @"screen name (%@) must not empty.", screentitle);

you go.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -