[GH-ISSUE #68] Custom file types with custom file extensions cannot do not work with the iOS file picker #59

Closed
opened 2026-03-03 15:30:09 +03:00 by kerem · 7 comments
Owner

Originally created by @Porygon-Axolotl on GitHub (Jun 3, 2024).
Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/68

Describe the bug

I am developing a game and it uses a custom file type to load levels. When i open the file ios picker in the game the .rsplev file is greyed out, unlike when its normally sideloaded where the file with the .rsplev file extension isnt greyed out and is able to be picked.

Instructions to reproduce

Open the iOS file picker and try choose a file that has a custom filetype

What version of LiveContainer are you using?

Version 2.0-release (main/2d7bbe4)

Other info

At first I thought it was an issue with my game but then i realized it only happened with livecontainer. I honestly have no idea if it’s fixable (i don’t know much about iOS development) since the way i got the file extension to work is by modifying my info.plist file. I modified the key UTExportedTypeDeclaration inside the info.plist so i don’t know if there is another way to allow other file types without modifying livecontainer’s info.plist. Sorry if its an impossible fix

Originally created by @Porygon-Axolotl on GitHub (Jun 3, 2024). Original GitHub issue: https://github.com/LiveContainer/LiveContainer/issues/68 ### Describe the bug I am developing a game and it uses a custom file type to load levels. When i open the file ios picker in the game the .rsplev file is greyed out, unlike when its normally sideloaded where the file with the .rsplev file extension isnt greyed out and is able to be picked. ### Instructions to reproduce Open the iOS file picker and try choose a file that has a custom filetype ### What version of LiveContainer are you using? Version 2.0-release (main/2d7bbe4) ### Other info At first I thought it was an issue with my game but then i realized it only happened with livecontainer. I honestly have no idea if it’s fixable (i don’t know much about iOS development) since the way i got the file extension to work is by modifying my info.plist file. I modified the key UTExportedTypeDeclaration inside the info.plist so i don’t know if there is another way to allow other file types without modifying livecontainer’s info.plist. Sorry if its an impossible fix
kerem 2026-03-03 15:30:09 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@khanhduytran0 commented on GitHub (Aug 8, 2024):

I think you should try [UTType typeWithFilenameExtension:@"rsplev" conformingToType:UTTypeData]

<!-- gh-comment-id:2276814355 --> @khanhduytran0 commented on GitHub (Aug 8, 2024): I think you should try `[UTType typeWithFilenameExtension:@"rsplev" conformingToType:UTTypeData]`
Author
Owner

@Vatvat123 commented on GitHub (Sep 6, 2024):

Pubg mobile not signing

<!-- gh-comment-id:2333955872 --> @Vatvat123 commented on GitHub (Sep 6, 2024): Pubg mobile not signing
Author
Owner

@Porygon-Axolotl commented on GitHub (Sep 21, 2024):

I don't know if im doing something wrong but i still can't select a file with my custom file type. (Version 2.1.2-release (main/345097c)) imagehttps://github.com/user-attachments/assets/39f82739-df27-432a-8144-c8974f3b8273

<!-- gh-comment-id:2365296041 --> @Porygon-Axolotl commented on GitHub (Sep 21, 2024): I don't know if im doing something wrong but i still can't select a file with my custom file type. (Version 2.1.2-release (main/345097c)) ![image](https://github.com/user-attachments/assets/9d078f07-5c7d-4b55-929a-590478a48515)https://github.com/user-attachments/assets/39f82739-df27-432a-8144-c8974f3b8273
Author
Owner

@hugeBlack commented on GitHub (Sep 23, 2024):

Can you provide an ipa and a rsplev so I can diagnose what's wrong?

<!-- gh-comment-id:2367326135 --> @hugeBlack commented on GitHub (Sep 23, 2024): Can you provide an ipa and a rsplev so I can diagnose what's wrong?
Author
Owner

@Porygon-Axolotl commented on GitHub (Sep 23, 2024):

https://drive.google.com/file/d/1Jh0I8MmkCEzNgR6aMmKVpvDgyvUIlb6d/view?usp=drivesdk

It does require an account to use though. Hope you dont mind

<!-- gh-comment-id:2369667229 --> @Porygon-Axolotl commented on GitHub (Sep 23, 2024): https://drive.google.com/file/d/1Jh0I8MmkCEzNgR6aMmKVpvDgyvUIlb6d/view?usp=drivesdk It does require an account to use though. Hope you dont mind
Author
Owner

@hugeBlack commented on GitHub (Sep 24, 2024):

OK, it turned out that Unity used a deprecated API -[UIDocumentPickerViewController initWithDocumentTypes:inMode:] which I forgot to hook. I will fix this later.

<!-- gh-comment-id:2369955809 --> @hugeBlack commented on GitHub (Sep 24, 2024): OK, it turned out that Unity used a deprecated API `-[UIDocumentPickerViewController initWithDocumentTypes:inMode:]` which I forgot to hook. I will fix this later.
Author
Owner

@hugeBlack commented on GitHub (Sep 24, 2024):

Fixed now. Try this build https://github.com/hugeBlack/LiveContainer/actions/runs/11007432755

<!-- gh-comment-id:2370188380 --> @hugeBlack commented on GitHub (Sep 24, 2024): Fixed now. Try this build https://github.com/hugeBlack/LiveContainer/actions/runs/11007432755
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LiveContainer#59
No description provided.