[
https://issues.apache.org/jira/browse/CB-9265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14612669#comment-14612669
]
Shazron Abdullah edited comment on CB-9265 at 7/2/15 11:18 PM:
---------------------------------------------------------------
It is related to cordova-ios 4.x. Previous platform versions were using a
third-party JSON serialization library, and this was causing conflicts if a
third-party plugin included that library as well (especially if it was an Obj-C
Category, that would cause undetermined behavior at runtime).
With cordova-ios 4.x, and the minimum support of iOS 7, we use the built in
NSJSONSerialization library instead, removing support for the JSON
serialization third-party library. However removing this support breaks support
in older platform versions for this plugin. I'm sure there is a better path for
backwards compatibility, but this way seems the easiest and most clear.
was (Author: shazron):
It is related to cordova-ios 4.x. Previous platform versions were using a
third-party JSON serialization library, and this was causing conflicts if a
third-party plugin included that library as well (especially if it was an Obj-C
Category).
With cordova-ios 4.x, and the minimum support of iOS 7, we use the built in
NSJSONSerialization library instead, removing support for the JSON
serialization third-party library. However removing this support breaks support
in older platform versions for this plugin. I'm sure there is a better path for
backwards compatibility, but this way seems the easiest and most clear.
> Mobilespec crashes on iPhone 6 simulator
> ----------------------------------------
>
> Key: CB-9265
> URL: https://issues.apache.org/jira/browse/CB-9265
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS, mobile-spec
> Environment: iOS 8.3, iPhone 6 simulator, Xcode 6.3.1
> Reporter: Dmitry Blotsky
> Priority: Critical
> Labels: crash, ios, mobilespec, simulator
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> Mobilespec hangs during splash screen and then crashes. Console output below:
> {noformat}
> Jun 29 19:08:54 dbexecutor.local mobilespec[5854]: *** Terminating app due to
> uncaught exception 'NSInvalidArgumentException', reason: '-[NSConcreteData
> base64EncodedString]: unrecognized selector sent to instance 0x796be580'
> *** First throw call stack:
> (
> 0 CoreFoundation 0x01a7d746
> __exceptionPreprocess + 182
> 1 libobjc.A.dylib 0x016d8a97
> objc_exception_throw + 44
> 2 CoreFoundation 0x01a85705
> -[NSObject(NSObject) doesNotRecognizeSelector:] + 277
> 3 CoreFoundation 0x019cc287
> ___forwarding___ + 1047
> 4 CoreFoundation 0x019cbe4e
> _CF_forwarding_prep_0 + 14
> 5 mobilespec 0x0010565f
> __25-[CDVFile readAsDataURL:]_block_invoke_2 + 255
> 6 mobilespec 0x0010d7db
> -[CDVLocalFilesystem readFileAtURL:start:end:callback:] + 539
> 7 mobilespec 0x0010551a
> __25-[CDVFile readAsDataURL:]_block_invoke + 202
> 8 libdispatch.dylib 0x03672d8a
> _dispatch_call_block_and_release + 15
> 9 libdispatch.dylib 0x0368fecf
> _dispatch_client_callout + 14
> 10 libdispatch.dylib 0x0367a348
> _dispatch_root_queue_drain + 745
> 11 libdispatch.dylib 0x0367b3e7
> _dispatch_worker_thread3 + 108
> 12 libsystem_pthread.dylib 0x039cf1da
> _pthread_wqthread + 724
> 13 libsystem_pthread.dylib 0x039cce2e
> start_wqthread + 30
> )
> Jun 29 19:08:55 dbexecutor
> com.apple.CoreSimulator.SimDevice.D1704D22-3CBA-45D4-A2C6-B30A8CC30799.launchd_sim[5712]
> (UIKitApplication:org.apache.mobilespec[0x11c6][5854]): Service exited due
> to signal: Abort trap: 6
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]