Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom file types with custom file extensions cannot do not work with the iOS file picker #68

Closed
Porygon-Axolotl opened this issue Jun 3, 2024 · 7 comments · Fixed by #168
Labels
bug Something isn't working

Comments

@Porygon-Axolotl
Copy link

Porygon-Axolotl commented Jun 3, 2024

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

@Porygon-Axolotl Porygon-Axolotl added the bug Something isn't working label Jun 3, 2024
@khanhduytran0
Copy link
Owner

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

@Vatvat123
Copy link

Pubg mobile not signing

@Porygon-Axolotl
Copy link
Author

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

@hugeBlack
Copy link
Collaborator

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

@Porygon-Axolotl
Copy link
Author

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

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

@hugeBlack
Copy link
Collaborator

hugeBlack commented 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.

@hugeBlack
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants