Thanks for sharing! At first I thought how Fallout video can help
Here is my solution which is based on your suggestion. I built project under Windows and MacOS (10.15.7) but in both cases I was getting this error. When I saw your post, I tried to manually install cocoapods “su gem install cocoapods”. That installed cocoapods in system but not in project and then I noticed that you also mentioned “pod install --repo-update” command which solved the first part of the issue.
The second issue was missing “.xcworkspace” file in a built folder which should be used instead of “.xcodeproj”. So I opened Podfile within project folder and comment the following line “#install! ‘cocoapods’, :integrate_targets => false”. Then I did “pod install” command again and saw success message with instruction to open “.xcworkspace” file.
VERY IMPORTANT: make sure that you close xcode (right click quick in dock and select “quit”) before you open “.xcworkspace” file, otherwise you will see error which may mislead you that it’s still not working =) Once you close xcode and start project again with “.xcworkspace” file, you will see both Unity-iPhone and Pods on the left side. Have a successful coding!
Everyone, I was stuck on this issue for 4 days and I got SO frustrated. I simply just needed to “pod update” on the terminal. I found that it’s warning me of multiple instances of everything. I scrolled up a bit to see that the pod update has failed.
No, DO THIS:
1- Open PodFile in your project folder.
2- if you see two lines of “source” at the very beginning, delete the one that has github.
3- “update pod” and make sure it returns no errors
4- Rebuild!