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

Can't see any files on iOS 15.2 #9

Open
rev111 opened this issue Jan 22, 2022 · 4 comments
Open

Can't see any files on iOS 15.2 #9

rev111 opened this issue Jan 22, 2022 · 4 comments

Comments

@rev111
Copy link

rev111 commented Jan 22, 2022

Greetings!

I downloaded the master tree from github, built and installed with XCode 13.2.1 on an iPhone with iOS 15.2.
I see the "Programs/Disks" selection, select "Disks", tap on "Upload", browse to the URL which is displayed on the device.
I uploaded several files through the web interface - some are named .d64, others are named .sid.
When closing+killing the app and restarting, the files are still there, so I think they have been transferred to the device.
However, I can't see any. The screen remains empty.

  1. Which file format is expected, are .d64 files the right format?
  2. Is this a bug with iOS 15 (other issues seem to relate to older iOS versions)?

Thanks, l

@rev111
Copy link
Author

rev111 commented Jan 23, 2022

Upon further inspection the problem seems to be that the database can't be opened because this line returns nil:

guard let bundleDBFile = Bundle.main.path(forResource: "games", ofType: "db") else { return nil }

Apparently the app bundle is searched for a (sqlite?) file "games.db" and fails. I can't find this file in the project, is it there?

@markiehill
Copy link

I fixed this by adding the games.db folder from the /resources/roms folder into the corresponding resources folder in Xcode, I can confirm it runs fine on IOS 16 with this small change.

@rev111
Copy link
Author

rev111 commented May 25, 2023

markiehill, I see the file games.db in C64Emulator/Resources, not in /resources/roms. I don't understand what you mean with "corresponding resources folder in Xcode", could you give a few more details?
On a sidenote, to make sure I have everything right I made a fresh clone from the repo. The install instructions say I should run "pod install", but there is no Podfile found. Do I have to run cocoapods or otherwise I will miss crucial files?

@markiehill
Copy link

markiehill commented May 30, 2023

I updated this a while ago - from memory I just pulled down the code and then moved the games.db into the right place and everything worked perfectly for me.

Screenshot 2023-05-30 at 08 35 51

I have enclosed a screenshot of where the games.db file should be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants