Certificate not installed, can't build for IOS

Now it works, I just posted what I did, in case people have a similar problem.