Xcode: Fix missing end statement