cozzin
코찐 기술 블로그
cozzin
전체 방문자
오늘
어제
  • 분류 전체보기
    • Kotlin
    • 백엔드
    • iOS
      • Swift
      • SwiftUI
      • Combine
      • Architecture
    • 개발환경
    • 세미나
    • 생각정리
    • 스터디
    • CS
      • Refactoring
      • OS

블로그 메뉴

  • 홈
  • 태그
  • 방명록
  • LinkedIn
  • 강의

공지사항

인기 글

태그

  • XCode
  • 테스트
  • 운영체제
  • CS
  • 리팩토링
  • multicast
  • 워닝제거
  • 디자인패턴
  • 컴퓨터공학
  • Combine
  • slide-over
  • SwiftUI
  • WWDC
  • Ribs
  • os
  • Warning
  • darkmode
  • Swift
  • ios
  • WWDC21

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
cozzin

코찐 기술 블로그

[iOS] 이슈 해결: CloudKit integration does not support unique constraints
iOS

[iOS] 이슈 해결: CloudKit integration does not support unique constraints

2021. 1. 23. 11:51
반응형

안녕하세요 코찐입니다.

어제 개인앱으로 만들고 있는 '행복한 사전'에 메일이 들어왔습니다.

오랜만에 앱을 수정하고자 Xcode에서 앱을 켰는데 에러가 뜨네요ㅎ;;

이번 글에서는 CloudKit integration does not support unique constraints. 이 에러에 대해서 한번 알아보겠습니다.

Thread 2: Fatal error: Unresolved error Error Domain=NSCocoaErrorDomain Code=134060 "코어 데이터에서 오류가 발생했습니다." UserInfo={NSLocalizedFailureReason=CloudKit integration does not support unique constraints. The following entities are constrained:
WordMO: title}, ["NSLocalizedFailureReason": CloudKit integration does not support unique constraints. The following entities are constrained:
WordMO: title]

 

CoreData Model에 constraint를 걸어둔게 문제가 된 것 같습니다...

 

 

constraints에서 title을 제거해주면 에러가 없이 작동합니다.

CloudKit 에서 unique constarint를 지원하지 않아서 문제가 생기는 듯한데....

그러면 데이터를 저장할 때 중복된 데이터가 있는지 개발자가 스스로 검사하고 저장해 주도록 하겠습니다.

 

더 좋은 방법을 발견하면 또 기록하도록 하겠습니다.

반응형
저작자표시 (새창열림)

'iOS' 카테고리의 다른 글

워닝 제거하기: Implicit import of bridging header '{YourApp}-Bridging-Header.h' via module '{YourApp}' is deprecated and will be removed in a later version of Swift  (0) 2021.01.29
[iOS] grouped style tableView에서 위아래 여백 제거하기  (0) 2021.01.28
[iOS] UITextField placeholder color 변경하기  (0) 2021.01.20
[iOS] overrideUserInterfaceStyle 부분 적용하기  (0) 2021.01.20
Xcode 파일별 빌드 속도 측정  (0) 2021.01.04
    'iOS' 카테고리의 다른 글
    • 워닝 제거하기: Implicit import of bridging header '{YourApp}-Bridging-Header.h' via module '{YourApp}' is deprecated and will be removed in a later version of Swift
    • [iOS] grouped style tableView에서 위아래 여백 제거하기
    • [iOS] UITextField placeholder color 변경하기
    • [iOS] overrideUserInterfaceStyle 부분 적용하기
    cozzin
    cozzin
    Software Engineer

    티스토리툴바