The newer demo, with SwiftData [2] doesn't handle opening a document twice properly either.
[2] https://developer.apple.com/documentation/swiftui/building-a-document-based-app-using-swiftdata
Post
Replies
Boosts
Views
Activity
I had the log message in the iPhone simulator running iOS 17 until I upgraded to Ventura 13.5 (22G74) just now, still using XCode Version 14.3.1 (14E300c). My custom keyboard (in-app; not system wide keyboard) was is behaving erratically (disappearing, after a few taps in the app, and the message~~
-[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID
would appears in the logs).
Now, after the upgrade (Ventura 13.5 (22G74) just now, still using XCode Version 14.3.1), I've been trying to replicate the problem, but so far it does not occur anymore...
I take it back: it's indeterministic: a few recompiles later the issue is still here.
I have scrolling issues using the tracking, on Monterey 12.1 (21C52) on MacBook Pro (16-inch, 2021).
There are random jumps when scrolling with 2 fingers using the trackpad, in different apps - Safari; XCode...
Posted a feedback using Feedback Assistant.
I downloaded manually, as suggested. The manual install took a while too but went well.
It did not help with the other ongoing install.
Even after a reboot.
I searched a bit and found suggestion deleting some ~/Library/Caches files may help.
I deleted files in relation to store (app store).
Rebooted.
Launch Pad was showing an empty progress bar for a short while and then disappear.
Now XCode shows as "GET" on the app store.
But now, at least, installd is not eating up 120% CPU...
thanks.
Proposed solution
I managed to get around the issue by using Element.scale(by:) in the extension's definition of Array.scale(by:) and not using the * operator.
Using * operator required Element and Double to conform to _VectorMath (which is what we wanted to avoid).
Follow-up on questions and remarks
Just my curiosity, how are you trying to make Array conform to VectorArithmetic? I see them as coefficients of polynomials (as in the algebraic definition). If I am not mistaken, it can be a vector space.
For example, what is your definition of +? Two Arrays may have different sizes. Add coefficients pairwise; and if one array is shorter than the other one, use AdditiveArithmetic.zero for the "missing" element.
> What is _VectorMath protocol? Not documented publicly. I did not see this sooner, but if I option-click on the _VectorMath, there's the quick help:
SummaryAdds the “vector space” numeric operations for any type that conforms to Animatable. #### Declaration protocol _VectorMath : Animatable I am not sure what to make of this. But as you suggested I'd try not to use this "private" (?) API.
see https://developer.apple.com/forums/thread/653198
There is a related question https://developer.apple.com/forums/thread/653471 "Add UIKit view into iOS 14 Widget"
The reply: "UIKit views wrapped in UIViewRepresentable will not work in WidgetKit. When the views are encoded from your extension to be displayed they will appear blank. "