Hi Keegan,
thanks for responding. After reading the first part of the Apple tutorial https://developer.apple.com/documentation/coredata/setting_up_a_core_data_stack , I figured out the error with the "lazy var persistentContainer… " The RW Tutorial says “Now, add the following at the end of SceneDelegate”. But you really mean add it the class and not the file right? So I suggest more precision in the English.
FWIW, Apple make this declaration in the AppDelegate. I’m not sure if this makes a difference if any but I’ll go with the Apple way when I implement.
The compiler messages from Xcode 11.5 before I make any of the modifications are below. They look like they’re related to layout issues but it would be nice if they weren’t there. While I’m new to Swift and RW none of the other RW tutorials I’ve done have issues like this. These messages and the difference between the RW tutorial and Apple’s documentation erode confidence.
Thanks
Richard
2020-05-26 17:20:32.983008+1000 FaveFlicks[6798:2526252] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600003df5d80> F8BB1C28-BAE8-11D6-9C31-00039315CD46
2020-05-26 17:20:41.049761+1000 FaveFlicks[6798:2526041] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don’t want.
Try this:
(1) look at each constraint and try to figure out which you don’t expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x600001e01540 ‘assistantHeight’ TUISystemInputAssistantView:0x7f886be1a300.height == 44 (active)>",
"<NSLayoutConstraint:0x600001e14d20 ‘assistantView.bottom’ TUISystemInputAssistantView:0x7f886be1a300.bottom == _UIKBCompatInputView:0x7f886bf5b0f0.top (active)>",
"<NSLayoutConstraint:0x600001e14cd0 ‘assistantView.top’ V:|-(0)-[TUISystemInputAssistantView:0x7f886be1a300] (active, names: ‘|’:UIInputSetHostView:0x7f886bf65dc0 )>",
"<NSLayoutConstraint:0x600001e0db30 ‘inputView.top’ V:|-(0)-[_UIKBCompatInputView:0x7f886bf5b0f0] (active, names: ‘|’:UIInputSetHostView:0x7f886bf65dc0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x600001e14d20 ‘assistantView.bottom’ TUISystemInputAssistantView:0x7f886be1a300.bottom == _UIKBCompatInputView:0x7f886bf5b0f0.top (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
2020-05-26 17:23:24.158389+1000 FaveFlicks[6798:2529008] -[_UIRemoteKeyboards proxy]_block_invoke Failed to access remote service: Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service on pid 6677 named com.apple.UIKit.KeyboardManagement.hosted was invalidated from this process.” UserInfo={NSDebugDescription=The connection to service on pid 6677 named com.apple.UIKit.KeyboardManagement.hosted was invalidated from this process.}
2020-05-26 17:23:24.173149+1000 FaveFlicks[6798:2526041] [Snapshotting] Snapshotting a view (0x7f886d840000, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES.
2020-05-26 17:23:46.565002+1000 FaveFlicks[6798:2526041] [Snapshotting] Snapshotting a view (0x7f886c010e00, UIKeyboardImpl) that has not been rendered at least once requires afterScreenUpdates:YES.
Message from debugger: Terminated due to signal 9