iOS报错 -pie can only be used when targeting iOS 4.2 or later

Posted mfmdaoyou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS报错 -pie can only be used when targeting iOS 4.2 or later相关的知识,希望对你有一定的参考价值。

近期,使用师兄的project时。突然报错之前没发现这个错误。信息例如以下:

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以后






以上是关于iOS报错 -pie can only be used when targeting iOS 4.2 or later的主要内容,如果未能解决你的问题,请参考以下文章

解决Only a type can be imported. com.mysql.jdbc.Connection resolves to a package的报错问题

python报错:only integer scalar arrays can be converted to a scalar index

realm数据库报错:Changing Realm data can only be done from inside a transaction.

realm数据库报错:Changing Realm data can only be done from inside a transaction.

pytorch 1.9.0 backward函数解释以及报错(RuntimeError: grad can be implicitly created only for scalar outputs)

记录:MySQL报错1075 - Incorrect table defintion;there can be only...解决方案