file-management

How to add js file to my xcode project?

こ雲淡風輕ζ 提交于 2019-11-27 00:42:57
问题 I add some js and css files in my xcode left project tree. but when I build this project , I got the warning : no rule to process file '$(PROJECT_DIR)/js/builder.js' of type sourcecode.javascript for architecture i386 I think if I lost some setting with my project in xcode , but How to add some like js and css files? Thank you very much! 回答1: When you add the JavaScript file, Xcode detects that the file is a source code file, assumes you want to compile it and automatically adds it to the

How to get list of files with a specific extension in a given folder?

放肆的年华 提交于 2019-11-26 08:09:23
问题 I want to get the file names of all files that have a specific extension in a given folder (and recursively, its subfolders). That is, the file name (and extension), not the full file path. This is incredibly simple in languages like Python, but I\'m not familiar with the constructs for this in C++. How can it be done? 回答1: #define BOOST_FILESYSTEM_VERSION 3 #define BOOST_FILESYSTEM_NO_DEPRECATED #include <boost/filesystem.hpp> namespace fs = ::boost::filesystem; // return the filenames of