I added an empty file to the application resources, but it was not found in the assembly, how would I programmatically check and create a file if it does not already exist?
First of all, you can only write to the application document directory.
- (BOOL)createFileAtPath:(NSString *)path contents:(NSData *)contents attributes:(NSDictionary *)attributes
NSFileManager doc here
You can do this as a custom build step (this is actually a simple shell script). For example, just addtouch yourfilename
touch yourfilename
Source: https://habr.com/ru/post/1784919/More articles:IsDebugEnabled против отладки (Action) - lambdaNSOperationQueue and concurrent operation - iosУжасная производительность с использованием ListViews с вложенными объектами в WPF - performancejava policy - javaSet timeout manually for DataInputStream - javaShould "operator! =" Always be implemented via "operator ==" in C ++? - c ++How to convert RichText (RTF) document with images in HTML in Delphi? - htmlACCESS / SQL: how to insert INTO / UPDATE at the same time? - sqlGoogle Chrome extension internationalization, switch localization - google-chrome-extensionIn android, how to programmatically list applications using a data connection? - javaAll Articles