Before cocos2d-x v3.16,
system() to remove a directory. iOS 11 remove
system, so will cause compiling error with iOS 11. cocos2d-x v3.16 fixes this issue, and will be released about on Oct.9. The corresponding PR for this issue is here, you can apply this PR to fix it.