Giter Club home page Giter Club logo

Comments (7)

danomatika avatar danomatika commented on July 29, 2024

I haven't built anything with the iOS 15 SDK yet. It may be a permissions issue as you say, but more likely you need to add some sort of key and string to the Info.plist like with camera and microphone permissions.

from ofxpd.

Miles-Tone avatar Miles-Tone commented on July 29, 2024

yeah that's where I've been fishing around, haven't found anything yet though. this might be an issue that has come up in a previous SDK, as I haven't used writesf~ on iOS in a few years

from ofxpd.

Miles-Tone avatar Miles-Tone commented on July 29, 2024

ok, Solved!
needed to create the directories that it would sit in, for some reason you can't create into the app's root directory but can inside a folder, so I did this before going ahead and saving:
void ofApp::createDirectory(string _directory){ NSString *directory =ofxiOSStringToNSString(_directory); BOOL isDir; NSFileManager *fileManager= [NSFileManager defaultManager]; if(![fileManager fileExistsAtPath:directory isDirectory:&isDir]) if(![fileManager createDirectoryAtPath:directory withIntermediateDirectories:YES attributes:nil error:NULL]) NSLog(@"Error: Create folder failed %@", directory); }

from ofxpd.

danomatika avatar danomatika commented on July 29, 2024

from ofxpd.

Miles-Tone avatar Miles-Tone commented on July 29, 2024

Yeah the weird thing is that I couldn’t write from writesf into documents/ first I had to use obj-c to create a directory within the documents folder, writesf could then write into that folder fine - documents/sounds/sound.wav

from ofxpd.

danomatika avatar danomatika commented on July 29, 2024

from ofxpd.

Miles-Tone avatar Miles-Tone commented on July 29, 2024

Yeah I wonder if it’s an issue just for writesf, it might be that writesf doesn’t have the ability to create into the documents directory without the documents directory already being populated by something else. It might be that it “doesn’t exist” as a directory until it has something in it.
When looking at it within the Files app, only apps that have put something inside the documents folder of their app appear over there. I wonder if there is something like that happening

from ofxpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.