RTCReporting & pancake.apple.com errors - ios

Yesterday I updated Xcode to Version 5.1 (5B130a); the simulator's version now reads Version 7.1 (463.9.41).
Today I started getting these weird errors when beginning playback using AVPlayer. I have never seen any such errors in the past, can't find any info about them, and have no idea what they mean. They are not fatal and I haven't noticed any ill effects from them. But…
What is RTCReporting and how did it get into my project?
What does pancake.apple.com have to do with anything?
Etc. Thanks.
2014-03-21 16:16:34.129 0.1[3330:5403] RTCReporting: resolve from http://pancake.apple.com/bags/hls?version=4.12
2014-03-21 16:17:17.201 0.1[3330:5403] RTCReporting(getSvrConfig): error resolving with lookup server http://pancake.apple.com/bags/hls?version=4.12
2014-03-21 16:17:17.201 0.1[3330:5403] RTCReporting(getSvrConfig): sendSynchronousRequest error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x10f110d60 {NSUnderlyingError=0x11230ed80 "The request timed out.", NSErrorFailingURLStringKey=http://pancake.apple.com/bags/hls?version=4.12, NSErrorFailingURLKey=http://pancake.apple.com/bags/hls?version=4.12, NSLocalizedDescription=The request timed out.}
2014-03-21 16:17:17.202 0.1[3330:5403] RTCReporting: can't get storebag from the server
UPDATE: I had not previously noticed any harm from this, but now my app is hanging (in simulator) for about 5 seconds while I'm just getting an item ready for playback (before I've pressed play). Here's what the debug navigator shows if I press pause during the hang:
When the app unfreezes after 5 seconds, just the following is logged:
RTCReporting: resolve from http://pancake.apple.com/bags/hls?version=4.12
A note on "answers":
I'm looking for non-obvious explanation related to the questions I posed.

This seems to be a problem with trying to play videos on the simulator. I've had this problem for months now, and just ran into it again today when I was trying to play video on my simulator.
The solution, while not great, is to use an actual device instead of the simulator for testing video playing.

I always encounter this issue if I've got an Exception Breakpoint enabled when I play a video. If I disable it then it works fine. I've submitted a bug report to Apple also.

This seems to be a problem with trying to play videos on the simulator.
I solved by quiting other audio or video playing from my system.

You need use:
[player play];
after you sound play in the real device and in simulator.

Related

iOS 11, Xcode 9 Error: NSURLConnection finished with error - code -1009

I am getting Error: NSURLConnection finished with error - code -1009
in iOS 11, Xcode 9 when i am going to background and wifi off.. its getting continuously up to wifi on and any one have a solution.
Maybe it's one of those crazy iOS 11 bugs, because I got the exact same problem after upgrading to 11.2. The reason was that the cellular data for the app had been set to false on the device for some reason. To fix it, just goto the settings app, and cellular. Find your app in the list and enable it.
Please check the permission about you app, when it is only wifi, the issue will be caused in the 4G networking.

iOS - AudioUnitInitialize returns error code 561017449

I have an app in the App Store which uses AudioUnit for recording audio.
About once a week or so I am seeing that for some users in the wild the call to AudioUnitInitialize fails with the error code 561017449 which is also 0x21707269 or "irp!".
What does this error code mean? I've been unable to find it documented. Also:
~$ macerror 561017449
Unknown error (561017449) at /usr/bin/macerror5.16 line 40, <DATA> line 1.
There have been few instances of this issue, but so far there appears to be no pattern of commonality as far as device and OS version goes.
I'm not including code as I don't think that will be helpful just yet. The code is working on variety of devices already. At this time I'm most interested in learning details about this specific error.
Thanks!
This is defined in AVAudioSession.h:
AVAudioSessionErrorInsufficientPriority = '!pri', /* 0x21707269, 561017449 */
and is described as "The app was not allowed to set the audio category because another app (Phone, etc.) is controlling it."
After wasting a lot of time I found that this issue is occurring in my device(iPad) just after debugging my current code in it without uninstalling the existing live app.
The record and play permission was creating the issue. So uninstalling then installing a fresh build magically does the job for me.

AFNetworking 1.3.1 often goes to failure Block in iOS 8

I'm using AFNetworking to upload some content to server using AFHTTPRequestOperation. It is working good in iOS 7 but in case of iOS 8 mostly this call goes to failure.
I'm getting this error:
Code=-999 "The operation couldn’t be completed. (NSURLErrorDomain error -999.), NSErrorFailingURLKey.
Can you please help me to resolve this issue?
NSURLErrorDomain error -999 is NSURLErrorCancelled
You can review the error codes here
You might get this error due to a request timing out, or resubmitting the same request more than once. Without further code there isn't much to expand on, but have you ensured that you haven't lost your wifi settings since upgrading to iOS 8?
BTW you can use NSErrorFailingURLKey to find the failing URL - try putting it straight into Safari and see what happens
Your issue is being discussed here :
https://github.com/AFNetworking/AFNetworking/issues/2314
it seems to be related to keepalive implementation in iOS8, no solution available on client side for now, if you can configure the http server, disabling http keepalive should solve your issue ...

iOS7 UIWebView wont load page, but it loads on iOS6

I have an app with multiple webViews, on iOS6 it loads perfectly (sometimes I have to manually refresh the webviews content, and it works fine), but on iOS7 (the same code, the same sdk-ios7sdk) the webViews loads the first time, then if i hit refresh i get -999 error code, if i navigate to a page, then refresh the webviews data, then go back to view the webview, it works...
Here's the error message:
Error Domain=NSURLErrorDomain Code=-999 "The operation couldn’t be completed.
(NSURLErrorDomain error -999.)" UserInfo=0x9ba3220
{NSErrorFailingURLKey=file:///Users/jakaba/Library/Application%20Support/
iPhone%20Simulator/7.0/Applications/.../myapp.app/page.html,
NSErrorFailingURLStringKey=file:///Users/jakaba/Library/Application%20Support/
iPhone%20Simulator/7.0/Applications/.../myapp.app/page.html}
Any idea?
Thank you in advance!
I would look at this question:
How do I fix NSURLErrorDomain error -999 in iPhone 3.0 OS
The error code you're seeing is caused by two simultaneous requests on the UIWebView. This can be caused by a couple of things. Is your HTML doing any redirects? How are you loading the content into the UIWebView?
Anyway, take a look at the question I've linked to and see if it helps you. As to why you're seeing this on iOS 7 and not 6 - WebKit is improved in 7, and you may be encountering a race condition you didn't before due to speed.

Chromecast ios api.. Entity not found

Anyone encountered this already?. I downloaded the sample code for IOS from github. I replaced the app id with my own, that i got after whitelisting my device. I ran the app and selected the device and media to cast. Soon after I hit the cast button, I am getting the following error....
Failed to start application (com.google.GCKFramework.GCKApplicationSessionError); caused by: entity not found (com.google.GCKFramework.GCKNetworkRequestError).
Found solution for this one. Once I enabled the Chromecast to send it's serial number to Google, the error went away (for future reference). It can be done in settings.
Source: https://github.com/googlecast/cast-ios-demo-player/issues/5

Resources