Xcode build error at -fobjc-weak flag
Background
When click Xcode project and upgrade the project config for old Xcode version, like manage auto release.
you will see this error on your message list.
clang: error: -fobjc-weak is not supported on the current deployment target
The reason is Xcode add new command line “CLANG_ENABLE_OBJC_WEAK = YES;”.
Resolve
Now remove it on Xcode config, and build it again.
“CLANG_ENABLE_OBJC_WEAK = YES;”
This post is licensed under CC BY 4.0 by the author.