In addition to the answer from @kokoko, I found out that running the app directly from Xcode also solves this problem. If still things don't work, just restart Xcode.