error13 lottie-ios dataCorrupted error Lottie를 cocoapod를 이용해서 설치하고 사용하려는데, 특정 json 파일 parsing 시에 dataCorrupted error 가 발생했습니다. Swift.DecodingError.Context Cannot initialize TextJustification from invalid Int value 6... 대략 이런 종류의 에러였습니다. 에러 코드를 검색해봐도 시원한 답변이 나오지 않아서 고민하던 차에, version을 낮추어 보라는 이야기를 보게되었습니다. Lottie 설치 당시에는 3.2.3 버전으로 설치가 되었던 것을 2.5.3으로 낮추어 주었더니 해결이 되었습니다. JSON 자체를 수정할 수도 있다지만, 너무 방대한 데이터이기도 하고 어떤 부분을 어떻게 고쳐야할 지 몰라서 그냥 버전.. 2022. 12. 8. Cannot find AF in scope - Alamofire 관련 에러 Cocoapods를 사용해서 Alamofire를 install 했지만, XCode에서 AF를 사용하려고 할 때 아래와 같은 에러가 발생했습니다. Cannot find AF in scope 다행히 StackOverFlow에서 제안한 방법이 해결에 도움을 주었습니다. XCode에서 Product -> Scheme -> Manage Schemes 으로 들어간 다음, Alamofire 항목을 true로 바꾸어 주니 해결되었습니다. 자세한 내용이나 해당 에러의 다른 해결법은 아래 링크를 참고하시면 됩니다! https://stackoverflow.com/questions/37385275/xcode-cant-find-alamofire-error-no-such-module-alamofire Xcode can't fin.. 2022. 11. 10. An SSL error has occurred and a secure connection to the server cannot be made - 해결방법 공공데이터 API를 사용해서 data parsing을 하려는데 아래와 같은 에러가 발생했습니다. SSL에러라고 하는데, 해당 에러에 대해 한 번 찾아보니 이렇게 설명이 되어 있었습니다. An SSL certificate error occurs when a web browser can’t verify the SSL certificate installed on a site. Rather than connect users to your website, the browser will display an error message, warning users that the site may be insecure. 웹 브라우저가 사이트에 등록된 SSL 인증서를 verify할 수 없을 때 발생하는 에러입니다. 해당 사이.. 2022. 10. 9. QueryDsl-required a bean of type 'com.querydsl.jpa.impl.JPAQueryFactory' 해결방법 QueryDsl을 적용하고 애플리케이션 run을 하는데, "required a bean of type 'com.querydsl.jpa.impl.JPAQueryFactory' that could not be found." 라는 에러가 발생했습니다. bean 등록 관련 에러이기에 @Component annotation 여부를 확인했고, 다 제대로 애노테이션이 붙어있었기에 어떻게 해결하면 좋을지 알기 어려웠습니다. 그러던 중에 JPA configuration을 따로 설정해주어야 한다는 글을 읽게 되었고 해당 방식으로 해결하였습니다. package com.courseori.server.config; import com.querydsl.jpa.impl.JPAQueryFactory; import org.spring.. 2022. 10. 8. Parameter 2 of constructor in ... that could not be found error Controller test를 하려는데 자꾸만 아래와 같은 에러로 인해 진행이 되지 않았습니다. @Component(@Service, @Repository 등 포함) annotation을 붙이지 않아 생기는 에러라고 하여 해당하는 클래스들을 다 확인했지만 annotation은 다 잘 설정되어 있었습니다. 그러다가 결국 알게된 원인은 해당 class를 @MockBean으로 등록(?)하지 않았기 때문이었습니다. 🥹 사실 문제를 일으켰던 bean들은 test code에서는 명시적으로 사용되지 않았기 때문에 @MockBean으로 필요할 것이라고 전혀 생각지 못하였습니다. 그런데 그 친구들을 등록해주니 해당 문제에서 벗어날 수 있었습니다. ㅎㅎ 혹시 동일한 문제로 고통받고 계신분이 있으시다면 도움이 되었으면 좋겠.. 2022. 9. 27. Hibernate에러: object references an unsaved transient instance - save the transient instance before flushing 두번 정도 마주친적이 있는 object references an unsaved transient instance - save the transient instance before flushing 에러인데, 어떤 에러이고 어떻게 해결할 수 있는지 알아보려고 합니다. org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.TransientPropertyValueException: //(1) object references an unsaved transient instance - save the transient instance before flushing : com.codestates.order.entity.OrderCoffee.o.. 2022. 7. 14. 이전 1 2 3 다음 반응형