ld: -pie can only be used when targeting iOS 4.2 or later

ld: -pie can only be used when targeting iOS 4.2 or later

clang: error: linker command failed with exit code 1 (use -v to see invocation)

解决方法:

把target设置高一点project->target->general->Deployment info-->Deployment Target

原文地址:https://www.cnblogs.com/jasontec/p/9601604.html