Posts

Post not yet marked as solved
0 Replies
275 Views
I am writing a watchOS app using NavigationSplitView. I notice that whenever I switch to a new item in the list, that its associated detail view is always recreated. In other words if I am in the detail view for List item 1, switch back to the List, tap on item 2, switch back to the List from item 2, and choose List item 1 again the detail view associated with item 1 is recreated from scratch. I verified this same behavior with the sample Back Yard Birds app from WWDC 23. I was expecting that with a short list of items (like I have) that the views wouldn't need to be recreated each time and would just be brought back into the view hierarchy. I am wondering if the behavior I am observing is expected or if there is something I can do to not have the views recreated each time. Any insights are appreciated. Thanks, Rob
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
0 Replies
473 Views
I am writing a watchOS app where I have some audio files that I want to play at various points. I am using AVAudioPlayer. It all works in the simulator and it also works if I have Air Pods connected to my watch via Bluetooth. However I get no sound if there isn't a paired set of earphones. In the case of no earphones I would like the sounds to play from the physical watch speaker. I can't seem to find any documentation on how to cause that to happen. Any hints or tips are appreciated.
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
5 Replies
7.0k Views
Hello,I am observing the following error message in the console window of Xcode when running my app (on iOS).CoreData: error: API Misuse: Attempt to serialize store access on non-owning coordinator (PSC = 0x174262940, store PSC = 0x0)I can't seem to pin down the specific operations that are causing it. It almost seems like it is something that Core Data is emitting at some point after whatever the offending operation is. The Core Data setup in the app is done using a UIManagedDocument and in addition I am adding some private queue concurrency contexts where the parent is the managed context in the document (which is the main). Auto save of the UIManagedDocument is turned on. In addition at certain points the app is also doing explicit save of these private contexts. I don't see any ill affects due to the message but I would like to get to the bottom of the issue. I did do searching and there was an old posting where someone fixed it by saving their managed context before using a fetched results controller it was associated with. This seems wrong to me as having to a do a save before using the fetched results controller might catch updates to the managed objects that are in the middle of being made and aren't ready for saving yet because a save could end up violating a relationship constraint.Someone also suggested to make sure the entities were being created with NSEntityDescription.insertNewObject which I double checked that they are.I have -com.apple.CoreData.ConcurrencyDebug set to 1 and when there were other concrrency issues it helped. However with this particular situation it just emits the message and continues. Is there a way to get Core Data to break in the debugger for his message? Any ideas on how I might get to the bottom of this issue or settings I can enabled are greatly appreciated.Thanks Robert
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
4 Replies
2.9k Views
Hello,I have an iPhone 6 that I've been using for development for quite a while not and have no issues deploying my code on it and debugging with Xcode. However recently the Accessibility Inspector has a "(not setup)" next to this iPhone in the drop down list. If I pick the device it puts up an alert that says:Device Not SetupThis device must be setup for development using Xcode.I am very confused by this message because I am able to deploy and debug on it. I see nothing in Xcode about needing to setup the device. Any ideas on how to solve this are greatly appreciated.Regards,Rob
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
0 Replies
811 Views
Hello, I am trying to use the new Swift regex features in a Swift package built for watchOS. They require watchOS 9. When I try to specify .watchOS(.v9) as part of the platforms in the Package.swift file I get an error that says v9 is unavailable. The documentation says that v9 is available in SwiftPM 5.7. I am using both Xcode 14.0.1 and 14.1 RC3 which I thought would have the latest SwiftPM with the newest OS constants. Can someone help me understand what how to ensure I am using SwiftPM 5.7? thx
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
29 Replies
17k Views
Under Catalina Beta2 I am noticing that the process com.apple.quicklook.ThumbnailsAgent CPU is consistently consuming between 70% - 90% on my MacBook Pro 2016. I've tried killing the process but it restarts and goes back to consuming the same excessive amount of CPU. Any ideas on how to get this to stop are most appreciated.Regards,Rob
Posted
by rsaccone.
Last updated
.
Post marked as Apple Recommended
3.0k Views
In Xcode 12 Beta 3, I am getting a warning that StaticConfiguration.init(kind:provider:placeholder:content:) is deprecated and that StaticConfiguration.init(kind:provider:content:) should be used instead. My question is how does one specify a placeholder view now? Thanks, Rob
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
1 Replies
1.5k Views
Hello, I have a watchOS 7 app that has multiple pages. It's is built using Xcode 12 Beta 2 as a SwiftUI App and uses a TabView to define each page of the app. When I run the app in the simulator I can swipe right to left to move from the first page to the second. Once on the second page however I swiping from to left to right doesn't move back to the first page. Nothing happens. The interface remains stuck on the second page. I am pretty sure this used to work in Xcode Beta 1. I don't have an actual watch device running watchOS 7 to see if this is a simulator only issues. Here's the code that sets up the main App structure for reference. @main struct MyApp: App {     @StateObject private var model = Model()     @SceneBuilder var body: some Scene {         WindowGroup {             TabView {                 PageOneContentView().environmentObject(settingsModel)                     .tabItem {                         Image(systemName: "1.square.fill")                         Text("First")                     }                 PageTwoContentView(model: model)                     .tabItem {                         Image(systemName: "2.square.fill")                         Text("Second")                     }             }         }         WKNotificationScene(controller: NotificationController.self, category: "myCategory")     } }
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
2 Replies
459 Views
In working through the 2nd code along, I put in place the code which allows for the widget to be formatter for system medium. When I run the code all I end up with is the enlarged widget view with a completely orange background and no content. I also tried the finished final project that was provided and it resulted in the same output. Any ideas as to what might be going on with the sample? Thanks, Rob
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
0 Replies
639 Views
I am developing a watch app which writes out data files to local storage on the watch as it runs. When I am running in the simulator the I can easily locate these files and inspect them. However I also want to be able to copy off and look at the files created on the watch device itself. To date I have found no way to copy the file off of the watch device. I thought perhaps with Xcode there might be a way to copy the watch apps container off of the device to the Mac but that doesn't appear to be possible. The watch app is an independent app and I would like to avoid having to transfer the file using a WCSession to an iPhone app. I am hoping someone could point me to something that I am overlooking. If nothing else is it possible to copy it off to iCloud Drive by the watch app? Any tips or pointers is much appreciated.ThanksRob
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
0 Replies
726 Views
Hello,I am building a Watch app using SwiftUI. I would like to set the text color of the title displayed in the navigation bar. My understanding is that the color used is the tint color for the app. However I haven't found away to specify this in a SwiftUI based app. Does anyone know how it can be done?Thanks,Rob
Posted
by rsaccone.
Last updated
.
Post not yet marked as solved
2 Replies
3.5k Views
I added Catalyst support to my existing iOS project. Now after conversion while the app builds and executes on the Mac it seems that I am getting a code signing error when building for both iPhone and iPad simulators. The error that comes back is that CodeSign Failed and it is referencing one of the storyboard files that has been copied over to the derived data subfolder. See the message below (note some of the names have been changed to protect privacy and simplify messages 🙂)Library/Developer/Xcode/DerivedData/junglegame-aplyfelyirngdudvtmrbdsyakvir/Build/Products/Debug-iphonesimulator/***.app: code object is not signed at allIn subcomponent: Developer/Xcode/DerivedData/junglegame-aplyfelyirngdudvtmrbdsyakvir/Build/Products/Debug-iphonesimulator/***.app/ChoiceList.storyboardcCommand CodeSign failed with a nonzero exit codeI've been trying various things and seardhing the Net for the past two days to no avail. Any help is greatly appreciated.Regards,Rob
Posted
by rsaccone.
Last updated
.