I'm trying to load some .applescript files in my project.
Copied them into the "Supporting Files" directory like this:
and tried to access them:
NSBundle *bundle = [NSBundle mainBundle]; NSLog(@"Resource path for test.applescript: %@", [bundle pathForResource:@"test" ofType:@"applescript"]);
pathForResource always returns null.
Both files are correctly imported in xcode. The target membership is my app. Solutions from similar questions didn't really help
What am i doing wrong?
In the Xcode target "Build Phases" add the file under "Copy Bundle Resources"".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With