How do you compile a resource into a binary file?

How do you compile a resource into binary in Xcode? This method is not displayed inside the application package as a file and is not subject to user manipulation (whether it is friendly or bad).

Is it possible?

I am particularly interested in this in terms of iPhone apps.

Any help is appreciated!

+3
source share
1 answer

You can process the resource into a header file with a byte array if it is not too large:

char TOP_SECRET[] = {
    84, 111, 112, 32, 115, 101,
};

, , . XOR .

+1

Source: https://habr.com/ru/post/1740510/


All Articles