Skip to content

Commit

Permalink
[fix] #13 CoreData 엔티티 설정을 codegen이 자동으로 안되는 옵션으로 변경
Browse files Browse the repository at this point in the history
codegen이 자동으로 되어버려서 class가 생성되어서 이를 방지하기 위해서 옵션 변경하고 캐시도 지웠습니다.
  • Loading branch information
green-yoon87 committed Nov 6, 2024
1 parent b9d8c5f commit 4f00801
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="23231" systemVersion="23G93" minimumToolsVersion="Automatic" sourceLanguage="Swift" usedWithSwiftData="YES" userDefinedModelVersionIdentifier="">
<entity name="Dog" representedClassName="Dog" syncable="YES" codeGenerationType="class">
<entity name="Dog" representedClassName="Dog" syncable="YES">
<attribute name="keyword" optional="YES" attributeType="Transformable" customClassName="[String] "/>
<attribute name="name" optional="YES" attributeType="String"/>
<attribute name="size" optional="YES" attributeType="String"/>
</entity>
<entity name="User" representedClassName="User" syncable="YES" codeGenerationType="class">
<entity name="User" representedClassName="User" syncable="YES">
<attribute name="nickname" optional="YES" attributeType="String"/>
<attribute name="profileImage" optional="YES" attributeType="Binary"/>
<relationship name="dog" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Dog"/>
Expand Down
12 changes: 8 additions & 4 deletions SniffMeet/SniffMeet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
/* Begin PBXBuildFile section */
32D5D2102CDB67F0000A7628 /* DatabaseManageable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32D5D20F2CDB67D1000A7628 /* DatabaseManageable.swift */; };
32D5D2132CDB6A67000A7628 /* SniffMeet.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 32D5D2112CDB6A67000A7628 /* SniffMeet.xcdatamodeld */; };
32D5D2552CDB6F48000A7628 /* User.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32D5D2542CDB6F48000A7628 /* User.swift */; };
32D5D2572CDB70BE000A7628 /* User.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32D5D2562CDB70B9000A7628 /* User.swift */; };
32D5D2592CDB730A000A7628 /* Dog.swift in Sources */ = {isa = PBXBuildFile; fileRef = 32D5D2582CDB7308000A7628 /* Dog.swift */; };
FD3A033F2CD8CF460047B7ED /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FD3A03392CD8CF460047B7ED /* Assets.xcassets */; };
FD3A03412CD8CF460047B7ED /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FD3A033C2CD8CF460047B7ED /* LaunchScreen.storyboard */; };
FD3A03422CD8CF460047B7ED /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD3A03382CD8CF460047B7ED /* AppDelegate.swift */; };
Expand All @@ -19,7 +20,8 @@
/* Begin PBXFileReference section */
32D5D20F2CDB67D1000A7628 /* DatabaseManageable.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DatabaseManageable.swift; sourceTree = "<group>"; };
32D5D2122CDB6A67000A7628 /* SniffMeet.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = SniffMeet.xcdatamodel; sourceTree = "<group>"; };
32D5D2542CDB6F48000A7628 /* User.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = User.swift; path = /User.swift; sourceTree = "<absolute>"; };
32D5D2562CDB70B9000A7628 /* User.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = User.swift; sourceTree = "<group>"; };
32D5D2582CDB7308000A7628 /* Dog.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Dog.swift; sourceTree = "<group>"; };
FD3A03202CD8CDE50047B7ED /* SniffMeet.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SniffMeet.app; sourceTree = BUILT_PRODUCTS_DIR; };
FD3A03382CD8CF460047B7ED /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
FD3A03392CD8CF460047B7ED /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
Expand Down Expand Up @@ -488,7 +490,8 @@
FDA491652CDA7BDF00A36FB0 /* Entity */ = {
isa = PBXGroup;
children = (
32D5D2542CDB6F48000A7628 /* User.swift */,
32D5D2582CDB7308000A7628 /* Dog.swift */,
32D5D2562CDB70B9000A7628 /* User.swift */,
);
path = Entity;
sourceTree = "<group>";
Expand Down Expand Up @@ -885,8 +888,9 @@
files = (
FD3A03422CD8CF460047B7ED /* AppDelegate.swift in Sources */,
32D5D2102CDB67F0000A7628 /* DatabaseManageable.swift in Sources */,
32D5D2592CDB730A000A7628 /* Dog.swift in Sources */,
32D5D2132CDB6A67000A7628 /* SniffMeet.xcdatamodeld in Sources */,
32D5D2552CDB6F48000A7628 /* User.swift in Sources */,
32D5D2572CDB70BE000A7628 /* User.swift in Sources */,
FD3A03432CD8CF460047B7ED /* SceneDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down

0 comments on commit 4f00801

Please sign in to comment.