更新时间:2023-11-22 17:53:22
请确保将此文件添加到目标: / p>
还要检查文件是否位于目标->构建阶段->复制捆绑资源
I have added an empty file with extension .js
in resource path but that is not added to application's bundle.
I am sure that I have added to application target, but sometimes it includes in bundle and sometimes it doesn't include in bundle.
I am fetching the file's content by following code:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"webscript" ofType:@"js"];
Make sure you add this file to the target:
Also check if file is in Target -> Build Phases -> Copy Bundle Resources