코코아팟을 설치한 뒤, sqlite도 함께 설치.
코코아팟을 설치한 김에 겸사겸사 로그관련 라이브러리도 함께 설치.
하지만 db를 오픈해 값을 넣으려하자 에러가 발생.
https://github.com/stephencelis/SQLite.swift
https://stackoverflow.com/questions/34702312/why-do-i-get-unable-to-open-database-file
bundle에 추가한 db를 Document영역에 복붙을 해온 뒤 사용하여야 함. bundle에 들어있는 db자체에 접근해 사용하는 것이 막혀있음.
'Programming > Todo(App)' 카테고리의 다른 글
-3- cocoapod log 연동 (0) | 2020.11.14 |
---|---|
-1- swift에서는 pch가 없다. 싱글톤으로! (0) | 2020.10.24 |