symbol(s) not found for architecture x86_64
在編譯Test項(xiàng)目的時(shí)候,編譯得到上面的錯(cuò)誤,查看https://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64 , 被沒有解決問題, 在仔細(xì)看錯(cuò)誤,對(duì)比可正確編譯的版本
l_OBJC_$CATEGORY_UIColor$_ColorUtils in libColorUtils.a(ColorUtils.o)
會(huì)發(fā)現(xiàn)是UIColor沒有找到,之后定位到是UIKit framework被link,在OTHER_LDFLAGS加上
-framework "UIKit"
即可