最近,使用师兄的工程时,突然报错之前没发现这个错误,信息如下:
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)
具体信息:
export IPHONEOS_DEPLOYMENT_TARGET=4.1
export PATH="/Applications/Xcode.a
解决方法:点击工程project-》build setting --》搜索IPHONEOS_DEPLOYMENT_TARGET 修改为4.2以后
时间: 2024-10-17 15:23:44