To clarify, after following tutorials on how to fix the error, I: removed duplicates in Keychain from expired certs (wasn't a problem four weeks ago, weeks-post expiration)
regenerated profiles, then certs and profiles again in the web interface
built with cleaned derived data each time
removed all certs online and in keychain, restarted the laptop and rebuilt in Xcode's managing signing certificates
manually specified signing / provisioning profiles in the app and app extension (that worked in Xcode, failed in Archive/Upload
What am I missing?
Post
Replies
Boosts
Views
Activity
Did you solve this?
TextEditor is not as customizable as TextField and does not auto-size itself.
extension NSTextField {
		open override var focusRingType: NSFocusRingType {
				get { .none }
				set { }
		}
}
with PlainButtonStyle() you can start a blank slate customization
What’s your memory graph like? I’m also finding high cpu and memory use. It’s somewhat random, maybe 1 in 8 runs. Switching out the lazy stack didn’t fix it. Have looked at the grid in that app yet. So perhaps the issue is elsewhere?
Until Beta 3, the code above worked well. Now, at the bottom of a scrollview, toggling the sidebar causes a massive memory leak.
Oh egads that's embarrassing. The class was in the struct, so of course the Binding didn't update.
This thread is old... but I've posted a related question: how to pass and return a parameter to the NSView (i.e., right click triggers a SwiftUI popover). My passed binding does not update.
https://developer.apple.com/forums/thread/655056
Thanks for reminder re: Groups. Yep, that works.
Have you figured out a way to go past 10 items besides sub-menus?
Yeah, that and the memory leak from toggles.
Worse... if there are functions in a class instantiated somewhere down the chain, the menu commands don't have access to those functions.
I've been struggling with drag and drop as a beginner. Why does your snippet above produce a warning Result of call to loadObject(ofClass:completionhandler:) is unused? And why would the result print, but when used to update a variable in view produce an error about immutable self?
import SwiftUI
struct DragNDrop: View {
		@State var isDropTarget = false
		var displayThisNumber: Int = 0
		var body: some View {
				VStack{
						Text(String(displayThisNumber))
						ZStack {
								Image(systemName: "5.circle.fill")
								Circle()
						}
								.font(.system(size: 40))
								.onDrag { return NSItemProvider(object: String(Int(5)) as NSString) }
						Color.orange
								.opacity(isDropTarget ? 0.5 : 1)
								.onDrop(of: ["public.text"], isTargeted: $isDropTarget) { items in
										for item in items {
												if item.canLoadObject(ofClass: NSString.self) {
														item.loadObject(ofClass: String.self) { str, _ in
																guard str != nil else { return }
																displayThisNumber += Int(str)
														}
												}
												return true
										}
								}
				}
		}
}