I already had installed my pod files and they were working fine, but after pulling from orignin/main this error showed up. And I also had put all the pod files and their related files to .gitignore so I'm not sure whether the pulling caused this problem or not...
so far I've deleted my derieved data and updated my pods via the pod update command, but it didn't do any good...