How to add Plist and images to Xcode project programmatically and use the values at the run time?

I have an external Plist file and some images. If I have copied manually using an Xcode, I can read the values inside my Application. It will be available in the Bundle.

but I cannot do it manually every time, so I am looking forward to finding any ways to add the files /copy the files to the bundle, so I can able to read the Values inside the application.

if anybody knows about this, please share with me the steps to overcome this problem.

Answered by DTS Engineer in 730872022

What I usually do in such situations is to put the data in a directory and then add it to Xcode as a folder reference rather than a group. You can then modify the contents of the directory as you see fit and Xcode will embed the whole thing into your final app.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

What I usually do in such situations is to put the data in a directory and then add it to Xcode as a folder reference rather than a group. You can then modify the contents of the directory as you see fit and Xcode will embed the whole thing into your final app.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to add Plist and images to Xcode project programmatically and use the values at the run time?
 
 
Q