Code:
#include <CoreFoundation/CoreFoundation.h>
Above include line solved the compilation error.
However,
CFBundleCopyResourceURL returns null. In my code, I need to know the path the file projfile.bin located so that I can pass it to open file routine.
Code:
CFBundleRef mb = CFBundleGetMainBundle();
CFURLRef ur = CFBundleCopyResourceURL(mb, CFSTR("projfile"), CFSTR("bin"), NULL);
I dragged and dropped the Fldr1 to my xcode project. this is my xcode project tree:
Code:
-proj1
|->
-Proj1
|->
-Fldr1
|->
-projfile.bin
-main.c