- 浏览: 25555 次
最新评论
原文: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 974https://stackoverflow.com/quest ... -
缺少编译器要求的成员“ystem.Runtime.CompilerServices.ExtensionAttribute..ctor”
2017-09-09 15:05 819//缺少编译器要求的成员“ystem.Runtime.Com ... -
[转]帧同步和状态同步
2017-03-06 12:22 591转自:http://www.gameres.c ... -
非对称加密和数字证书原理
2017-03-01 17:34 445http://www.cnblogs.com/JeffreyS ... -
Unity模糊查找MonoBehaviour
2016-11-23 17:32 1049using System; using System.Co ... -
Unity问题备份
2016-10-09 11:19 6021. Could not find file " ... -
链接-Unity Assetbundle使用填坑
2016-09-08 11:53 533http://www.cnblogs.com/ybgame/p ... -
协程执行顺序测试备份
2016-09-01 18:28 436using UnityEngine;using Syste ... -
[转]简单粗暴的so加解密实现
2016-08-12 17:03 736http://bbs.pediy.com/showthread ... -
[转]android解决apk编译方法数超过64k的问题
2016-08-05 20:59 455如果你是一个android开发者,你至少听说过的Dalvik的 ... -
svn 413 Entity too large
2016-06-29 20:58 676在apache配置conf文件中添加 LimitXMLRequ ... -
[转]gradle打不同渠道的包
2016-06-27 18:29 622美团Android自动化之旅— ... -
IPv4 regex
2016-06-07 12:12 376private static Regex ipv4Reg = ... -
[转]unity3d使用winphone平台的问题
2016-05-25 12:18 406最近在移植u3d的游戏到WindowsPhone8上,Wind ... -
[转]Deep link是什么
2016-05-23 12:06 615http://www.open-open.com/lib/vi ... -
苹果和google play审核时注意的问题
2016-05-16 15:18 692苹果测试沙盒充值不能用越狱手机来测 google play测试 ... -
C# MSDN地址备忘
2016-05-14 19:20 417https://msdn.microsoft.com/zh-c ... -
Windows API错误码
2016-05-14 19:19 291https://msdn.microsoft.com/en-u ... -
java 坑收集
2016-05-06 20:15 3091. Strng.getBytes() 一定要指明用的是什么编 ... -
[转]iphone不越狱抓包
2016-04-27 20:42 936Remote Virtual Interface 在iOS ...
相关推荐
Framework not found IOSurface for architecture arm64所需 IOSurface.framework、FileProvider.framework
本人自己实现的支持腾讯新浪微博分享,支持outh2.0
Undefined symbols for architecture arm64: referenced from:
IEC 60617-2020国际标准Graphical symbols for diagrams IEC 60617 database snapshot created on 2020-12-01 Copyright 2020 IEC, Geneva, Switzerland. All rights reserved - Not for reproduction or ...
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 ...
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 文件
IEC 60617-DB-2020-DATABASE SNAPSHOT Graphical symbols for diagrams
IEEE P280_D25:2021 Draft Standard Letter Symbols for Quantities
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
libnx-SDL2 SDL2 部分实现。 安装: 确保正确安装SDL2(sdl2-config正常工作)。 ...$ cd libnx-SDL2 $ make $ export DEVKITPRO=`pwd...Undefined symbols for architecture x86_64: "_accountInitialize", referenced
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...
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 ...
电器上的开关符号,待机符号,不好输入的符号等
当你使用windows系统设计、开发苹果APP时,你需要...图标和字形生产文件已预先配置为使用Sketch Slice或Adobe Generator for Photoshop CC自动进行资产生产。还包括色板,动态类型表和字体。 仅做学习使用,不得商用。
Undefined symbols for architecture x86_64: "__TFV9submodule10testStructg3fooSS", referenced from: __TTWV9submodule10testStruct26ExtensionProtocolforStruct12testProtocolS1_FS2_g3fooSS in ...
windows xp sp3 的symbols 包 。WindowsXP-KB936929-SP3-x86-symbols-full-ENU。 找了半天,没找到中文版的符号包,只找到英文版的,不过可以用。然后这个是full版的。
IEEE Std 260.4-2018 Letter Symbols and Abbreviations for Quantit
Electronics, Abbreviations, Symbols and Terms