Hi,
You are right.
I just updated my device to iOS 14.2 two days ago and I was able to replicate the issue (it seems that this issue doesn't exist for < iOS 13.5 users, this is why I could not replicate it before
).
Unfortunately I am currently the only one in the team able to test Kodi on jailbroken devices. And my only iOS devices is my main iPhone 7 phone...
It seems that the "hack" that allow an app on a JB device to write files outside the container is currently broken on iOS > 13.5.
This issue only appears on app using dylib from the Framework folder (like Kodi).
I don't know yet if this issue come from checkra1n or ldid or simply if Apple was able to "fix" this thing...
I recently opened an issue here to obtain help
https://github.com/checkra1n/BugTracker/issues/1826
The complete story is that the
com.apple.private.security.no-container
entitlement allow us to write the kodi data folder outside the container path doesn't not work anymore for us.
By using this entitlement on iOS < 13.5 everything works great.
But since iOS 13.5, if we use this entitlement during the fake sign process of Kodi, Kodi just show a black screen on start...
Of course you can fix this black screen by calling again ldid on Kodi binary without the entitlement. But in the other hand you loose the ability to write outside the container folder (this is the issue you have, and also the issue I have now I'm on iOS 14.2 ..).
You can still use Filza to Copy/Paste/Backup files and folder in the container path, but keep in mind that if you remove Kodi, iOS will remove the container folder...
We are currently thinking about a possible "fix" of this issue, the most annoying issue is this black screen bug.
One possible fix would be to completely remove this entitlement from our build/package chain, so that the black screen bug will disappear. Also we can, in the future, put the Kodi data directory in the container Documents folder for all user (JB and no-JB), this way you can access your user data, add-on, log etc directly from the native Files app of your phone and also from the Finder of your Mac when you plug your iPhone.
What do you think?
That being said, I can answer your question ;-)
Quote:- Fix crash on start for iOS 14 users. (THIS DID NOT WORK. HAD TO ISSUE ldid -S /Applications/Kodi.app/Kodi COMMAND TO FIX BLACK SCREEN ON STARTUP)
When I wrote this line, I was thinking that the latest version of ldid fixed the issue, but had not any device to verify. Now, I know that is wrong :-(
Quote:- Fix issues around directory navigation and incorrectly-set start directories (NOT SURE IF THIS IS THE USERDATA FIX, BUT STILL ONLY LOOKS AT CONTAINER DIRECTORY INSTEAD OF DEFAULT DIRECTORY).
This changelog line doesn't come from, I don't know what this issue fix but it's not related to the data kodi folder location on iOS.
I hope my answer contains enough details so that everybody can understand the reason of this bug.
Unfortunately we didn't notice this issue earlier because of the lack of iOS 14 jailbroken users and tester.
I will try to work on this problem as soon as possible and I will also try to keep this thread updated about the news.
If you have any issue using Kodi in this "degraded" mode, feel free to report your feeling or idea here ;-)
Edit: updated this thread
https://forum.kodi.tv/showthread.php?tid...pid2986409