0

메시지라는 핵심 데이터 생성 클래스가 있습니다. 메시지에는 Swift에서 어떤 이유로 액세스 할 수없는 메시지 속성이 있습니다.Swift 생성 된 헤더 누락 Objective-C 속성

당신은 내가 주위를 파고시 메시지 속성 In a Swift extension of Message I'm unable to access the message property

에 액세스 할 수 없습니다 해요 메시지의 신속한 확장에서 헤더 파일 You can clearly see the message property here in the header file

여기에 메시지 속성을 명확하게 볼 수 있습니다

더 나는 것을 발견 재산도 메시지 + CoreDataProperties.h

Upon digging around further I found that the property doesn't even exist in the corresponding generated Swift file for Message+CoreDataProperties.h

에 해당하는 생성 스위프트 파일에 존재하지 않는

누구나 이런 일이 일어나는 이유와 해결 방법을 설명 할 수 있습니까?

답변

0

메시지 유형을 정의하지 않으며 데이터 유형이며 초기화합니다.

+0

유형은 objective-c 헤더에 정의되어 있습니다. 첫 번째 스크린 샷에서 볼 수 있습니다. '@property (nullable, nonatomic, retain) NSString * message' –