- 浏览: 27873 次
最新评论
原文: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 the Library 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.
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 the Library 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.
发表评论
-
Xcode9解决exportArchive: requires a provisioning profile
2017-09-23 15:15 1141https://stackoverflow.com/quest ... -
缺少编译器要求的成员“ystem.Runtime.CompilerServices.ExtensionAttribute..ctor”
2017-09-09 15:05 993//缺少编译器要求的成员“ystem.Runtime.Com ... -
[转]帧同步和状态同步
2017-03-06 12:22 656转自:http://www.gameres.c ... -
非对称加密和数字证书原理
2017-03-01 17:34 558http://www.cnblogs.com/JeffreyS ... -
Unity模糊查找MonoBehaviour
2016-11-23 17:32 1157using System; using System.Co ... -
Unity问题备份
2016-10-09 11:19 7181. Could not find file " ... -
链接-Unity Assetbundle使用填坑
2016-09-08 11:53 626http://www.cnblogs.com/ybgame/p ... -
协程执行顺序测试备份
2016-09-01 18:28 489using UnityEngine;using Syste ... -
[转]简单粗暴的so加解密实现
2016-08-12 17:03 807http://bbs.pediy.com/showthread ... -
[转]android解决apk编译方法数超过64k的问题
2016-08-05 20:59 503如果你是一个android开发者,你至少听说过的Dalvik的 ... -
svn 413 Entity too large
2016-06-29 20:58 759在apache配置conf文件中添加 LimitXMLRequ ... -
[转]gradle打不同渠道的包
2016-06-27 18:29 680美团Android自动化之旅— ... -
IPv4 regex
2016-06-07 12:12 431private static Regex ipv4Reg = ... -
[转]unity3d使用winphone平台的问题
2016-05-25 12:18 488最近在移植u3d的游戏到WindowsPhone8上,Wind ... -
[转]Deep link是什么
2016-05-23 12:06 690http://www.open-open.com/lib/vi ... -
苹果和google play审核时注意的问题
2016-05-16 15:18 750苹果测试沙盒充值不能用越狱手机来测 google play测试 ... -
C# MSDN地址备忘
2016-05-14 19:20 454https://msdn.microsoft.com/zh-c ... -
Windows API错误码
2016-05-14 19:19 345https://msdn.microsoft.com/en-u ... -
java 坑收集
2016-05-06 20:15 3501. Strng.getBytes() 一定要指明用的是什么编 ... -
[转]iphone不越狱抓包
2016-04-27 20:42 988Remote Virtual Interface 在iOS ...
相关推荐
在iOS应用开发中,"Framework not found IOSurface for architecture arm64" 是一个常见的构建错误,这通常发生在尝试编译或运行项目时,系统无法找到指定的架构(arm64)所需的IOSurface框架。该问题可能由多种原因...
3. **Undefined symbols for architecture armv7**: - 解决这个问题的方法是在`Build Phases`中添加`AssetsLibrary.framework`和`Accelerate.framework`框架。 4. **Permission denied错误**: - 当遇到...
在IT行业中,分享功能是许多应用不可或缺的一部分,特别是在社交媒体领域。腾讯新浪微博分享是将内容从一个应用程序推送到腾讯微博和新浪微博这两个平台的功能。这个功能的实现通常涉及到OAuth 2.0授权协议,这是一...
7. **安全性和性能**: CTR_DRBG的安全性依赖于其使用的块密码和熵源的质量。正确配置和使用,它可以提供强大的随机性,适合于安全敏感的应用,如密钥生成、会话标识等。性能方面,由于CTR模式的并行性,CTR_DRBG...
在Xcode 10升级导致项目报错的常见问题解决中,我们可以看到,Xcode 10升级后会出现各种编译问题,例如library not found for -libstdc++报错、directory not found for option报错、script phase "[CP]Copy Pods ...
《IEC 60617-2020国际标准Graphical symbols for diagrams》是国际电工委员会(IEC)制定的一项重要标准,主要关注图形符号在图表中的应用。这个标准详细规定了用于电气和电子工程领域图表绘制的一系列标准化图形...
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 ...
for (ZBarSymbol *symbol in symbols) { NSLog(@"解析到的条码数据: %@", symbol.data); // 处理扫描结果... } [picker dismissViewControllerAnimated:YES completion:nil]; } ``` 总之,ZBar是一个强大的...
Xcode 12.3真机调试包,操作如下: 前往--应用程序/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport文件夹,拖到文件目录下之后重启 Xcode 即可
项目导入ZBarSDK 出错 ld: warning: ignoring file /Users/mac/...Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ZBarReaderViewController", referenced from: 需要更换 libzbar.a 文件
IEEE 电气原理图形符号标准 Graphic Symbols for Electrical and Electronics Diagrams
SAE J1362-2023 Graphical Symbols for Operator Controls and Displays on Off-Road Self-Propelled Work Machines.pdf
当你使用windows系统设计、开发苹果APP时,你需要...图标和字形生产文件已预先配置为使用Sketch Slice或Adobe Generator for Photoshop CC自动进行资产生产。还包括色板,动态类型表和字体。 仅做学习使用,不得商用。
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)发布的一份关于图形符号的标准,主要应用于电气和电子工程领域的图示设计。这份标准详细规定了用于图表的图形符号,...
libnx-SDL2 SDL2 部分实现。 安装: 确保正确安装SDL2(sdl2-config正常工作)。 ...$ cd libnx-SDL2 $ make $ export DEVKITPRO=`pwd...Undefined symbols for architecture x86_64: "_accountInitialize", referenced
在ABAP编程中,FIELD-SYMBOLS是一个非常重要的概念,它允许我们动态地引用数据结构,无需预先声明具体的变量。这在处理多种不同类型的变量或处理结构化数据时非常有用,可以提高代码的灵活性和可维护性。下面将详细...
`log-symbols` 是一个非常有用的模块,专为命令行环境设计,提供了各种颜色鲜明的日志级别符号,使得日志输出更易读、更直观。 `log-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 ...