Product > Scheme > Edit Scheme

Test> Gether coverage for 체크

 

테스트 수행 후,

Show the Report navigator에서 Coverage 확인 가능

'기타' 카테고리의 다른 글

[Realm] 하위 class 추가  (0) 2023.05.24
[Git] gitignore  (0) 2023.03.26
[Xcode] Key Bindings  (0) 2023.02.14
[Xcode] 시뮬레이터 재설정  (0) 2023.02.13
Realm 마이그레이션  (0) 2023.02.09

 

'기타' 카테고리의 다른 글

[Git] gitignore  (0) 2023.03.26
[Xcode] Test Coverag  (0) 2023.02.21
[Xcode] 시뮬레이터 재설정  (0) 2023.02.13
Realm 마이그레이션  (0) 2023.02.09
[mac] 소스트리 - git 레포지토리 연결  (0) 2023.01.11

 .../Developer/CoreSimulator 폴더 삭제 후 시뮬레이터 실행시 오류

Unable to boot device because it cannot be located on disk.

 

 

터미널 명령 실행

sudo xcrun simctl erase all

 

+시뮬레이터 삭제 후 추가

'기타' 카테고리의 다른 글

[Xcode] Test Coverag  (0) 2023.02.21
[Xcode] Key Bindings  (0) 2023.02.14
Realm 마이그레이션  (0) 2023.02.09
[mac] 소스트리 - git 레포지토리 연결  (0) 2023.01.11
sqlserver on mac  (0) 2022.09.26

 

 

Change an Object Model - Swift SDK — Realm

Avoid nesting or otherwise skipping if (oldSchemaVersion < X) statements in migration blocks. This ensures that all updates can be applied in the correct order, no matter which schema version a client starts from. The goal is to define migration logic whic

www.mongodb.com

 

 

//(수정 전)
//Item.title: String
//Item.color: String
//(수정 후)
//Item.title: Title
//Title.text: String
//Title.color: String
                
let config = Realm.Configuration(
    fileURL: realmURL,
    schemaVersion: 2,		//스키마 수정 후 +1
    migrationBlock: {migration, oldSchemaVersion in
        if oldSchemaVersion < 2{    //마지막으로 실행된 스키마 버전이 새로운 스키마보다 낮으면 실행
            migration.enumerateObjects(ofType: Item.className()){ oldObject, newObject in
                let tempTitle = Title()
                tempTitle.text = oldObject?["title"] as? String ?? Title().text
                tempTitle.color = oldObject?["titleColor"] as? String ?? Title().color

                newObject?["title"] = tempTitle
            }
        }
    },
    objectTypes: [Item.self, Title.self])

Realm.Configuration.defaultConfiguration = config

 

'기타' 카테고리의 다른 글

[Xcode] Key Bindings  (0) 2023.02.14
[Xcode] 시뮬레이터 재설정  (0) 2023.02.13
[mac] 소스트리 - git 레포지토리 연결  (0) 2023.01.11
sqlserver on mac  (0) 2022.09.26
[Git] 명령어 모음  (0) 2022.08.08

소스트리에서 바로 "원격저장소 생성"하거나, 로컬 저장소에서 "원격으로 발행"하게 되면 오류가 난다.

 

 

개인계정에서는 안되는건지...? 문서 보면서 별 짓을 따라해도 다 안됨..

로컬저장소를 연결하는 경우, 깃에서 먼저 레포지토리를 추가한 다음에 경로를 연결하면 이후 기능은 사용 되는 것 같음..

 

 

로컬저장소에서 설정 > 깃에서 생성만 해놓은 레포지토리 경로를 추가한다.

 

 

 

 

그럼 푸시할때 저장소 선택이 됩니다..

 

 

 

 

'기타' 카테고리의 다른 글

[Xcode] Key Bindings  (0) 2023.02.14
[Xcode] 시뮬레이터 재설정  (0) 2023.02.13
Realm 마이그레이션  (0) 2023.02.09
sqlserver on mac  (0) 2022.09.26
[Git] 명령어 모음  (0) 2022.08.08

+ Recent posts