Hold on, take a breath and do what I did after struggling all day with the problem
open xcode -> Pods ->Target Support Files -> Pods-Runnder-frameworks. Open this file and search for "readlink"(cmd + f) .
It should be like this
source="$(readlink "${source}")"
and replace it with
source="$(readlink -f "${source}")"
then in second place
binary="${dirname}/$(readlink "${binary}")"
replace it with
binary="${dirname}/$(readlink -f "${binary}")"
Now you are good to go to archive, happy coding