Hi,
I have been testing an Apple Watch only app on simulator wth no issues.
Decided today to try on a device. It builds and deploys then crashes with about with payload.
libsystem_kernel.dylib`:
0x472b81d8 <+0>: mov x16, #0x209
0x472b81dc <+4>: svc #0x80
-> 0x472b81e0 <+8>: b.lo 0x472b81fc ; <+36>
0x472b81e4 <+12>: stp x29, x30, [sp, #-0x10]!
0x472b81e8 <+16>: mov x29, sp
0x472b81ec <+20>: bl 0x472ad490 ; cerror_nocancel
0x472b81f0 <+24>: mov sp, x29
0x472b81f4 <+28>: ldp x29, x30, [sp], #0x10
0x472b81f8 <+32>: ret
0x472b81fc <+36>: ret
Can anyone shed light on what this might be?
I have 5 packages one of which is a 'c' lib. Do not have issues running these on an iOS device however.
Post not yet marked as solved
Hi,
I am using a NSOutlineView with a simple @FetchRequest containing content: and detail: sections. e.g.
NavigationSplitView {
List(tags, selection: $selectedTag) { tag in
NavigationLink(value: tag) {
Text(tag.name ?? "")
}
}
} content: {
if let selectedTag {
let fetchRequest = FetchRequest(fetchRequest: Location.sortedFetchRequest(tag: selectedTag))
AGLocationListView(locations: fetchRequest)
}
else {
Text("Select a Tag")
}
} detail: {
if let selectedTag {
AGMapView(viewModel: AGMapViewModel(tag: selectedTag))
}
}
}
I am inserting a new record using the viewContext on the main thread.
in the case when there are no records in the Tag entity I sometimes see the following error:
2023-05-11 22:49:36.388105+1200 Taggy[24576:1000186] [General] NSOutlineView error inserting child indexes <_NSConstantIndexSet: 0x7ff857d84860>[number of indexes: 1 (in 1 ranges), indexes: (1)] in parent 0x0 (which has 0 children).
Then a large stack trace topmost line being:
2 AppKit 0x00007ff818343b6b -[NSOutlineView _validateParentRowEntry:reason:indexes:] + 0
then see:
NSHostingView is being laid out reentrantly while rendering its SwiftUI content. This is not supported and the current layout pass will be skipped.
2023-05-11 22:49:38.376608+1200 Taggy[24576:1000186] [SwiftUI] Publishing changes from within view updates is not allowed, this will cause undefined behavior.
Not sure what I am doing wrong here or if this is an issue with SwiftUI on the Mac with the Split View?
Thanks Ants
Post not yet marked as solved
Hi,
I am trying to generate an image of a specific size (from a map in this case using MKMapSnapshotter). The image generation code is fine.
my view is like this
@ObservedObject public var viewModel: ViewModel
var body: some View {
GeometryReader { geometry in
Image(uiImage: viewModel.mapImage)
.frame(width: geometry.size.width, height: 50)
.cornerRadius(5)
.task(priority: .userInitiated) {
await viewModel.loadImage(size: CGSize(width: geometry.size.width, height: 50)
}
}
}
}
This is used from another view that uses a @SectionedFetchRequest inside a nav stack list and foreach.
the mapImage property of the view model is @Published.
This sort of works and the first few rows show an image. However, as you scroll some views do not get the image update.
I added some logging and I can see that the view model is getting released so the loadImage() method does not get called.
The weird thing is if I drag a row that has no image, it is immediately generated.
Any ideas as to how I could get this to work for all rows?
Thants
Hi,
I have create a Mac app that allows viewing of ".fit" files a file format use to record exercise activities and routes (among other things).
I have created a QuickLook Extension to preview these in the finder and this is working fine in most cases if I add file access for this extension in system settings
There are serval cases where this does not work, I'm guessing because of the sandbox? e.g. fit files in iCloud Drive just show default QL view not my custom one.
Is there a way to allow the QL extension to view a "fit" no matter where it might be?
Thanks Ants