简体   繁体   English

iOS-XCODE 6-为模拟器构建64位应用程序

[英]iOS - XCODE 6 - Build 64bit application for simulator

i have setted my project's build settings inserting "Standard architectures (armv7, arm64)" and "Valid architecture (armv7, armv7s and arm64)" for . 我已经设置了项目的构建设置,并为其插入了“标准体系结构(armv7,arm64)”和“有效体系结构(armv7,armv7s和arm64)”。 With these options i can build the project for iPhone 3Gs, iPhone 5 and iPhone 5s (hardware with 32 and 64 bit architecture) but i have problems when i try to build the project for the simulator. 使用这些选项,我可以为iPhone 3G,iPhone 5和iPhone 5s(具有32位和64位架构的硬件)构建项目,但是当我尝试为模拟器构建项目时遇到了问题。 Why? 为什么? I have errors like this 我有这样的错误

    "_BIO_f_base64", referenced from:

That's because the simulator is running on an i386 architecture and no arm. 那是因为模拟器是在i386架构上运行并且没有手臂。 Add something like i386 to the supported architecture. 将类似i386的内容添加到受支持的体系结构中。 (see one of the many answers here on SO for details and screenshots) (有关详细信息和屏幕截图,请参见SO上的众多答案之一

BIO_f_base64 is part of OpenSSL ( https://www.openssl.org/docs/crypto/BIO_f_base64.html ). BIO_f_base64是OpenSSL( https://www.openssl.org/docs/crypto/BIO_f_base64.html )的一部分。 That is not available on iOS. 这在iOS上不可用。 Are you embedding a local copy of OpenSSL into your app? 您是否要在应用程序中嵌入OpenSSL的本地副本? It looks like you might not be building the library correctly. 看来您可能未正确构建库。 Make sure you build it for the iOS Simulator and x86_64 plus i386. 确保为iOS Simulator和x86_64 plus i386构建它。

You can execute the command that "lipo -info openssl.a" in terminal. 您可以在终端中执行“ lipo -info openssl.a”命令。 Watch what is it'architecture? 观看它的架构是什么? should be arm. 应该是手臂。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM