Hey guys,
I have problem, when I am launching my application from xcode, it works fine and returns right working directory. But if I launch my app by clicking on .app file, it returns wrong working directory, so I got no files loaded.
Here's code, it was working right in windows:
I am using Obj-C/C in one application. Debug path is like '/Users/nekocode/Library/Developer/Xcode/DerivedData/test-emfzvokvsxztayagktgyeonnvtuy/Build/Products/Debug' ( less than 512 )
Thanks.
I have problem, when I am launching my application from xcode, it works fine and returns right working directory. But if I launch my app by clicking on .app file, it returns wrong working directory, so I got no files loaded.
Here's code, it was working right in windows:
Code:
char *Sys_Cwd( void )
{
static char cwd[1024];
getcwd( cwd, sizeof( cwd ) - 1 );
cwd[1024-1] = 0;
return cwd;
}
I am using Obj-C/C in one application. Debug path is like '/Users/nekocode/Library/Developer/Xcode/DerivedData/test-emfzvokvsxztayagktgyeonnvtuy/Build/Products/Debug' ( less than 512 )
Thanks.