iOS Background Task in IOS 13 Not working - swift

Im trying to work on with iOS 13 background tasks to be executed and created the sample application as per apple says:
https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler
But some how im still getting error in console as:
Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.
And this seems like many are experiencing this issue:
https://forums.developer.apple.com/thread/121990
Thanks

The BGTasks worked fine with the new iOS 13.4 and i tried this on real device and it seemed working fine.
So the issue was it wasnt working on simulator but on device its fine.
I never tried this on other device, rather i just tried on device with iOS 13.4. Seems to be fine.

Related

iAds constatly didFailToRecieveWithError

I run these apps on the iOS simulator only: I created a iOS application that I have never released and has been working fine for the iPad and iPhone simulator for the past year. Two days ago the app was working fine. I didnt' change anything or even login to my Mac and tonight I go to test the app before adding additional features and the iAds stop appearing. I check over my code to verify nothing has changed. When I run the app I keep getting constant 'didFailToRecieveWithError' over and over in the log window. I know I used to get these intermittently in the past between test ads, but now that's all that I get. Has anyone else experienced this? Do the iAd test servers go down once in a while?

Issues when testing on iPhone 5 on 4inch retina display simulator

So i released an app and all seemed fine. All of a sudden I got reviews in and emails that he app did not function and was doing weird things. Turns out the users were using iPhone 4s and 5. I have an iphone 4 running 6.1.3 and everything worked great. As i did some testing in xcode i found using iPhone sim with 3.5 inch screen everything worked perfect. If I switched to the 4 inch retina display it went crazy... button functions from other screens mixed in with current view. Long story short... I went in and fixed it and ran tests using the simulator. all my tools are updated and everything looks good. I released update to iTunes so everyone who had issues could now use the app.
But... a couple people i have been speaking with say the issues are still there. I do not understand how since I test in the simulator. Does anyone know how to properly test an app on the any version iOS and if it works on the sim it will work on an actual device. I am completely baffled by this issue.
I am using xcode 4.6.2 with iOS SDK 6.1 and my app deployment target is 4.3

iOS App crashing on production but not on debugging

I have been working on an iOS app. It was working fine until a couple of days ago, it started behaving strangely. The app crashes on production but it creates no crash logs. However, when same scenario is tested out in QA, it works fine. Now I have been trying to find out the reason but without any crash logs or crash in debugging mode, it has become very difficult for me.
Any suggestion, how to tackle it?
Thanks!
P.S. I am using XCode 4.6.1 and app is for iOS 6.0.
Answering my own question, I have found out after detailed research on the internet that some crashes kill the application before logging the Crash Log. My error was that of a delegate property for my services. After long hard tries, I got to the root cause of the problem, since I had converted the code to ARC so the delegate property was unsafe_unreatained, which released the delegate while it was still in use by the service, so I just had to convert it into strong and set it to nil in dealloc. Further description can be seen here: https://stackoverflow.com/a/9065105/1351911.
I had the same problem, building ipa's in Xcode 4.6.1 with sdk version 6.0 or above crashes the app like anything. Try archiving it in Xcode 4.4 or 4.3 may be a lower version and try.

Xcode - No provisioned iOS device is connected

I was using Xcode this afternoon and debugging an app on my device just fine. When I got home from the office and plugged in my phone to keep working, XCode would no longer let me debug on my device. The error I received was:
Error Starting Executable. No provisioned iOS device is connected.
So I hopped over to the Organizer, and here is what I saw:
So what gives? Anyone seen this before?
Thanks!
Well I don't know why this helped, but if anyone else sees this thread the thing that "fixed" the problem was to remove the SDK from my machine, restart XCode, then plug in the device. XCode then popped up an alert view asking to collect the debugging symbols from the device, which I allowed it to do. From then on it worked like a charm.
You may be testing your application on simulator and accidentally, device is selected instead of simulator. It help me to sort out this problem.
Make sure you have upgraded to the latest Xcode 3.2.5 with iOSK 4.2.1 SDK.
I had another way of fixing this problem.
I tried upgrading my device to iOS5 Beta 7 ...to test my app in iOS5
Once i finished testing it, wanted to get back to iOS4.3.5 on my device...
it took a little pain but managed to restore it back to the original
but then the debugging didn't work and got the same error as mentioned here.
So i wanted to see what i see in that snapshot that you have : and there it was...
A button called "enable for debugging" if i'm not mistaken.
Worked like a charm.... :)

system("killall SpringBoard"); not working in ios4.2.1?

So I had created an app that used the command system("killall SpringBoard"); and it has worked just fine on 4.0 - 4.1. I just recently began testing the app on 4.2 and it still works when I run it in simulator, but when I run it on the device nothing happens. Does anyone know what the cause of this is? The device is a iPhone 3GS.
If you want to restart SpringBoard cleanly, please use
notify_post("com.apple.language.changed");