强制 XCode 输出 32 位代码?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6831133/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Force XCode to output 32bit code?
提问by eemceebee
I have some cpp code which I transfered from Linux to OSX. The problem is that it includes a lot of encryption handling so the code is very picky about 64Bit enhancements.
我有一些从 Linux 转移到 OSX 的 cpp 代码。问题在于它包含大量加密处理,因此代码对 64 位增强功能非常挑剔。
Is there a way to tell xcode that it should not create 64Bit code ?
有没有办法告诉 xcode 它不应该创建 64Bit 代码?
Thanks
谢谢
回答by David
In Xcode 4.1, Select the project from the list of files on the left. Select the target.
Go to the Build Settings
tab. Search for Architectures
setting. Select 32-bit Intel
.
在 Xcode 4.1 中,从左侧的文件列表中选择项目。选择目标。转到Build Settings
选项卡。搜索Architectures
设置。选择32-bit Intel
。
In a previous version of Xcode, just double click on the target and find the same Architectures selection.
在以前版本的 Xcode 中,只需双击目标并找到相同的架构选择。