custom apple tvOS app crashes after a few days - xcode

I made a custom apple TV app in Xcode and installed it on an apple TV. It works fine for a few days, then it crashes and becomes unavailable.
Is this because something is wrong with the code or expected behavior for apps manually installed on apple TV?
Any help is appreciated!

Have you tried using Apple's Leaks instrument to check for some sort of memory leak? If your app is crashing after a few days, this would suggest a possible memory leak so would be worth looking into.
https://developer.apple.com/library/content/documentation/Performance/Conceptual/ManagingMemory/Articles/FindingLeaks.html#//apple_ref/doc/uid/20001883-SW2
The Leaks instrument provides leak-detection capabilities identical to those in the leaks command-line tool. The Leaks instrument records all allocation events that occur in your application and then periodically searches the application’s writable memory, registers, and stack for references to any active memory blocks. If it does not find a reference to a block in one of these places, it deems the block a “leak” and displays the relevant information in the Detail pane.

The culprit of the crash is the lack of appropriate licensing.
Once I registered as an Apple Developer and paid the subscription fee, the app stopped crashing after a few days.

Related

Xcode Organizer Metrics aren't showing three most recent releases

I'm trying to find the Metrics Launch Time of my app by using Xcode Organizer but it does not show the result of the 3 most recent versions. Only for older versions.
I'm using Xcode 12.2 (12B45b), and even after upgrade to 12.3 (12C33), still doesn't work!
Does anyone run into the same problem and know how to fix it?
TLDR: Versions with limited usage will not appear in the Xcode Organizer Metrics.
We were curious why this is happening to our app aswell. We had 52 releases in 2021 and the Battery Usage section from Xcode Organiser Metrics menu shows us only 5 of them, while Scrolling section shows only 4 at the moment of writing this answer.
After doing some research and watching this WWDC20 session on Diagnose performance issues with the Xcode Organizer I have learned that apple is using some usage threshold for each version of the app to determine wether it should show up in the metrics or not. According to the linked session, in Xcode 12 they have lowered the required usage threshold by a factor of five.
Another thing is that now you will see a limited usage icon attached to versions which have passed the new threshold but their usage is still low enough so you will need to be aware of the margin or error while analysing those metrics.
So even though the threshold have been lowered, it's still not really helpful If you update the app often like we do. Which is sad since we are not really able to provide improvements to these metrics since we do not really know with what we are dealing with. Let's hope future versions of Xcode will at more information about how much usage is enough, because apparently tens of thousands of users on a version are literally not enough for it to be included on a list.
Resources:
Diagnose performance issues with the Xcode Organizer

How can i maintain Agora.io video call memory usage

Platform Unity 2019.4.8.f1
Apk tested on Android devices
Api lvl 21+
Test failure on some devices that have 2gb memory.
Our team has implemented a unity project and we use agora for video call. Our streaming configs are very low, 15fps, 65bit. But when we test the app on phones that have 2gb memory, some times later(about 5-10min) app crashes. We try to find out the problem and according to diagnostic tools agora uses lots of memory, We cannot find any limitation from agora sdk and cannot reduce memory usage, is there any idea about this. Thanks.
First, did you make sure if this is an Application level memory management issue? e.g., you created instance of renderers but did not release in time?
If it is SDK level issue, you probably won't find a solution from the public. I suggest you to create a ticket to ask the question directly to the Agora support team. Please provide your quantified analysis and the crash log when you submit that.

Security settings dialog does not list my app

My app requires to access the calendar. Up to Catalina that worked with the sandbox with no big issues. Now under Catalina the app does not show in the security settings:
I have set the Hardened Runtime with calendar access (also tried Sandbox with no different effects):
Since I believe this is related to that signing stuff, here's my setting:
Strangely enough I have another app which had been developed in parallel also using the calendar. And that app is listed in the security setting.
So likely I'm missing something. But what?
Try: reboot the Mac, try your app again. Sometimes, weird problems resolve by themselves after a reboot.
Edited: This is not meant to be a bad joke, or to insult the skill and capability of the person asking the question, but when I read:
Strangely enough I have another app which had been developed in parallel also using the calendar. And that app is listed in the security setting.
I assume the other app has a very similar or identical set-up and signing config, etc., otherwise the person asking the question would have tried changing something to make them similar or identical.
So it sounds like the kind of situation that doesn't make sense. I have a few (painful) memories when I rebooted my Mac and situations like that went away. I suspect that memory corruption, bugs in the OS, etc., can cause small failures as time goes on, and a fresh start can sometimes help.

Submitting iOS app that requires external hardware

I want to submit an app to the store that requires external hard ware. You cannot do much in the app without the hardware, so I was wondering what is the best way forward with submitting app to the store. I have read some reports that say Apple require us to ship them the hardware. Have also read reports where people say a video the app has sufficed.
I was reading some answers in this thread here
iOS app review process: app requires external hardware (connecting over WiFi)
I was going to create a video of the app and the hardware working. In iTunes connect, under App Review Information, can add an attachment, so was going to put it under there.
Do you think this would be enough for Apple? Or do you think we will have to actually send them the hardware?
Looking for advice from people who have experience in submitting apps that require external hardware and what your experience was. Did the review process take much longer? If so, how long?
Thanks in advance
I can't respond about the hardware aspect of things however I did create an App that was only allowed to be used within a specific country. Apple requested a video, provided and approved. Occasionally they would ask for another one for updates but not always.
Doing a screen capture isn't enough, has to be a video of you using the App. The review process took a bit longer than usual, longest wait period was the queue of about a week, once that was done each back and forth took an additional day, so at the end of it took about another 3 days for approval. I put it as a private video on youtube and submitted a link, then I could also track when they watched it.

New Tango device OTA not upgrading

New device unboxed a couple of days ago. Cannot use OTA to upgrade, says current software is up to date even though it is not. Without a current kernel I cannot download tango core, etc. So the device is basically non-functional (other than a plain tablet :-)) out of the box.
Same problem as this question:
Cannot update Tango Core - "Package file was not signed correctly"
Factory resets did not fix the problem. Unlike the previous question, waiting 48 hours provided no resolution. Several users on the Google+ developer group are having similar issues with this batch of devices, so this seems to be a common problem
Thanks!
We had an error in our OTA server configuration that we fixed this morning. This might take some time to propagate, but you should start seeing updates soon. Sorry for the inconvenience!

Resources