Login or signup on landing page?

I was curious as to whether the landing page of a social mobile app should be built for a user to signup or login.

This example lands on the app's signup page with an option to be redirected to the login page, and this example does the opposite.

I would appreciate a clarification on which is considered 'wrong' or 'right', and on which occasions each is acceptable.