当前位置:网站首页>Undefined symbols for architecture i386与第三方编译的静态库有关
Undefined symbols for architecture i386与第三方编译的静态库有关
2022-06-26 08:10:00 【may_he】
好多时候Xcode编译运行程序到模拟器的时候会遇到Undefined symbols for architecture i386的问题,这个问题是由于该项目中存在不支持i386架构的第三方静态库,如果把该静态库重新生成一个通用库(可在i386和armv6、armv7中使用),则该问题可以迎刃而解。
如何生成支持i386架构的静态库?
在静态库项目中,将项目build到iPhone 4.3 Simulator
如何生成支持armv6、armv7架构的静态库?
在静态库项目中,将项目build到IOS Device
如何查看静态库支持哪个架构?
用Terminal输入命令:lipo -info xxx.a (需要cd到该.a文件的目录下)
如何找到.a文件保存路径?
在Xcode中,编译运行后,在product中会有.a文件生成,选中该文件点击鼠标右键“show in Finder”
如何生成通用库?
将生成的两个静态库放到同一目录下,使用命令:lipo -create A.a B.a C.a
C.a为生成的通用库。
那两个静态库也可以不放在同一目录下,在使用命令时要将那两个静态库的存储路径也加上去
边栏推荐
- 解决 psycopg2.NotSupportedError: PQconninfo not available in libpq < 9.3
- Quickly upload data sets and other files to Google colab ------ solve the problem of slow uploading colab files
- [industry cloud talk live room] tomorrow afternoon! Focus on digital intelligence transformation of the park
- [UVM practice] Chapter 2: a simple UVM verification platform (5) build test cases
- [untitled]
- 信息学奥赛一本通 1355:字符串匹配问题(strs)
- Baoyan postgraduate entrance examination interview - Network
- Test method - decision table learning
- Two models of OSPF planning: double tower Raider and dog tooth crisscross
- Junit
猜你喜欢

buuresevewp

WiFi-802.11 2.4G频段 5G频段 信道频率分配表

Oracle 19C local listener configuration error - no listener

Detailed explanation and code implementation of soft voting and hard voting mechanism in integrated learning

Wifi-802.11 2.4G band 5g band channel frequency allocation table

Baoyan postgraduate entrance examination interview - operating system

Database learning notes I

(vs2019 MFC connects to MySQL) make a simple login interface (detailed)

You can command Siri without making a sound! The Chinese team of Cornell University developed the silent language recognition necklace. Chinese and English are OK

Flume learning notes
随机推荐
Use middleware to record slow laravel requests
What are the key points of turnover box management in warehouse management
Crawler case 1: JS reversely obtains HD Wallpapers of minimalist Wallpapers
Golang collaboration and channel usage
Detailed explanation of the generate go file command of import in golang (absolute detail)
Use intent to shuttle between activities -- use implicit intent
What is Wi Fi 6 (802.11ax)? Why is Wi Fi 6 important?
[industry cloud talk live room] tomorrow afternoon! Focus on digital intelligence transformation of the park
PyTorch-12 GAN、WGAN
Introduction to uni app grammar
Color code
[untitled]
记一次开发 pgadmin 时执行 Building the Web Assets 遇到的依赖安装问题
(vs2019 MFC connects to MySQL) make a simple login interface (detailed)
2: String insert
Blue Bridge Cup 3 sequence summation
What are the characteristics of digital factory in construction industry
Pic 10B parsing
MySQL practice: 1 Common database commands
[UVM practice] Chapter 2: a simple UVM verification platform (5) build test cases