iOS/swift
[iOS]3rd part framework 사용 App 만들기
pearlab
2021. 11. 11. 19:04
Project Create
Target -> General -> Framework -> +Button -> Framework File
import 후 사용
import simplelib
let lib:simplelib = simplelib()
lib.testW()
3rd part 에서 std library를 사용하였다면 app build 시 link error가 발생할 수 있다
Undefined symbols for architecture arm64:
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::operator=(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
Target Project -> Build Settings -> Linking -> Other Linker Flags 에 -lc++을 추가해 주자
-lc++