Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 - Structured logging in console hides interpolation?
Are you sure that the Xcode console should be <private> for private arguments? They don't seem to be for the WWDC 2023 session on the subject, which matches the "unstructured" behavior in Xcode 14. If we can't see the private strings and values in Xcode, then there's no point in logging at all. If we have to use the privacy: .public modifier to see them in the Xcode 15 console, then we're also exposing the data to the system log.
Jun ’23
Reply to MacOS Sidebar is closed on default when app is run
The only way I could make this work when running the application from within Xcode was to shut down the application using its own Quit menu while the sidebar was open. Just re-starting the app by hitting the "run" button would close the sidebar again. When you Archive the app and run outside of Xcode, it seems to open with the sidebar visible no matter what state it was in when you closed it. At that point, saving the "closed" state via NavigationSplitView's visibility property is probably how you'd want to preserve sidebar open/close across restarts. Maybe that would work when running from Xcode, too? Also, if you notice in the message output window, there's some warning about being able to read certain kinds of preferences, which is maybe an issue ONLY when run within Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Reply to Xcode 13.2.1 - code completion failing quite often - rebuild?
New information that I'm not at all sure is helpful. I installed (from downloads): Xcode 13.1 Xcode 13.2 Xcode 13.2.1 If I open my project in Xcode 13.1, clean, build, then attempt to do something like let x = String( I get all the string constructors as you'd expect. AND, quick help works. If I then close 13.1, open the project in Xcode 13.2(.1) and attempt to do let x = String( I ALSO get all the string constructor completions. However, if I then clean, the completions no longer work. If I build after cleaning, the completions no longer work. So, Xcode 13.1 is doing something that the 13.2 series is not doing. As long as that build/Xcode cache (or whatever it is) remains from a 13.1 build, Xcode 13.2 can use it for completion. «MacOS 12.1»
Dec ’21
Reply to Xcode 13.2.1 - code completion failing quite often - rebuild?
Did any of you see the "Install required components" request / dialog when installing Xcode? I did not. That modal says: "Xcode requires additional components to support running and debugging. Choose Install to add required components." That sounds like the problem, no? When I run: sudo /usr/bin/xcodebuild -runFirstLaunch -verbose objc[3862]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1e79a2b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1040e02c8). One of the two will be used. Which one is undefined. objc[3862]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1e79a2be0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1040e0318). One of the two will be used. Which one is undefined. And then nothing happens. Oy.
Dec ’21
Reply to iOS 15 beta 4 CloudKit Auth Error
I have a small, private, personal app that only uses the Development DB for CloudKit-CoreData. Using Xcode 13 beta 4: The Mac version of the app (running in Big Sur 11.5 (Intel)) seems to work fine. I don't see the above error message in the Xcode spew-log. When I run the iOS version of the app (shared core data context) on an iPhone 12 running iOS 15 beta 4, I get the Account temporarily unavailable error message, as have others. When I run the app on any of the simulators, I get the same error message. For whatever that's worth. Compiling with Xcode 13b4 doesn't wreck the app for macOS 11.x.
Jul ’21
Reply to Xcode 15 - Structured logging in console hides interpolation?
Are you sure that the Xcode console should be <private> for private arguments? They don't seem to be for the WWDC 2023 session on the subject, which matches the "unstructured" behavior in Xcode 14. If we can't see the private strings and values in Xcode, then there's no point in logging at all. If we have to use the privacy: .public modifier to see them in the Xcode 15 console, then we're also exposing the data to the system log.
Replies
Boosts
Views
Activity
Jun ’23
Reply to Context menus in SwiftUI on macOS?
I think you need the contentShape modifier: .contentShape(Rectangle()) maybe after the .frame modifier. Clicking on the whitespace in the 200x200 area should work after that.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Sep ’22
Reply to MacOS Sidebar is closed on default when app is run
The only way I could make this work when running the application from within Xcode was to shut down the application using its own Quit menu while the sidebar was open. Just re-starting the app by hitting the "run" button would close the sidebar again. When you Archive the app and run outside of Xcode, it seems to open with the sidebar visible no matter what state it was in when you closed it. At that point, saving the "closed" state via NavigationSplitView's visibility property is probably how you'd want to preserve sidebar open/close across restarts. Maybe that would work when running from Xcode, too? Also, if you notice in the message output window, there's some warning about being able to read certain kinds of preferences, which is maybe an issue ONLY when run within Xcode.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Reply to Xcode 13.2.1 - code completion failing quite often - rebuild?
At least for me, this is fixed in Xcode 13.3 beta. I can enabled the EnableSwiftBuildSystemIntegration switch and code completion works. The FB I filed had about 10 other reports, too, so I hope that between all of us, they found the issue.
Replies
Boosts
Views
Activity
Jan ’22
Reply to Xcode 13.2.1 - code completion failing quite often - rebuild?
Ok, if any of you are still here, did you enable that "make builds faster" mode with Xcode 13.2? defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1 That thing? Try: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 0 and see if it turns the completion and quick-help back on. Seems to work for me.
Replies
Boosts
Views
Activity
Dec ’21
Reply to Xcode 13.2.1 - code completion failing quite often - rebuild?
New information that I'm not at all sure is helpful. I installed (from downloads): Xcode 13.1 Xcode 13.2 Xcode 13.2.1 If I open my project in Xcode 13.1, clean, build, then attempt to do something like let x = String( I get all the string constructors as you'd expect. AND, quick help works. If I then close 13.1, open the project in Xcode 13.2(.1) and attempt to do let x = String( I ALSO get all the string constructor completions. However, if I then clean, the completions no longer work. If I build after cleaning, the completions no longer work. So, Xcode 13.1 is doing something that the 13.2 series is not doing. As long as that build/Xcode cache (or whatever it is) remains from a 13.1 build, Xcode 13.2 can use it for completion. «MacOS 12.1»
Replies
Boosts
Views
Activity
Dec ’21
Reply to Xcode 13.2.1 - code completion failing quite often - rebuild?
Did any of you see the "Install required components" request / dialog when installing Xcode? I did not. That modal says: "Xcode requires additional components to support running and debugging. Choose Install to add required components." That sounds like the problem, no? When I run: sudo /usr/bin/xcodebuild -runFirstLaunch -verbose objc[3862]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libauthinstall.dylib (0x1e79a2b90) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1040e02c8). One of the two will be used. Which one is undefined. objc[3862]: Class AMSupportURLSession is implemented in both /usr/lib/libauthinstall.dylib (0x1e79a2be0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1040e0318). One of the two will be used. Which one is undefined. And then nothing happens. Oy.
Replies
Boosts
Views
Activity
Dec ’21
Reply to Xcode 13.2.1 - code completion failing quite often - rebuild?
I'm experiencing this as well on a brand new project (Mac App). For me, none of the SwiftUI views provide any completions for their constructors. However, my own Views do suggest code completions. Installed Xcode 13.2.1 from the App Store.
Replies
Boosts
Views
Activity
Dec ’21
Reply to Is Core Data hosted in CloudKit working in Xcode 13?
Fixed for me on iOS 15 Beta 5, out today.
Replies
Boosts
Views
Activity
Aug ’21
Reply to iOS 15 beta 4 CloudKit Auth Error
I think this is fixed with iOS 15 Beta 5. I updated, then launched my little hours-tracker app, and all the most recent data loaded up just fine.
Replies
Boosts
Views
Activity
Aug ’21
Reply to iOS 15 beta 4 CloudKit Auth Error
I have a small, private, personal app that only uses the Development DB for CloudKit-CoreData. Using Xcode 13 beta 4: The Mac version of the app (running in Big Sur 11.5 (Intel)) seems to work fine. I don't see the above error message in the Xcode spew-log. When I run the iOS version of the app (shared core data context) on an iPhone 12 running iOS 15 beta 4, I get the Account temporarily unavailable error message, as have others. When I run the app on any of the simulators, I get the same error message. For whatever that's worth. Compiling with Xcode 13b4 doesn't wreck the app for macOS 11.x.
Replies
Boosts
Views
Activity
Jul ’21
Reply to iOS 15 beta 4 CloudKit Auth Error
I'm seeing this as well, on my iPhone 12, and on the iPhone 12, 12 Pro and iPad 11inch simulators.
Replies
Boosts
Views
Activity
Jul ’21