Same issue.
As @Andrea Rizer mentioned, I removed -all_load from Other Linker flags in Build Settings and the code compiled successfully.
Topic:
App & System Services
SubTopic:
Core OS
Tags: