Open Chuanqi927 opened 2 years ago
If you haven't found a solution yet, you probably need to check that the fonts folder is in the iOS target's project's settings: BuildPhases > Copy Bundle Resources. You could also select the fonts folder in the project navigator and then "View > Inspectors > Show Inspector" (or use key combo: CMD+OPT+0) to confirm that both iOS and Mac targets are selected for the folder's membership.
Steps to Reproduce:
cocos2d::FileUtils::getInstance()->listFiles(dirname);
to get files inside a directory.