I have got the exact same error when with cocapods : For me the solution was to have two differents Build Active Architecture for target and pods.
App Target :
Build Active Architectures Only **Yes**
pods Target
Build Active Architectures Only **No**