Adding COMPILER_FLAGS with = or space corrupts the project file and it can not be parsed by xcode or xcodebuild
I tested how xcode behaves and it adds quotes around the COMPILER_FLAGS setting, but it doesn't add quotes to Weak from ATTRIBUTES.
This is the reason this fix is applied only when opt.compilerFlags is present
Adding COMPILER_FLAGS with = or space corrupts the project file and it can not be parsed by xcode or xcodebuild I tested how xcode behaves and it adds quotes around the COMPILER_FLAGS setting, but it doesn't add quotes to Weak from ATTRIBUTES. This is the reason this fix is applied only when opt.compilerFlags is present