`
lizhuang
  • 浏览: 898910 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

undefined symbols for architecture armv7

 
阅读更多
今天在调用公司其它人写的静态库的时候,编译一直无法通过一直报错 undefined symbols for architecture armv7 referenced from。

最后发现是在制作静态库的时候,只是把文件添加到了工程。

但是compil sources里面默认没有添加的,需要我们手动去添加资源文件,然后就解决了。







下面附带stackoverflow有人分析的几个原因

http://stackoverflow.com/questions/6429494/undefined-symbols-for-architecture-armv7

The common causes for "Undefined symbols for architecture armv7" are:

You import a header and do not link against the correct library. This is common, especially for headers for libraries like QuartzCore since it is not included in projects by default. To resolve:

Add the correct libraries in the Link Binary With Libraries section of the Build Phases.

If you want to add a library outside of the default search path you can include the path in theLibrary Search Paths value in the Build Settings and add
-l{library_name_without_lib_and_suffix} (eg. for libz.a use -lz) to the Other Linker Flags section of Build Settings.


You copy files into your project but forgot to check the target to add the files to. To resolve:

Open the Build Phases for the correct target, expand Compile Sources and add the missing .m files. If this is your issue please upvote Cortex's answer below as well.

You include a static library that is built for another architecture like i386, the simulator on your host machine. To resolve:

If you have multiple library files from your libraries vendor to include in the project you need to include the one for the simulator (i386) and the one for the device (armv7 for example).

Optionally, you could create a fat static library that contains both architectures.
分享到:
评论

相关推荐

    Framework not found IOSurface for architecture arm64(不能设为免费?)

    在iOS应用开发中,"Framework not found IOSurface for architecture arm64" 是一个常见的构建错误,这通常发生在尝试编译或运行项目时,系统无法找到指定的架构(arm64)所需的IOSurface框架。该问题可能由多种原因...

    Unity导出的Xcode工程合并到现有的Xcode项目实现AR流程及合并中遇到的各种问题解决方法,附demo下载地址

    3. **Undefined symbols for architecture armv7**: - 解决这个问题的方法是在`Build Phases`中添加`AssetsLibrary.framework`和`Accelerate.framework`框架。 4. **Permission denied错误**: - 当遇到...

    腾讯新浪微博分享

    在IT行业中,分享功能是许多应用不可或缺的一部分,特别是在社交媒体领域。腾讯新浪微博分享是将内容从一个应用程序推送到腾讯微博和新浪微博这两个平台的功能。这个功能的实现通常涉及到OAuth 2.0授权协议,这是一...

    ctr_drbg伪随机数发生器

    7. **安全性和性能**: CTR_DRBG的安全性依赖于其使用的块密码和熵源的质量。正确配置和使用,它可以提供强大的随机性,适合于安全敏感的应用,如密钥生成、会话标识等。性能方面,由于CTR模式的并行性,CTR_DRBG...

    IEC 60617-2020国际标准Graphical symbols for diagrams

    《IEC 60617-2020国际标准Graphical symbols for diagrams》是国际电工委员会(IEC)制定的一项重要标准,主要关注图形符号在图表中的应用。这个标准详细规定了用于电气和电子工程领域图表绘制的一系列标准化图形...

    startup_armv7-m.7z

    The ARM C library provides multiple implementations of the function __user_setup_stackheap(), and can select the correct one for you automatically from information given in a scatter file. To select ...

    ZBar 支持i386 armv6 armv7 armv7s x86_64 arm64

    for (ZBarSymbol *symbol in symbols) { NSLog(@"解析到的条码数据: %@", symbol.data); // 处理扫描结果... } [picker dismissViewControllerAnimated:YES completion:nil]; } ``` 总之,ZBar是一个强大的...

    Xcode13.0真机调试包

    Xcode 12.3真机调试包,操作如下: 前往--应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport文件夹,拖到文件目录下之后重启 Xcode 即可

    ZBarSDK/libzbar.a

    项目导入ZBarSDK 出错 ld: warning: ignoring file /Users/mac/...Undefined symbols for architecture x86_64:  "_OBJC_CLASS_$_ZBarReaderViewController", referenced from: 需要更换 libzbar.a 文件

    IEEE 315-1975 Graphic Symbols for Electrical and Electronics Diagrams

    IEEE 电气原理图形符号标准 Graphic Symbols for Electrical and Electronics Diagrams

    SAE J1362-2023 Graphical Symbols for Operator Controls and

    SAE J1362-2023 Graphical Symbols for Operator Controls and Displays on Off-Road Self-Propelled Work Machines.pdf

    SF Symbols.7z

    当你使用windows系统设计、开发苹果APP时,你需要...图标和字形生产文件已预先配置为使用Sketch Slice或Adobe Generator for Photoshop CC自动进行资产生产。还包括色板,动态类型表和字体。 仅做学习使用,不得商用。

    windows 7 debug symbols 32位 64位 sp1的symbols是另一个文件

    windows 7 debug symbols 不含win7 sp1的symbol If you plan to install symbols manually, it is crucial that you remember this basic rule: the symbol files on the host computer are required to match the...

    IEC 60617-2020-DATABASE SNAPSHOT Graphical symbols for diagrams

    《IEC 60617-2020-DATABASE SNAPSHOT Graphical symbols for diagrams》是国际电工委员会(IEC)发布的一份关于图形符号的标准,主要应用于电气和电子工程领域的图示设计。这份标准详细规定了用于图表的图形符号,...

    libnx-SDL2:SDL2 libnx的部分实现

    libnx-SDL2 SDL2 部分实现。 安装: 确保正确安装SDL2(sdl2-config正常工作)。 ...$ cd libnx-SDL2 $ make $ export DEVKITPRO=`pwd...Undefined symbols for architecture x86_64: "_accountInitialize", referenced

    Android代码-symbols

    Symbols is a Java library to generate static strings constants for attribute names using annotation processor. Tell me more In some cases, in Java (ex: when using reflection methods) we need to refer ...

    IEEE P280_D25:2021 Draft Standard Letter Symbols for Quantities

    7. **单位的组合与简化**:在复杂工程问题中,往往需要组合多个单位。标准指导如何正确组合和简化单位,以达到简洁明了的效果。 8. **符号的优先级与顺序**:在表达式中,符号的排列顺序可能影响理解。标准提供了...

    ISO/IEC/JTC1 Graphical Symbols for Office Equipment

    7. **节能/节约** - **标准编号**:IEC5581 - **用途**:识别激活经济模式的控制,例如节省能源或水。 - **应用场景**:当设备需要进入节能模式以降低能耗时。 - **示例**:空调的节能模式选择按钮。 #### 三、...

    could not read symbols: Bad value

    "could not read symbols: Bad value" 问题解决方案 本文将详细介绍在 64 位 Linux 系统下出现的 "could not read symbols: Bad value" 问题,并提供解决方案。 问题描述 -------- 在 64 位 Linux 系统下编译 ...

Global site tag (gtag.js) - Google Analytics