链接到为MacOSX文件构建的dylib'/usr/lib/libSystem.B.dylib'for architecture i386 [英] linking against dylib built for MacOSX file '/usr/lib/libSystem.B.dylib' for architecture i386

查看:1785
本文介绍了链接到为MacOSX文件构建的dylib'/usr/lib/libSystem.B.dylib'for architecture i386的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近将我的开发MacBook从经典的MacBook(32位)切换到MacBook Air(64位)。我试图打开一个项目,这是在我的旧MacBook(32位)运行XCode 4。



该项目是在PhoneGap 1.7.0中制作的PhoneGap应用程序。



我的新MacBook Air(64位元)正在执行XCode 5。



我将我的开发者配置文件从我的旧MacBook导入我的新MacBook Air。但是当我尝试运行它,我得到以下错误信息。



>



>



我已经尝试改变我的架构在构建设置为armv7,但仍然没有运气:(



有人知道为什么我得到这个错误,如何修复?



感谢

解决方案

结果是,当我的应用程序不支持armv7时,XCode 5将默认架构更改为armv7。我运行的是Cordova 1.7.0,并且该版本不支持armv7架构。



修正架构问题:




  1. 已从 strong>构建设置 - >
    有效架构

  2. 添加 armv6 Build Settings - > 有效架构


修复 libSystem.B。 dylib 问题:


  1. 已移除 /usr/lib/libSystem.B.dylib Build Settings > 链接 - > 其他链接器标记 p>


  2. 中移除了 -weak_library 构建设置 - > 链接 - > 链接器标记
    >



I recently switched my development MacBook from a classic MacBook (32 bit) to a MacBook Air (64 bit). I am trying to open a project that was made on my old MacBook (32 bit) running XCode 4.

The project is a PhoneGap application made in PhoneGap 1.7.0.

My new MacBook Air (64 bit) is running XCode 5.

I imported my developer profiles from my old MacBook to my new MacBook Air. But when I try to run it, I get the following error message.

I have tried changing the my architecture in the build settings to armv7 but still no luck :(

Does anyone know why I'm getting this error and how to fix it?

Thanks

解决方案

OK so as it turns out, XCode 5 changes the default architecture to armv7 when my application does not support armv7. I am running Cordova 1.7.0 and that version does not have support for armv7 architecture.

Fix architecture issue:

  1. Removed ALL architectures from Build Settings --> Valid Architecture
  2. Added armv6 to Build Settings --> Valid Architecture


Fix libSystem.B.dylib issue:

  1. Removed /usr/lib/libSystem.B.dylib from Build Settings --> Linking --> Other Linker Flags

  2. Also removed -weak_library from Build Settings --> Linking --> Other Linker Flags

这篇关于链接到为MacOSX文件构建的dylib'/usr/lib/libSystem.B.dylib'for architecture i386的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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