I added the Info.plist file to the Copy Bundle Resources list …
Don’t do that. The
Info.plist
file is integrated into your app via a completely different mechanism (the
Info.plist File build setting,
INFOPLIST_FILE
).
Could it be looking in the wrong directory and I have to use
pathForResource(_:_:inDirectory:)
?
That depends on how you added the file.
What I did to to create the resource was to select "New Data Set" from the menu that pops up when I click on the plus sign ( + ).
Ah, this is the first mention you’ve made of asset catalogs. It would be helpful if you could provide that sort of info up front.
Data sets in an asset catalog are accessed via the NSDataAsset class.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"