IOS开发报错之Undefined symbols for architecture armv6
生活随笔
收集整理的這篇文章主要介紹了
IOS开发报错之Undefined symbols for architecture armv6
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
本文轉(zhuǎn)載至 ?http://blog.csdn.net/sanpintian/article/details/7575434?
今天在項(xiàng)目中引入SVSegmentedControl.h/.my以及SVSSegmentedThumb.h/.m之后應(yīng)用引入類,編譯時(shí)候報(bào)錯(cuò)
Undefined symbols for architecture armv6:"_OBJC_CLASS_$_SVSegmentedControl", referenced from:objc-class-ref in SVSegmentedControl.o ld: symbol(s) not found for architecture armv6 Undefined symbols for architecture armv6:"_OBJC_CLASS_$_SVSSegmentedThumb", referenced from:objc-class-ref in SVSSegmentedThumb.o ld: symbol(s) not found for architecture armv6 這種情況一般是庫引用的問題,解決辦法選擇工程的TARGETS-->Build Phases-->Link Binary With Libraries 點(diǎn)擊“+”圖標(biāo)添加對(duì)應(yīng)的庫。 但是在此地的原因其實(shí)也是這樣,編譯時(shí)候找不到對(duì)應(yīng)的類,所以需要我們?cè)贐uild Phases-->Compile Sources中手動(dòng)添加SVSegmentedControl.my以及SVSSegmentedThumb.m兩項(xiàng),之后clean項(xiàng)目,重新編譯即可。 更多0?
轉(zhuǎn)載于:https://www.cnblogs.com/Camier-myNiuer/p/3467166.html
總結(jié)
以上是生活随笔為你收集整理的IOS开发报错之Undefined symbols for architecture armv6的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 火车入轨_算法
- 下一篇: 《大学数学遐想》系列之后记