<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Swiftdata on iOS 개발 기록</title><link>https://leetaek.github.io/tags/swiftdata/</link><description>Recent content in Swiftdata on iOS 개발 기록</description><image><title>iOS 개발 기록</title><url>https://leetaek.github.io/images/og-default.png</url><link>https://leetaek.github.io/images/og-default.png</link></image><generator>Hugo -- 0.170.1</generator><language>ko-kr</language><lastBuildDate>Wed, 02 Oct 2024 14:45:12 +0900</lastBuildDate><atom:link href="https://leetaek.github.io/tags/swiftdata/index.xml" rel="self" type="application/rss+xml"/><item><title>[SwiftData] iOS18이상에서 ModelContext.reset 호출로 인해 나타나는 런타임 오류 (TCA+SwiftData)</title><link>https://leetaek.github.io/posts/2024-10-02-swiftdata-modelcontext-reset/</link><pubDate>Wed, 02 Oct 2024 14:45:12 +0900</pubDate><guid>https://leetaek.github.io/posts/2024-10-02-swiftdata-modelcontext-reset/</guid><description>&lt;p&gt;&lt;img loading="lazy" src="https://leetaek.github.io/images/tistory/85/01.webp"&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Fatal error: This model instance was destroyed by calling ModelContext.reset and is no longer usable.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h4&gt;&lt;/h4&gt;
&lt;h4&gt;&lt;/h4&gt;
&lt;h4 id="발생-상황"&gt;발생 상황&lt;/h4&gt;
&lt;p&gt;iPadOS18 이상으로 업데이트하니 갑자기 사이드 프로젝트 앱에서 다음과 같은 에러와 함께 강제 종료가 되기 시작했다.&lt;/p&gt;
&lt;p&gt;iOS17까지는 잘 돌아가던 코드가 18부터 오류가 발생하기 시작한 것.&lt;/p&gt;</description></item></channel></rss>