06-30 00:00
Notice
Recent Posts
Recent Comments
06-30 00:00
«   2024/06   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Archives
Today
Total
관리 메뉴

pear

[iOS]3rd part framework 사용 App 만들기 본문

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++

Other Linker Flags