Programming/Todo(App)
-2- sqlite.swift 연동
몽롱한상태
2020. 10. 28. 15:50
코코아팟을 설치한 뒤, 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자체에 접근해 사용하는 것이 막혀있음.