Apple Mach-O Linker Error when using Cocos2d-x
When I tried to run the Cocos2d-x sample project on Xcode using Live2D_SDK_iPhone_ES2_1.0.01, I received the following error:
Apple Mach-O Linker Error
clang: error: unknown argument: '-websockets' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
But after a bit of research, I managed to solve this error by erasing ‘-websockets’ under ‘TARGETS>sampleCocos2dx>BuildSettings>Linking>Other Linker Flags’
I thought I should share this with other Cocos2d-x users!