Arduino on Xcode Project — Official Thread

You need to forward declare the function to clear up the error.

For instance, at the top of the file include the following forward declaration (prototype):

void swapPS3NavControllers(void);