After looking online for a while, I figure out what the problem was. It was the invalid certificate in my keychain access. I had to also delete the expired signing certificate from System tab, not just login tab. After that the certificate generated with apple developer site showed up as valid. thanks!