Adding the “-ObjC” Linker Flag
- Select the project file from the project navigator on the far left side of the window.
- Select the target for where you want to add the linker flag.
- Select the “Build Settings” tab
- Choose “All” to show all Build Settings.
- Scroll down to the “Linking” section, and double-click to the right of where it says “Other Linking Flags”.
- A box will appear, Click on the “+” button to add a new linker flag.
- Type “-ObjC” (no quotes) and press enter.