Fix infinite loop

I think it's better to listen to IDEIndexDidIndexWorkspaceNotification, this one is fired when Xcode finishes indexing the whole workspace, I tested it and it works with Pod.