If your project is using Swift, there are two separate “Optimization Level” settings in the project/target configuration.
Make sure you set them both correctly:
- Select your project in the Project Navigator pane
- Select your project’s settings under the “PROJECT” tree
- Click “Build Settings” tab
- Search for “Optimization Level” and you’ll see two settings, one for LLVM and one for swift.
- Set the appropriate setting (
None [-O0]
for LLVM andNone [-0none]
for Swift) for the build config in question.
Doing this resolved that warning for me.