[英]Make library support 32bit architecture and 64bit architecture ios
I created a objective-c library in Xcode 6.1. 我在Xcode 6.1中创建了一个Objective-C库。 It supports 64 bit architecture.
它支持64位体系结构。 I added it to an old project with 32 bit support.
我将其添加到具有32位支持的旧项目中。 It is crashing and giving me an error
它崩溃了,给我一个错误
ld: file is universal (3 slices) but does not contain a(n) armv7s slice
How can i update the library to support the old project? 我如何更新库以支持旧项目?
Remove the support for any architecture armv7s from the project (target) -> Build Settings -> Valid Architectures: Alternatively, you can set the flag for your debug configuration's 从项目(目标)->构建设置->有效体系结构中删除对任何体系结构armv7的支持:或者,您可以设置调试配置的标志。
Change Build Active Architecure Only to Yes. 将仅生成活动架构更改为是。
Hope this will work. 希望这会起作用。
您只需将armv7s与($ _ARCHS_STANDARD)一起添加到库的Target-> Build Settings-> Architectures
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.