I ended up reinstalling eclipse and the sdk, but I instead of installing them separately, I installed bundle:
and I don't get this problem anymore.
More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.
You should read OS supplied guidelines before developing. I can't stress that enough. The guidelines will help you understand the reasons mobile app developers do what they do. Apple is very particular when they review appstore submissions.