Comments (7)
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.
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.
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.
from ofxpd.
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.
from ofxpd.
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)
- [question] there's any way to avoid libPd compile build for Windows / VS 2017? HOT 26
- Using ProjectGenerator to create an iOS ofxPd project? HOT 2
- iOS can not find my patch HOT 2
- Use keyboard input on iOS? HOT 1
- error compiling pdMultiExample with PDINSTANCE and PDTHREADS HOT 9
- pdMultiExample crashes with PDINSTANCE and PDTHREADS HOT 13
- ofxPd stops recieving messages (bangs) when ofxMidi is currently running on ios HOT 1
- background audio on android and back button issue HOT 10
- update libpd header link HOT 1
- pd.closePatch() not working with Emscripten HOT 7
- Is it possible to load local audio files (with the file browser) into ofxPd? HOT 1
- [metro] outputs a single bang and then stops HOT 8
- cannot convert argument 1 from 'void *' to 't_pd *' HOT 10
- audioReceived & audioRequested deprecated HOT 2
- Emscripten compatible version HOT 1
- Building in Visual Studio with custom externals HOT 2
- linking error while building on win11/mingw64 HOT 6
- Cannot run ofxPd’s Example HOT 2
- Unable to detect endianness HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxpd.