Pod install failed after detaching

I tried detaching because I needed to use in app purchase in ios.
I tried to follow documents and failed in pod install.

Here is my pod file.

Here is error message.

I’ve tried updating repo but nothing worked.
How can I solve this problem?

I’ve tried again after cloning the latest project and it works fine… Strange…