iOS报错 -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)

具体信息:

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

iOS报错 -pie can only be used when targeting iOS 4.2 or later的相关文章

coco2dx新建项目报错,ld: -pie can only be used when targeting iOS 4.2 or later clang: error: linker command

在新建cocos2d-x以后,运行发现以下错误: 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) 如图所示: 这时候,选中左上角的项目文件 ------>选中General ---------> DeploymentInfo 中 -------------> De

iOS 报错: linker command failed with exit code 1 (use -v to see invocation) 原因

在iOS开发中,很多人会遇到这样的报错 linker command failed with exit code 1 (use -v to see invocation) 可能的原因如下: 1.引用出错,把***.h弄成了.m,检查一下你的所有引用: 2.再就是你引用第三方的库,你添加文件是系统没有所第三方库的.m文件参入的编译中去,你向项目添加文件得注意了; 3.找到Build settings->Linking->Other Linker Flags,将此属性修改成-all_load或-O

iOS 报错 : dyld: Library not loaded: @rpath/

今天用阿里短视频点播短视频服务按照上边引导导入sdk后编译报错: dyld: Library not loaded: @rpath/ 整了半天 结果是目前iOS的短视频SDK输出的都是动态库,需要以动态库的方式添加. 需要在MyApp的工程中做如下配置

iOS报错[__NSCFNumber length]: unrecognized

出现这种报错很大的原因是因为类型给错了,或许你这个数据是从json上解析后得到的,但是需要看一下这个数据是NSString还是NSNumber类型,如果是NSNumber类型的话,你又直接使用NSString类型的变量去接收他,那么肯定会报这样的错误,所以一定要注意数据的类型. 附: //NSNumber转NSString NSNumber *nsnumber; NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc] ini

xcode 7 运行项目报错 -fembed-bitcode is not supported on versions of iOS prior to 6.0

看一时是不支持 -fembed-bitcode  后查找网上资源发现 Xcode 7 has a ENABLE_BITCODE option to embed bitcode in apps, app extensions, and frameworks. The option is turned on by default for iOS and is mandatory for watchOS projects submitted to the store. When bitcode is

iOS 报错信息: dyld: Library not loaded: @rpath/XCTest.framework/XCTest Referenced from

新建项目,引入framework,运行时出现警告:dyld: Library not loaded: @rpath/RLLibrary.framework/RLLibrary Referenced from: /var/mobile/Applications/AE92B234-A818-445E-9D69-96E232BD50EB/RLProjectDemo.app/RLProjectDemo Reason: image not found 看网上不少人说是将 上图Link Binary Wit

IOS报错Distill failed for unknown reasons.Assets.xcassets解决方法

Distill failed for unknown reasons.Assets.xcassets 字面上意思大概是 Assets.xcassets文件夹里有问题,提取失败 看到网上有人说beta版本系统有问题,去换系统.误人子弟 解决:Targets里build phases里删掉所有图片重新再重新运行 原文地址:https://www.cnblogs.com/tk55/p/12322943.html

-pie can only be used when targeting iOS 4.2 or laterclang: error: linker command failed with exit c

在code4App上下载的一个下拉菜单的demo,打开就爆出标题所示的问题. 解决方法: TARGET→ general → DeployMent info → Deployment Tagget  把版本设置高一点就OK了. 每天一点积累.......

-pie can only be used when targeting iOS 4.2 or later错误解决

在工程的build setting里,把IPHONEOS_DEPLOYMENT_TARGET改成4.2或以上就行了