Set the -ObjC Flag
-ObjC flag to Other Linker Flags.
- Select your project in the Project Navigator.
- In the target list, select the target that builds your application.
- Select the Build Settings tab.
- Scroll to Linking and open.
- Go to Other Linker Flags and double-click to open the popup.
- If the -ObjC flag is not in your list, click + and add it.