We’re using static libraries in an iOS app.
Some of those static libraries require bundle resources.
I don’t want to distribute those bundle resources as stand-alone files – I want them to be packaged with the static libraries they belong to.
So, I’m looking for a utility/script which can be integrated into the Xcode build process which gets pointed at a folder and automatically updates an auto-generated Objective-C class which allows me to retrieve the contents as a byte array (or whatever) of these resources – which will be built into the static library.
Does anyone already have this? I can’t find anything. Obviously I can make it myself if I need to.
I don’t know any ready to use utility that works with directories. But for single file it is trivial enough:
It will produce file with
my_dataarray containing your data. I think it would be easy to extend it to handle directories.