@@ -15,7 +15,7 @@ import Foundation
15
15
extension XCDebugger {
16
16
17
17
/// The collection of breakpoints for the project for the given user
18
- public class Breakpoints {
18
+ public class Breakpoints : NSObject {
19
19
20
20
public enum Error : Swift . Error {
21
21
case schemeDocumentMissingRootNode
@@ -26,7 +26,7 @@ extension XCDebugger {
26
26
}
27
27
28
28
/// An action to perform on a breakpoint
29
- public class BreakpointAction {
29
+ public class BreakpointAction : NSObject {
30
30
31
31
/// The breakpoint action type
32
32
///
@@ -107,6 +107,7 @@ extension XCDebugger {
107
107
/// - Parameter actionType: The action type of this acion
108
108
public init ( actionType: ActionType ) {
109
109
self . actionType = actionType
110
+ super. init ( )
110
111
}
111
112
112
113
/// Decode the breakpoint action from the given xml element
@@ -117,6 +118,7 @@ extension XCDebugger {
117
118
throw Error . attributeNotFound ( attribute: " ActionExtensionID " , path: element. xPath)
118
119
}
119
120
self . actionType = ActionType ( rawValue: atNode. stringValue!)
121
+ super. init ( )
120
122
}
121
123
122
124
/// Encodes the given action into an XMLElement
@@ -391,7 +393,7 @@ extension XCDebugger {
391
393
}
392
394
393
395
/// A project breakpoint
394
- public class Breakpoint {
396
+ public class Breakpoint : NSObject {
395
397
/// The type of breakpoint
396
398
///
397
399
/// - fileBreakPoint: A file breakpoint
@@ -441,6 +443,7 @@ extension XCDebugger {
441
443
public let breakpointType : BreakpointType
442
444
public init ( breakpointType: BreakpointType ) {
443
445
self . breakpointType = breakpointType
446
+ super. init ( )
444
447
}
445
448
446
449
/// Decode the breakpoint from the given xml element
@@ -451,6 +454,7 @@ extension XCDebugger {
451
454
throw Error . attributeNotFound ( attribute: " BreakpointExtensionID " , path: element. xPath)
452
455
}
453
456
self . breakpointType = BreakpointType ( rawValue: atNode. stringValue!)
457
+ super. init ( )
454
458
}
455
459
456
460
/// Encodes the given breakpoint into an XMLElement
@@ -592,10 +596,11 @@ extension XCDebugger {
592
596
593
597
594
598
/// Create new empty breakpoints list
595
- public init ( ) {
599
+ public override init ( ) {
596
600
self . type = 1
597
601
self . version = 2.0
598
602
self . breakpoints = [ ]
603
+ super. init ( )
599
604
}
600
605
601
606
/// Create new breakpoints list from the xml data
0 commit comments