How to link with framework without arm64 support in Xcode 5.1?

有些话、适合烂在心里 提交于 2019-11-27 18:43:00

问题


After upgraded a project on Xcode 5.1, Product > Build gives the following warning and error:

ld: warning: ignoring file Dropbox/Dropbox.framework/Dropbox, missing required architecture arm64 in file Dropbox.framework/Dropbox (3 slices)

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_DBPath", referenced from: objc-class-ref in DropboxViewController.o

It seems like the Dropbox.framework does not support arm64 yet.

What are the Xcode settings to remove arm64 support from the project to have a clean build?


回答1:


Change:

  • Architectures: Standard
  • Valid Architectures: arm64 armv7 armv7s

To:

  • Architectures: armv7 armv7s
  • Valid Architectures: armv7 armv7s



回答2:


Remove armv64 in

Project > Build Settings > Architectures> Valid Architectures

( i.e. leave only armv7 and armv7s )

Also, set Build Active Architectures Only to NO.



来源:https://stackoverflow.com/questions/22341511/how-to-link-with-framework-without-arm64-support-in-xcode-5-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!