Is it possible to create in app's home dir (Documents or Library) dir/file using C++ code? I tried
You can get the home directory using the Core Foundation library's CFCopyHomeDirectoryURL() function. (This is a C function, no Objective-C required.) Using the CFURL accessors, you can pull the path from that and use it with standard C++ or C/POSIX file I/O functions. Or you can use Core Foundation for I/O directly.
You can't used
fork/exec* in iOS due to sandboxing. No shell scripts either.