I have multiple info.plist
files and would like to access them programatically. I read here how this could be done:
https://sarunw.com/posts/how-to-read-info-plist/
But when I try:
let infoPlistPath = Bundle.main.url(forResource: "Myplist-Info", withExtension: "plist")
print(infoPlistPath)
it returns nil.
I have tried adding the plist
to the respective target with the same result.
I have also tried adding the plist
to the setting copy bundle resource
. But it still returns nil.
How do I make this happen?