louisdh / openterm

OpenTerm, a sandboxed command line interface for iOS
Other
1.63k stars 249 forks source link

Missing iCloud Drive folder #30

Open edoardovicoli opened 6 years ago

edoardovicoli commented 6 years ago

cd ~ and then cd Documents take me to local OpenTerm folder, not iCloud Drive folder. Can't find a way to save files on iCloud Drive. Already check settings and I'm ok with "Save on iCloud Drive".

holzschu commented 6 years ago

There are several issues here.

louisdh commented 6 years ago

Just pushed the following commits to address this issue: b6224bd98131d254d8c5effde466ba99a99c00d2 189ff7682407376a64c34405ddf1a0b2b7a585f4

edoardovicoli commented 6 years ago

Checked also with a friend and my theory seems to be confirmed: I don't think it's a problem of "creation". The folder exists but remains "hidden" until at least one file is filled with a file.

palmin commented 6 years ago

I am having problems with this and I'm not sure if I am being a silly user or if something is not working as it should.

It seems to make no difference to me what configuration I make in Document Storage for OpenTerm in settings. storage

I have tried force quitting and restarting and tried deleting and reinstalling the app. It will normally default to either "On My iPad" or "iCloud Drive" and there is no way for me to switch away from this default. The setting looks changed, but the directory used inside OpenTerm is the same.

Anybody experiencing similar things?

Does it maybe make a difference that the app is being installed from Xcode and not the App Store?

Could it be a problem that I need to use a different app bundle in order to sign the app for development?

Is this working for everybody else?

palmin commented 6 years ago

I would like to excuse myself and say that it is my kids that are playing Nyan Cat : Lost in Space. 😳

holzschu commented 6 years ago

I haven't found any reference on how to access this settings (Document Storage). It does not influence [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject] or the iCloud storage directory.

So I don't know how to get what the user selected. Maybe some of you do know.

palmin commented 6 years ago

It seems to be important for the document-based apps. This setting makes a difference in Swift Playgrounds and the iWork apps. I will try to read through transscripts of WWDC sessions about document based apps.

palmin commented 6 years ago

All the code examples I can find for document-based apps use some variant of

 NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, ...

just as OpenTerm.