The app is approved by Apple but it keep on crashing when downloaded from the App Store, The app works fine in Simulator.
Here's the crashlog.
From my searches it was indicated that it's due to Parse and but even after updating Parse and re submitting to Apple Review the app still crashes
Incident Identifier: 1EA2D752-986F-45F0-B00D-258BBDAFFDBE
CrashReporter Key: 16f85ba0a0b881573e6146c9e7ff8890a75db660
Hardware Model: iPhone7,2
Process: Roadster [429]
Path: /private/var/containers/Bundle/Application/5BF8E8BA-B069-40C7-9345-5FB298584CFF/Roadster.app/Roadster
Identifier: App.Roadster
Version: 4 (4.5)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-06-24 02:16:02.02 +0530
Launch Time: 2016-06-24 02:15:47.47 +0530
OS Version: iOS 9.3.2 (13F69)
Report Version: 105
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Filtered syslog:
None found
Global Trace Buffer (reverse chronological seconds):
0.224703 CFNetwork 0x0000000184525990 TCP Conn 0x154f8b920 starting SSL negotiation
0.225145 CFNetwork 0x00000001845c7f18 TCP Conn 0x154f8b920 complete. fd: 19, err: 0
0.226301 CFNetwork 0x00000001845c9444 TCP Conn 0x154f8b920 event 1. err: 0
0.849718 CFNetwork 0x00000001845c951c TCP Conn 0x154f8b920 started
11.240709 CFNetwork 0x0000000184525a80 TCP Conn 0x154db8b00 SSL Handshake DONE
12.478336 CFNetwork 0x0000000184525990 TCP Conn 0x154db8b00 starting SSL negotiation
12.479360 CFNetwork 0x00000001845c7f18 TCP Conn 0x154db8b00 complete. fd: 15, err: 0
12.479584 CFNetwork 0x00000001845c9444 TCP Conn 0x154db8b00 event 1. err: 0
12.865094 CFNetwork 0x00000001845c951c TCP Conn 0x154db8b00 started
12.889732 CFNetwork 0x0000000184525a80 TCP Conn 0x154d799c0 SSL Handshake DONE
13.189451 CFNetwork 0x0000000184525a80 TCP Conn 0x154e87ad0 SSL Handshake DONE
13.377730 CFNetwork 0x0000000184525a80 TCP Conn 0x154d5cae0 SSL Handshake DONE
13.667209 CFNetwork 0x0000000184525a80 TCP Conn 0x154d3a890 SSL Handshake DONE
13.726884 CFNetwork 0x0000000184525990 TCP Conn 0x154d799c0 starting SSL negotiation
13.731394 CFNetwork 0x00000001845c7f18 TCP Conn 0x154d799c0 complete. fd: 13, err: 0
13.735323 CFNetwork 0x00000001845c9444 TCP Conn 0x154d799c0 event 1. err: 0
13.895899 CFNetwork 0x0000000184525990 TCP Conn 0x154e87ad0 starting SSL negotiation
13.896511 CFNetwork 0x00000001845c7f18 TCP Conn 0x154e87ad0 complete. fd: 7, err: 0
13.898156 CFNetwork 0x00000001845c9444 TCP Conn 0x154e87ad0 event 1. err: 0
13.991708 CFNetwork 0x0000000184525990 TCP Conn 0x154d3a890 starting SSL negotiation
13.992223 CFNetwork 0x00000001845c7f18 TCP Conn 0x154d3a890 complete. fd: 12, err: 0
13.993698 CFNetwork 0x00000001845c9444 TCP Conn 0x154d3a890 event 1. err: 0
14.076219 CFNetwork 0x0000000184525990 TCP Conn 0x154d5cae0 starting SSL negotiation
14.076820 CFNetwork 0x00000001845c7f18 TCP Conn 0x154d5cae0 complete. fd: 6, err: 0
14.078054 CFNetwork 0x00000001845c9444 TCP Conn 0x154d5cae0 event 1. err: 0
14.227695 CFNetwork 0x00000001845c951c TCP Conn 0x154d799c0 started
14.229171 CFNetwork 0x00000001845c951c TCP Conn 0x154d3a890 started
14.518114 CFNetwork 0x00000001845c951c TCP Conn 0x154e87ad0 started
14.519612 CFNetwork 0x0000000184623e5c Creating default cookie storage with default identifier
14.519612 CFNetwork 0x0000000184623e28 Faulting in CFHTTPCookieStorage singleton
14.519612 CFNetwork 0x0000000184675e50 Faulting in NSHTTPCookieStorage singleton
14.529775 CFNetwork 0x00000001845c951c TCP Conn 0x154d5cae0 started
Answering myself :
Problem was due to Parse, Update Parse framework and it should solve the problem
Related
I'm having issues with NativeScript running iOS (either simulated or physical) communicating with my local server (either running on linux or on the same test deployment running on my MacBook) due to SSL issues. From the searching I've already done this is due to the app transport security blocking the request as it's an untrusted SSL connection. I've modified the file app/App_Resources/iOS/Info.plist to add the lines
`<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>CFBundleDevelopmentRegion</key>`
but it is still failing. The inner exception states
Error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “192.168.0.40” which could put your confidential information at risk.
These lines should resolve the issue as it allows for untrusted communication. It seems that they're getting ignored. Any ideas why this might be failing?
Here's the full stack trace...
`
(qrmobileapp) Created Activity ID: 0x96907, Description: Loading Preferences From System CFPrefsD
(CFNetwork) Faulting in NSHTTPCookieStorage singleton
(CFNetwork) Faulting in CFHTTPCookieStorage singleton
(CFNetwork) Creating default cookie storage with process/bundle identifier
(CFNetwork) TIC Enabling TLS [1:0x60400016a800]
(CFNetwork) TIC TCP Conn Start [1:0x60400016a800]
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> setting up Connection 1
(libnetwork.dylib) [com.apple.network:] [1 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/test, tls] start
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 1, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 2, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 11, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 12, Pending(0)
(CFNetwork) TIC TLS Event [1:0x60400016a800]: 14, Pending(0)
(qrmobileapp) Created Activity ID: 0x96908, Description: SecTrustEvaluateIfNecessary
(Security) [com.apple.securityd:SecError] Trust evaluate failure: [leaf AnchorTrusted SSLHostname]
(CFNetwork) TIC TLS Trust Result [1:0x60400016a800]: 2
(CFNetwork) TIC SSL Trust Error [1:0x60400016a800]: 3:0
(CFNetwork) TIC TCP Conn Cancel [1:0x60400016a800]
(CFNetwork) NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> HTTP load failed (error code: -1202 [3:-9813])
(CFNetwork) Task <D90CBCBA-DFC6-4299-AE58-50B49901D304>.<1> finished with error - code: -1202
(libnetwork.dylib) [com.apple.network:] [1 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/test, tls] cancelled. Events:
(libnetwork.dylib) [com.apple.network:] 0.000s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] path:start
(libnetwork.dylib) [com.apple.network:] 0.000s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] path:satisfied
(libnetwork.dylib) [com.apple.network:] 0.010s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] flow:start_connect
(libnetwork.dylib) [com.apple.network:] 0.014s [1 D6B6A870-33A7-422C-B22F-782F5A933AAD 192.168.0.40:44321 socket-flow] flow:finish_transport
(libnetwork.dylib) [com.apple.network:] 0.056s [1] path:cancel
(CFNetwork) TIC TCP Conn Destroyed [1:0x60400016a800]
(qrmobileapp) Created Activity ID: 0x96909, Description: SecTrustReportTLSAnalytics
(CFNetwork) TIC Enabling TLS [2:0x60c00016a380]
(CFNetwork) TIC TCP Conn Start [2:0x60c00016a380]
(CFNetwork) Task <A96EE6D0-30B8-4950-AC4C-DC1F9BD02E8F>.<2> setting up Connection 2
(libnetwork.dylib) [com.apple.network:] [2 192.168.0.40:44321 stream, pid: 85993, url: https://192.168.0.40:44321/api/appuser/getToken, tls] start
(qrmobileapp) Created Activity ID: 0x9690a, Description: send control actions
(CFNetwork) TIC TLS Event [2:0x60c00016a380]: 1, Pending(0)
CONSOLE ERROR file:///app/tns_modules/#angular/core/bundles/core.umd.js:1682:24: ERROR {
"headers": {
"normalizedNames": {},
"lazyUpdate": null,
"headers": {}
},
"status": 0,
"statusText": "Unknown Error",
"url": null,
"ok": false,
"name": "HttpErrorResponse",
"message": "Http failure response for (unknown url): 0 Unknown Error",
"error": {
"line": 1298,
"column": 38,
"sourceURL": "file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js",
"originalStack": "ZoneAwareError#file:///app/tns_modules/nativescript-angular/zone-js/dist/zone-nativescript.js:1298:38\nfile:///app/tns_modules/tns-core-modules/http/http-request/http-request.js:87:37\nUIApplicationMain#[native code]\nstart#file:///app/tns_modules/tns-core-modules/application/application.js:272:26\nrun#file:///app/tns_modules/tns-core-modules/application/application.js:300:10\nbootstrapNativeScriptApp#file:///app/tns_modules/nativescript-angular/platform-common.js:160:26\nbootstrapApp#fil`
First of all, I know there are a ton of similar questions, but none that I've seen seems to address my setup (nor any solution I found works). So bear with me...
My server host name is an IP address, not a domain name
(i.e., URL looks like: https://XXX.YYY.ZZZ.WWW:9443/etc...).
My server has a real certificate (i.e., not self signed).
My app's plist entry NSAppTransportSecurity dictionary is empty (no exceptions whatsoever - factory settings ATS).
This is production code and I can not disable ATS (nor do I think I could, given that exceptions only work with explicit domain names, not IP addresses).
(Testing on iOS 9, deployment target is iOS 8.x)
I am getting this error when I try to connect:
CFNetwork SSLHandshake failed (-9806) NSURLSession/NSURLConnection
HTTP load failed (kCFStreamErrorDomainSSL, -9806)
Error: An SSL error has occurred and a secure connection to the server cannot be made.
(Device and Simulator)
I tried to command line tool nscurl described here. I get:
Default ATS Secure Connection: CFNetwork SSLHandshake failed (-9806)
Allowing Arbitrary Loads: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) ("The certificate for this server is invalid. You might be connecting to a server that is pretending to be “XXX.YYY.ZZZ.WWW” which could put your confidential information at risk.")
Configuring TLS exceptions for XXX.YYY.ZZZ.WWW: (TLS 1.2, 1.1 and 1.0) CFNetwork SSLHandshake failed (-9806)
Disabling Perfect Forward Secrecy: CFNetwork SSLHandshake failed (-9801)
Disabling Perfect Forward Secrecy and Allowing Insecure HTTP: CFNetwork SSLHandshake failed (-9801)
TLSv1.2 with PFS disabled: CFNetwork SSLHandshake failed (-9801)
TLSv1.1 with PFS disabled: CFNetwork SSLHandshake failed (-9801)
TLSv1.0 with PFS disabled: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)
TLSv1.2 with PFS disabled and insecure HTTP allowed: CFNetwork SSLHandshake failed (-9801)
...you get the drill.
I am having checked which TLS version the server supports (that is the biggest suspect, as far as I've researched), but perhaps there is something else I need to fix/check on the client side?
I think you need to inspect the cert on your server. You should be able to use the openssl client to investigate your certificate and get your server's ssl config:
openssl s_client -connect XXX.YYY.ZZZ.WWW:9443
You should get some details about the cert
SSL-Session:
Protocol : TLSv1
Cipher : AES256-SHA
Session-ID: //
Session-ID-ctx:
Master-Key: //
Key-Arg : None
Start Time: 1449693038
Timeout : 300 (sec)
Verify return code: 0 (ok)
Or, you can use a website like symantec to query the cert and see if you have met the requirements of TLS1.2, a strong enough key, and forward secrecy.
Also, you could try turning on CFNetwork Diagnostic Logging. Edit the Xcode scheme and add the CFNETWORK_DIAGNOSTICS environment variable. Set the logging level to 3 which is the most verbose:
The Xcode console shows the location of the log file:
CFNetwork diagnostics log file created at: /private/var/mobile/Containers/
Data/Application/A3421F00-451A-CD70-1B82-B163D1A3BB0F/Library/Logs/
CrashReporter/CFNetwork_com.sample.app_118.nwlrb.log
You could look into those logs to see if there is any more information as to why the network calls are failing.
I'm developing a SDK for iOS and i put some assert() in the code to help me catching the bugs. It's working great when using the simulator but if I build my App (Debug-iphoneos) on a device, unplug it from my mac and leave it for testing, the crash log I get from an assertion failure is impossible to understand.
real sample from a basic nil assertion failure:
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread: 0
Filtered syslog:
None found
Global Trace Buffer (reverse chronological seconds):
10.153264 CFNetwork 0x0000000021bb897d TCP Conn 0x14dbd8c0 complete. fd: 9, err: 0
10.154690 CFNetwork 0x0000000021bb9a7f TCP Conn 0x14dbd8c0 event 1. err: 0
10.288093 CFNetwork 0x0000000021bb9afd TCP Conn 0x14dbd8c0 started
10.293561 CFNetwork 0x0000000021bff26f Creating default cookie storage with default identifier
10.293562 CFNetwork 0x0000000021bff24b Faulting in CFHTTPCookieStorage singleton
10.293562 CFNetwork 0x0000000021c418f7 Faulting in NSHTTPCookieStorage singleton
10.514965 CFNetwork 0x0000000021bb897d TCP Conn 0x14d88140 complete. fd: 4, err: 0
10.514965 CFNetwork 0x0000000021bb9a7f TCP Conn 0x14d88140 event 1. err: 0
10.789507 CFNetwork 0x0000000021bb9afd TCP Conn 0x14d88140 started
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x00509e10 0x3af000 + 1420816
1 MyFramework 0x002ddfec 0x24f000 + 585708
Any chance I can get more information from the crash log ? I tried atos -arch armv7 -o MyApp.app/MyApp 0x24f000 without any success (returning 0x24f000)
Solved with this post Atos does not symbolicate system frameworks/libraries properly
here I had to extract my framework from the .app and do
xcrun atos -arch armv7 -o MyFramework.framework/MyFramework -l 0x24f000 0x002ddfec
(notice the reverse order of memory adresses)
PC can be very good to achieve the video upload and download, but there are two problems in the use of IOS devices:
1、In the IOS7.0 devices can not upload the video, the following is log:
[DEBUG] Did open connection on socket 17
[DEBUG] Did connect
[DEBUG] Did start background task
[DEBUG] Connection received 528 bytes on socket 17
[DEBUG] Connection received 234 bytes on socket 17
[DEBUG] Connection received 46 bytes on socket 17
[DEBUG] Connection on socket 17 preflighting request "POST /upload" with 808 bytes body
[DEBUG] Connection on socket 17 processing request "POST /upload" with 808 bytes body
2015-12-14 10:58:34.523 GCDWebServer[1701:403846] [UPLOAD] /var/mobile/Containers/Data/Application/5F45B407-9DA8-43D1-AADF-07CF22B1C4B2/Documents/IMG_9675.mp4
[DEBUG] Connection sent 175 bytes on socket 17
[DEBUG] Connection sent 2 bytes on socket 17
[DEBUG] Did close connection on socket 17
[VERBOSE] [my localhost:80] iPad2(7.0) client:50692 200 "POST /upload" (808 | 177)
[DEBUG] Did open connection on socket 17
2015-12-14 10:58:34.577 GCDWebServer[1701:403846] album’s name == GCDWebServer
[DEBUG] Connection received 400 bytes on socket 17
[DEBUG] Connection on socket 17 preflighting request "GET /list" with 400 bytes body
[DEBUG] Connection on socket 17 processing request "GET /list" with 400 bytes body
[DEBUG] Connection sent 177 bytes on socket 17
[DEBUG] Connection sent 213 bytes on socket 17
[DEBUG] Did close connection on socket 17
[VERBOSE] [my localhost:80] iPad2(7.0) client's IP:50693 200 "GET /list" (400 | 390)
[DEBUG] Did open connection on socket 17
[DEBUG] Connection received 453 bytes on socket 17
[DEBUG] Connection on socket 17 preflighting request "GET /download" with 453 bytes body
[DEBUG] Connection on socket 17 processing request "GET /download" with 453 bytes body
[DEBUG] Connection sent 182 bytes on socket 17
[DEBUG] Did close connection on socket 17
[VERBOSE] [my localhost:80] iPad2(7.0) client's IP:50694 304 "GET /download" (453 | 182)
[DEBUG] Did disconnect
[DEBUG] Did end background task
2、In the IPAD device can not download the video, the following is log:
[DEBUG] Did open connection on socket 17
[DEBUG] Did connect
[DEBUG] Did start background task
[DEBUG] Connection received 427 bytes on socket 17
[DEBUG] Connection on socket 17 preflighting request "GET /download" with 427 bytes body
[DEBUG] Connection on socket 17 processing request "GET /download" with 427 bytes body
[DEBUG] Connection sent 398 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[ERROR] Error while writing to socket 17: Broken pipe (32)
[DEBUG] Did close connection on socket 17
[VERBOSE] [my localhost:80] iPad2(7.0) client's IP:50690 200 "GET /download" (427 | 197006)
[DEBUG] Did open connection on socket 17
[DEBUG] Connection received 346 bytes on socket 17
[DEBUG] Connection on socket 17 preflighting request "GET /download" with 346 bytes body
[DEBUG] Connection on socket 17 processing request "GET /download" with 346 bytes body
[DEBUG] Connection sent 398 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[DEBUG] Connection sent 32768 bytes on socket 17
[ERROR] Error while writing to socket 17: Broken pipe (32)
[DEBUG] Did close connection on socket 17
[VERBOSE] [my localhost:80] iPad2(7.0) client's IP:50691 200 "GET /download" (346 | 131470)
[DEBUG] Did disconnect
[DEBUG] Did end background task
Do you know why? Thank you very much!
Sorry for my ignorance.
I am trying to play a MP4 video on a LG TV using the Connect SDK 1.4.1. We have a working implementation with Chromecast and Apple TV.
When first starting our app, we are able to successfully connect to the LG TV. When trying to play one of our own videos the first time, we receive no response from the Connect SDK, nor do we see the video play on the TV. In the console output, it appears that the TV disconnects from the app. The console output can be seen in the Console Output below.
However, we are able to successfully play the Sintel video provided in your demo. After playing that video, any future attempt to play a video from my app results in the Sintel video being played instead.
I used Charles to redirect the path to the Sintel video, to a video used in my app, and found that the video played fine. This appears to be a communication issue between the App and the TV causing this unintended behavior.
Am I doing something wrong that is specific to the LG platform? Is there any additional information I can provide to solve this problem?
Thank you!
Specs:
ConnectSDK 1.4.1 (installed using Cocoa Pods)
Platform: iOS 8.1.2 (12B440)
LG TV Model #: 47LA6200 (January 2014)
Stream Format: MP4; H.264#1280x720; AAC 44100 Hz Stereo
Console Output.
[DEBUG] Did open connection on socket 27
[DEBUG] Did connect
[DEBUG] Did start background task
[DEBUG] Did open connection on socket 29
[DEBUG] Connection received 909 bytes on socket 29
[DEBUG] Connection received 350 bytes on socket 27
[DEBUG] Connection on socket 29 preflighting request "NOTIFY /RenderingControl/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" with 909 bytes body
[DEBUG] Connection on socket 29 processing request "NOTIFY /RenderingControl/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" with 909 bytes body
[DEBUG] Connection received 2379 bytes on socket 27
[DEBUG] Connection on socket 27 preflighting request "NOTIFY /ConnectionManager/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" with 2729 bytes body
[DEBUG] Connection on socket 27 processing request "NOTIFY /ConnectionManager/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" with 2729 bytes body
[DEBUG] Did open connection on socket 32
[DEBUG] Connection sent 122 bytes on socket 29
[DEBUG] Did close connection on socket 29
[VERBOSE] [192.168.1.121:49291] 192.168.1.144:38356 200 "NOTIFY /RenderingControl/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" (909 | 122)
[DEBUG] Connection received 1724 bytes on socket 32
[DEBUG] Connection on socket 32 preflighting request "NOTIFY /AVTransport/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" with 1724 bytes body
[DEBUG] Connection on socket 32 processing request "NOTIFY /AVTransport/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" with 1724 bytes body
[DEBUG] Connection sent 122 bytes on socket 27
[DEBUG] Did close connection on socket 27
[VERBOSE] [192.168.1.121:49291] 192.168.1.144:38355 200 "NOTIFY /ConnectionManager/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" (2729 | 122)
[DEBUG] Connection sent 122 bytes on socket 32
[DEBUG] Did close connection on socket 32
[VERBOSE] [192.168.1.121:49291] 192.168.1.144:38357 200 "NOTIFY /AVTransport/45d7f4f5-ebfc-4d0b-f5bd-79e51d2b2006/event.xml" (1724 | 122)
2015-01-13 16:47:32.843 Connect-Demo[1853:1424495] TeamStreamConnectVideo downloaded manifest...
[DEBUG] Did disconnect
[DEBUG] Did end background task