iOS - 升级到 Xcode 4.5 后出现链接器错误,可能与 Core Plot 相关 [英] iOS - Linker error after upgrading to Xcode 4.5, possibly Core Plot related

查看:26
本文介绍了iOS - 升级到 Xcode 4.5 后出现链接器错误,可能与 Core Plot 相关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚升级到 Xcode 4.5GM 并在我的 iPhone 项目中整理了一些屏幕以应对 iPhone 5 上额外的屏幕尺寸.该项目针对 iOS 5.1,我刚来为我的手机构建它,我得到这个链接器错误:

I've just upgraded to Xcode 4.5GM and tidied up some screens in my iPhone project to cope with the extra screen size on iPhone 5. The project is targeting iOS 5.1 and I've just come to build it for my phone and I get this linker error :

文件是通用的(2 个切片)但不包含 a(n) armv7s 切片:/Users/JonathanW/Documents/MyXcode/myApp/myApp/CorePlot/libCorePlot-CocoaTouch.a对于架构 armv7s

file is universal (2 slices) but does not contain a(n) armv7s slice: /Users/JonathanW/Documents/MyXcode/myApp/myApp/CorePlot/libCorePlot-CocoaTouch.a for architecture armv7s

我在我的项目中使用 Core Plot 1.0 静态库,直到现在还没有遇到任何问题.环顾四周,我可以看到与构建体系结构设置有关的类似错误,但不知道从哪里开始.该项目在模拟器中运行良好(iOS 5.1iOS 6).有什么想法吗?

I'm using the Core Plot 1.0 static library in my project and have not had any issues with it until now. Looking around I can see similar errors to do with the build architecture settings but not sure where to go from here. The project works fine in the simulator (both iOS 5.1 and iOS 6). Any ideas?

推荐答案

从外观上看,您需要使用 Xcode 4.5GM 重新构建 libCorePlot 库,以便库的 ARMV7S 构建.似乎它正在尝试使用您使用旧 Xcode 构建的版本.

By the looks of it you'll need to rebuild the libCorePlot library with Xcode 4.5GM so that there's a ARMV7S build of the library. Seems as if it's trying to use the version you built with the older Xcode.

这篇关于iOS - 升级到 Xcode 4.5 后出现链接器错误,可能与 Core Plot 相关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆