0

I have a problem. I have been made a file with custom extension like .xyz in resource folder. But when I running the application, the file wasn't in resource folder. How can I add the file with custom extension? Anybody can help me?

Thanks before. Regards.

3 Answers 3

4

You need to make sure that this .xyz file is in the Copy Resources phase of your application's target.

Sign up to request clarification or add additional context in comments.

Comments

1

simple drag n drop to your resources folder and check copy items to resources folder option. That's it.

1 Comment

If we only do that, the file would not appear in application. I add new file in XCode. I choose empty file and give extension .xyz. That appears in XCode but no in application. Thanks for your response. :)
0

what do you mean with "the file wasn't in resource folder" ? do you want to move it into Documents directory ? if yes, you just can move your file from resource into Documents, i was do something like that with this code :

[[NSFileManager defaultManager] moveItemAtPath:resourcePath toPath:documentsPath error:NULL];

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.