Post

Replies

Boosts

Views

Activity

Carplay Unable to simultaneously satisfy constraints.
During starting Carplay app (checked with different apps) simulation I have error in Xcode about constraints. May be there is bug in the library. For example, app CoastalRoads have this output (Tested in Xcode 14.3, MacBook Pro M1): 2023-05-17 12:41:01.914169+0300 CoastalRoads[3274:63652] [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. ( "<NSAutoresizingMaskLayoutConstraint:0x6000021f4640 h=--- v=--- CPWindow:0x133514820.height == 240 (active)>", "<NSLayoutConstraint:0x6000021ed270 CPWindow:0x133514820.top == UILayoutGuide:0x600003ba8ee0''.top - 44 (active)>", "<NSLayoutConstraint:0x6000021ed2c0 V:[UILayoutGuide:0x600003ba8ee0'']-(240)-| (active, names: '|':CPWindow:0x133514820 )>" ) Will attempt to recover by breaking constraint <NSLayoutConstraint:0x6000021ed270 CPWindow:0x133514820.top == UILayoutGuide:0x600003ba8ee0''.top - 44 (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.
0
0
617
Jun ’23
Touchscreen gestures in CarPlay aren't recognized in the app
Touchscreen gestures in CarPlay aren't recognized in the app (delegate CPMapTemplateDelegate functions aren't called). Tried also in the Coastal Roads demo app to add test functions to check that pan functions are called - the same: func mapTemplateDidBeginPanGesture(_ mapTemplate: CPMapTemplate) { MemoryLogger.shared.appendEvent("Did begin pan gesture.") } func mapTemplate(_ mapTemplate: CPMapTemplate, panBeganWith direction: CPMapTemplate.PanDirection) { MemoryLogger.shared.appendEvent("Did begin pan gesture with direction \(direction.rawValue).") } Note: buttons (on carplay app) are working when pressing on them. Also, the desktop of carplay can be panned (by swipe gesture). Using Xcode 14.3, MacBook pro M1
2
0
528
Jun ’23