Bonjour,
j’ai fini par avancer avec SwiftUi et Core Data mais, si je n’ai pas d’erreurs de compilation, quand j’affiche ma contentView, le débogueur affiche :
2022-05-20 13:59:55.859207+0200 BoatCare[53915:1067266] [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:0x60000299b2a0 UIView:0x14352d970.trailing == _UIBackButtonMaskView:0x14352d210.trailing (active)>",
"<NSLayoutConstraint:0x600002984190 'Mask_Trailing_Trailing' _UIBackButtonMaskView:0x14352d210.trailing == _UIButtonBarButton:0x143526890.trailing (active)>",
"<NSLayoutConstraint:0x6000029842d0 'MaskEV_Leading_BIB_Trailing' H:[_UIModernBarButton:0x143529320]-(0)-[UIView:0x14352d970] (active)>",
"<NSLayoutConstraint:0x6000029848c0 'UINav_static_button_horiz_position' _UIModernBarButton:0x143529320.leading == UILayoutGuide:0x6000033ff480'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002984910 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x143526890]-(6)-[UILayoutGuide:0x6000033ff3a0'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x600002999ea0 'UINavItemContentGuide-trailing' UILayoutGuide:0x6000033ff3a0'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x1435252c0.trailing (active)>",
"<NSLayoutConstraint:0x600002987b10 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x1435252c0.width == 0 (active)>",
"<NSLayoutConstraint:0x600002999b30 'UIView-leftMargin-guide-constraint' H:|-(8)-[UILayoutGuide:0x6000033ff480'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x1435252c0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000299b2a0 UIView:0x14352d970.trailing == _UIBackButtonMaskView:0x14352d210.trailing (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.
2022-05-20 13:59:55.859856+0200 BoatCare[53915:1067266] [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:0x60000299bc50 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x143529320]-(6)-[_UIModernBarButton:0x143526c70'Bateau'] (active)>",
"<NSLayoutConstraint:0x60000299bca0 'CB_Trailing_Trailing' _UIModernBarButton:0x143526c70'Bateau'.trailing <= _UIButtonBarButton:0x143526890.trailing (active)>",
"<NSLayoutConstraint:0x6000029848c0 'UINav_static_button_horiz_position' _UIModernBarButton:0x143529320.leading == UILayoutGuide:0x6000033ff480'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002984910 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x143526890]-(6)-[UILayoutGuide:0x6000033ff3a0'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x600002999ea0 'UINavItemContentGuide-trailing' UILayoutGuide:0x6000033ff3a0'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x1435252c0.trailing (active)>",
"<NSLayoutConstraint:0x600002987b10 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x1435252c0.width == 0 (active)>",
"<NSLayoutConstraint:0x600002999b30 'UIView-leftMargin-guide-constraint' H:|-(8)-[UILayoutGuide:0x6000033ff480'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x1435252c0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000299bc50 'BIB_Trailing_CB_Leading' H:[_UIModernBarButton:0x143529320]-(6)-[_UIModernBarButton:0x143526c70'Bateau'] (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.
2022-05-20 13:59:55.862770+0200 BoatCare[53915:1067266] [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:0x60000299bc00 'BIB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x143529320] (active, names: '|':_UIButtonBarButton:0x143526890 )>",
"<NSLayoutConstraint:0x6000029848c0 'UINav_static_button_horiz_position' _UIModernBarButton:0x143529320.leading == UILayoutGuide:0x6000033ff480'UIViewLayoutMarginsGuide'.leading (active)>",
"<NSLayoutConstraint:0x600002984910 'UINavItemContentGuide-leading' H:[_UIButtonBarButton:0x143526890]-(6)-[UILayoutGuide:0x6000033ff3a0'UINavigationBarItemContentLayoutGuide'] (active)>",
"<NSLayoutConstraint:0x600002999ea0 'UINavItemContentGuide-trailing' UILayoutGuide:0x6000033ff3a0'UINavigationBarItemContentLayoutGuide'.trailing == _UINavigationBarContentView:0x1435252c0.trailing (active)>",
"<NSLayoutConstraint:0x600002987b10 'UIView-Encapsulated-Layout-Width' _UINavigationBarContentView:0x1435252c0.width == 0 (active)>",
"<NSLayoutConstraint:0x600002999b30 'UIView-leftMargin-guide-constraint' H:|-(8)-[UILayoutGuide:0x6000033ff480'UIViewLayoutMarginsGuide'](LTR) (active, names: '|':_UINavigationBarContentView:0x1435252c0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000299bc00 'BIB_Leading_Leading' H:|-(0)-[_UIModernBarButton:0x143529320] (active, names: '|':_UIButtonBarButton:0x143526890 )>
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.
Le codede ma ContentView est classique:
import SwiftUI
struct BateauListScreen: View {
@Environment(\.managedObjectContext) var moc
@FetchRequest(sortDescriptors: [SortDescriptor(\.nom),]) var bateaux: FetchedResults<Bateau>
@State private var showingAddScreen = false
var body: some View {
NavigationView{
// liste des bateaux enregistés
List {
if bateaux.count > 0 {
ForEach(bateaux) { bateau in
NavigationLink {
DetailBateauView(bateau: bateau)
} label: {
HStack {
VStack(alignment: .leading) {
Text(bateau.nom ?? "Nom bateau inconnu")
.font(.headline)
}
}
}
}
.onDelete(perform: deleteBateau)
}else{
Text("Saisissez les caractéristiques de votre bateau en cliquant sur + ")
}
}
//Barre de navigation
.navigationTitle("Bateau")
.toolbar {
//Modifier données du Bateau
ToolbarItem(placement: .navigationBarLeading) {
EditButton()
}
//Bouton AJOUT D'UN BATEAU
ToolbarItem(placement: .navigationBarTrailing) {
Button {
showingAddScreen.toggle()
} label: {
Label("Add Bateau", systemImage: "plus")
}
}
}
//lien vers le formulaire de saisie nouveau bateau
.sheet(isPresented: $showingAddScreen) {
AddBateauScreen()
}
}
}
func deleteBateau(at offsets: IndexSet) {
for offset in offsets {
let bateau = bateaux[offset]
moc.delete(bateau)
}
try? moc.save()
}
}
struct BateauListScreen_Previews: PreviewProvider {
static var previews: some View {
BateauListScreen()
}
}
Quelqu’un voit-il la ou les contraintes qui génèrent le warning ci-dessus?
Merci de votre aide?
Je pense que tu as trop d’éléments dans ta barre de navigation et que ça ne rentre pas en largeur.
Essaie d’enlever le label Add Bateau
(j’adore la demi-traduction ) et ne garder que l’icône.
Ou alors tu ne mets pas de titre
Gagné! C’était cela.
Mais pourquoi pas de warning dans la compilation?
On ne peux pas contourner ces limites comme dans Form qui est limité à 10 champs mais ou l’on peut juxtaposer plusieurs section de moins de 10 champs… ce qui permet de contourner le problème.
Merci.
J’ai aussi une erreur système qui ma pourri la vie . Quand je valide la création d’un bateau sur le simulateur à l’intérieur de Xcode j’ai le warning suivant :
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: CAD27FE5-B515-4121-8732-C8B7A3540CBA
CrashReporter Key: 185D1B95-38F6-BC02-00E3-8ED4DE59F966
Hardware Model: MacBookPro18,3
Process: BoatCare [86784]
Path: /Users/USER/Library/Developer/Xcode/UserData/Previews/Simulator Devices/C6566A40-7A57-49EB-B7D1-2669114A5F76/data/Containers/Bundle/Application/566856DB-C0FA-410A-AF08-5103AB010A8B/BoatCare.app/BoatCare
Identifier: com.ob.BoatCare
Version: 1.0 (1)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd_sim [56556]
Coalition: com.apple.CoreSimulator.SimDevice.C6566A40-7A57-49EB-B7D1-2669114A5F76 [8805]
Responsible Process: SimulatorTrampoline [843]
Date/Time: 2022-05-21 10:16:47.1026 +0200
Launch Time: 2022-05-21 10:15:14.4856 +0200
OS Version: macOS 12.3.1 (21E258)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/olivierbaviere/Library/Developer/Xcode/DerivedData/BoatCare-dybzkxfvsupkovbfnqphijvpzogo/Build/Intermediates.noindex/Previews/BoatCare/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot//System/Library/PrivateFrameworks/PreviewsInjection.framework/PreviewsInjection DYLD_FRAMEWORK_PATH=/Users/olivierbaviere/Library/Developer/Xcode/DerivedData/BoatCare-dybzkxfvsupkovbfnqphijvpzogo/Build/Intermediates.noindex/Previews/BoatCare/Products/Debug-iphonesimulator
CoreSimulator 802.6.1 - Device: iPhone 12 (C6566A40-7A57-49EB-B7D1-2669114A5F76) - Runtime: iOS 15.5 (19F70) - DeviceType: iPhone 12
terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'An NSManagedObject of class 'Bateau' must have a valid NSEntityDescription.'
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/olivierbaviere/Library/Developer/Xcode/DerivedData/BoatCare-dybzkxfvsupkovbfnqphijvpzogo/Build/Intermediates.noindex/Previews/BoatCare/Products/Debug-iphonesimulator DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot//System/Library/PrivateFrameworks/PreviewsInjection.framework/PreviewsInjection DYLD_FRAMEWORK_PATH=/Users/olivierbaviere/Library/Developer/Xcode/DerivedData/BoatCare-dybzkxfvsupkovbfnqphijvpzogo/Build/Intermediates.noindex/Previews/BoatCare/Products/Debug-iphonesimulator
abort() called
Last Exception Backtrace:
0 CoreFoundation 0x1803f3d5c __exceptionPreprocess + 216
1 libobjc.A.dylib 0x18019814c objc_exception_throw + 56
2 CoreData 0x185860b40 -[NSManagedObject initWithEntity:insertIntoManagedObjectContext:] + 516
3 BoatCare 0x104d71f44 Bateau.init(entity:insertInto:) + 100
4 BoatCare 0x104d71fd4 @objc Bateau.init(entity:insertInto:) + 56
5 CoreData 0x185865720 -[NSManagedObject initWithContext:] + 272
6 BoatCare 0x104d5b514 @nonobjc NSManagedObject.init(context:) + 36
7 BoatCare 0x104d56568 NSManagedObject.__allocating_init(context:) + 44
8 BoatCare 0x104d55f28 closure #1 in closure #3 in closure #1 in closure #1 in closure #1 in AddBateauScreen.body.getter + 344 (AddBateauScreen.swift:75)
9 SwiftUI 0x1ba0405fc partial apply for implicit closure #2 in implicit closure #1 in DefaultListButtonStyle.ListButton.body.getter + 20
10 SwiftUI 0x1b9e86d30 thunk for @escaping @callee_guaranteed () -> () + 20
11 SwiftUI 0x1b9fa66d8 specialized closure #2 in PlatformItemList.containerSelectionBehavior.getter + 56
12 SwiftUI 0x1ba5a5f3c UITableViewListCoordinator.tableView(_:didSelectRowAt:) + 412
13 SwiftUI 0x1ba5a668c @objc UITableViewListCoordinator.tableView(_:didSelectRowAt:) + 60
14 UIKitCore 0x184fb4854 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:isCellMultiSelect:deselectPrevious:] + 1620
15 UIKitCore 0x184fb41e8 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 112
16 UIKitCore 0x184fb4ad0 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 316
17 UIKitCore 0x185294438 -[_UIAfterCACommitBlock run] + 64
18 UIKitCore 0x18529490c -[_UIAfterCACommitQueue flush] + 188
19 UIKitCore 0x184d97a0c _runAfterCACommitDeferredBlocks + 640
20 UIKitCore 0x184d87430 _cleanUpAfterCAFlushAndRunDeferredBlocks + 128
21 UIKitCore 0x184dba204 _afterCACommitHandler + 76
22 CoreFoundation 0x180360f10 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
23 CoreFoundation 0x18035b5a4 __CFRunLoopDoObservers + 572
24 CoreFoundation 0x18035baf8 __CFRunLoopRun + 968
25 CoreFoundation 0x18035b218 CFRunLoopRunSpecific + 572
26 GraphicsServices 0x18c25f60c GSEventRunModal + 160
27 UIKitCore 0x184d88a98 -[UIApplication _run] + 992
28 UIKitCore 0x184d8d634 UIApplicationMain + 112
29 SwiftUI 0x1ba3e9294 closure #1 in KitRendererCommon(_:) + 160
30 SwiftUI 0x1ba3e91f0 runApp<A>(_:) + 164
31 SwiftUI 0x1b9e1c680 static App.main() + 80
32 BoatCare 0x104d714c8 static BoatDashboardApp.$main() + 40
33 BoatCare 0x104d71690 main + 12
34 dyld_sim 0x105115cd8 start_sim + 20
35 dyld 0x105065088 start + 516
36 ??? 0x4e29800000000000 ???
Kernel Triage:
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
VM - pmap_enter failed with resource shortage
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x1cc05de60 __pthread_kill + 8
1 libsystem_pthread.dylib 0x1cc0b13c0 pthread_kill + 256
2 libsystem_c.dylib 0x1801023f4 abort + 124
3 libc++abi.dylib 0x18023feb4 abort_message + 128
4 libc++abi.dylib 0x18023066c demangling_terminate_handler() + 300
5 libobjc.A.dylib 0x18017aea0 _objc_terminate() + 124
6 libc++abi.dylib 0x18023f364 std::__terminate(void (*)()) + 16
7 libc++abi.dylib 0x180241dc0 __cxa_rethrow + 144
8 libobjc.A.dylib 0x1801982e0 objc_exception_rethrow + 40
9 CoreFoundation 0x18035b304 CFRunLoopRunSpecific + 808
10 GraphicsServices 0x18c25f60c GSEventRunModal + 160
11 UIKitCore 0x184d88a98 -[UIApplication _run] + 992
12 UIKitCore 0x184d8d634 UIApplicationMain + 112
13 SwiftUI 0x1ba3e9294 closure #1 in KitRendererCommon(_:) + 160
14 SwiftUI 0x1ba3e91f0 runApp<A>(_:) + 164
15 SwiftUI 0x1b9e1c680 static App.main() + 80
16 BoatCare 0x104d714c8 static BoatDashboardApp.$main() + 40 (BoatCareApp.swift:10)
17 BoatCare 0x104d71690 main + 12
18 dyld_sim 0x105115cd8 start_sim + 20
19 dyld 0x105065088 start + 516
Thread 1:: com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1cc055fcc mach_msg_trap + 8
1 libsystem_kernel.dylib 0x1cc056430 mach_msg + 72
2 CoreFoundation 0x18036176c __CFRunLoopServiceMachPort + 368
3 CoreFoundation 0x18035bb78 __CFRunLoopRun + 1096
4 CoreFoundation 0x18035b218 CFRunLoopRunSpecific + 572
5 Foundation 0x180827828 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232
6 Foundation 0x180827ae0 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88
7 UIKitCore 0x184e3f01c -[UIEventFetcher threadMain] + 472
8 Foundation 0x180851578 __NSThread__start__ + 792
9 libsystem_pthread.dylib 0x1cc0b16c8 _pthread_start + 116
10 libsystem_pthread.dylib 0x1cc0ac910 thread_start + 8
Thread 2:
0 libsystem_pthread.dylib 0x1cc0ac8fc start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x1cc0ac8fc start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000180243031 x5: 0x000000016b0bd3b0 x6: 0x000000000000006e x7: 0x0000000000000910
x8: 0x00000001050d8580 x9: 0x3a35426dd1b24ab2 x10: 0x0000000000000200 x11: 0x000000000000000b
x12: 0x0000000000000000 x13: 0x000000003760f800 x14: 0x0000000000000010 x15: 0x0000000000000000
x16: 0x0000000000000148 x17: 0x0000000000000002 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x00000001050d8580 x21: 0x0000000000000103 x22: 0x00000001050d8660 x23: 0x0000600002280690
x24: 0x0000000000000000 x25: 0x0000000000000001 x26: 0x0000000eb1e31100 x27: 0x00000001da9cf000
x28: 0x0000000000000001 fp: 0x000000016b0bd320 lr: 0x00000001cc0b13c0
sp: 0x000000016b0bd300 pc: 0x00000001cc05de60 cpsr: 0x40001000
far: 0x000000013018cc08 esr: 0x56000080 Address size fault
Binary Images:
0x1cc055000 - 0x1cc08afff libsystem_kernel.dylib (*) <8678b4ed-ec14-3851-8da2-ae9902bbd5fc> /usr/lib/system/libsystem_kernel.dylib
0x1cc0aa000 - 0x1cc0b6fff libsystem_pthread.dylib (*) <9507407a-b251-3158-bc81-8cabbebe34de> /usr/lib/system/libsystem_pthread.dylib
0x18008d000 - 0x18010afff libsystem_c.dylib (*) <d02ea88f-ad2d-354c-85eb-14cf4b6b1bb6> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/libsystem_c.dylib
0x18022f000 - 0x180245fff libc++abi.dylib (*) <60908b1e-a8d3-3ecb-b51f-5ba5ca88d367> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libc++abi.dylib
0x180176000 - 0x1801a7fff libobjc.A.dylib (*) <925dbcc5-c31e-336d-aede-6fbce41d5415> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib
0x1802dc000 - 0x18068bfff com.apple.CoreFoundation (6.9) <673c8a21-98bf-38f0-a038-55ab0de23142> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
0x18c25c000 - 0x18c264fff com.apple.GraphicsServices (1.0) <9334a354-2177-30b1-b919-4fecf59fef22> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices
0x18417b000 - 0x18560dfff com.apple.UIKitCore (1.0) <7bbc9f13-df06-3c47-9a63-8483442bdfcb> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore
0x1b9a16000 - 0x1ba821fff com.apple.SwiftUI (3.5.2) <230fac38-33f4-348b-b676-e5d65157ca8c> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SwiftUI.framework/SwiftUI
0x104d40000 - 0x104d77fff com.ob.BoatCare (1.0) <2586a644-62fb-3fcd-b857-5f9a13c5b6f5> /Users/USER/Library/Developer/Xcode/UserData/Previews/Simulator Devices/C6566A40-7A57-49EB-B7D1-2669114A5F76/data/Containers/Bundle/Application/566856DB-C0FA-410A-AF08-5103AB010A8B/BoatCare.app/BoatCare
0x105114000 - 0x10514ffff dyld_sim (*) <67298116-bb18-3438-b22e-8d2b9d4618e9> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
0x105060000 - 0x1050bffff dyld (*) <fbb89662-e6f2-3434-b542-f75185ac5e74> /usr/lib/dyld
0x180700000 - 0x1809c3fff com.apple.Foundation (6.9) <ded71e05-af0a-3172-b09e-7f070ec7d4aa> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework/Foundation
0x1857c4000 - 0x185b16fff com.apple.CoreData (120) <e2b6ca74-5362-3e3a-9972-1123791f2bb4> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CoreData.framework/CoreData
0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???
EOF
....
Si je suis à lexterieur de xCode, directement dans Simulator ou sur l’appli transférée sur mon iPhone, tout va bien J’aimerai bien me débarrasser de cette erreur système…
Parce que ton code est juste et peut très bien fonctionner…sur un écran suffisamment grand.
Si tu executes ton app sur un iPad par exemple ça devrait fonctionner.
Il y aussi plusieurs autres paramètres qui sont liés au contexte d’exécution et inconnus au moment de la compilation : taille de la police, traduction des textes dans d’autres langues, mode multitache si tu es sur un iPad, etc.