Post

Replies

Boosts

Views

Created

Blank scene with xcode connected and "Metal -> API Validation" turned off.
I'm not sure which combination of iOS/XCode/Mac OS is causing this issue, but all of a sudden when I try to run our SceneKit app and the "Scheme -> Diagnostics -> Metal -> API Validation" setting is turned off the scene won't render and the console is just full of the following errors: Execution of the command buffer was aborted due to an error during execution. Invalid Resource (00000009:kIOGPUCommandBufferCallbackErrorInvalidResource) [SceneKit] Error: Main command buffer execution failed with status 5, error: Error Domain=MTLCommandBufferErrorDomain Code=9 "Invalid Resource (00000009:kIOGPUCommandBufferCallbackErrorInvalidResource)"  ) If you run the app outside of xcode it's fine, also enabling the "API Validation" option stops the issue. One of my schemes has this option disabled since the project began and never had an issue before. Just throwing this out there incase someone else has spent hours of their life trying to figure out why this is not working for them. Also you can just create a new SceneKit project and turn that diagnostic option off and the app won't render anything.
2
0
1.9k
Apr ’22
Subscription in iOS subscription list showing productId not localized name
Hi - I have an auto-renew subscription, for some reason when the user looks at their subscriptions in the iOS subscription list the subscription shows the productId as the name e.g. com.company.app.subscriptonName not the localized string e.g. "Foo Monthly Subscription". I have other subscriptions and they all works as expected and show the localized name. The one that is showing the productId is configured the same as the others as far as I can tell, any reason why this is happening and how to fix it? Thanks.
0
0
883
May ’21
Can't test subscription upgrade/downgrade. iOS doesn't use the sandbox account
Hi, I am trying to test my subscription upgrade/downgrade path on a device. I added a test user to the sandbox section of Settings - App Store and can purchase subscriptions using that test user no problem in my app. However, if I click on "Manage" on the sandbox user to see the list of subscriptions, when I try to upgrade/downgrade the purchase UI that iOS shows tries to use my actual personal account instead of the sandbox user, so I can't complete the transaction. Looks like a bug in the sandbox testing flow in iOS, but any way around it? Right now I just simulate updates from apple on my backend to make sure my app behaves as expected, but I would like to actually get some "real" data from Apple.
4
0
2.2k
Feb ’21
getTimeline called twice on load
When I run my widget from xcode I see getTimeline is called twice for some reason. It's called the first time, then after it returns a timeline it's called again. The logs have the following message: "-[EXSwiftUI_Subsystem beginUsing:withBundle:] unexpectedly called multiple times." It takes about 0.5 seconds for the first getTimeline call to return so it doesn't seem like the OS should try to call this method again so quickly (my timeline entries all have times in the future so they shouldn't request the widget to load immediately) Is this a bug, or expected? Seems to happen every time I run the widget.
9
2
4.2k
Sep ’20
Widget continually crashing - custom font issue?
I'm trying to develop a widget, I've been using a custom font. If I add the widget to the home screen maybe 70% of the time it will load, then randomly it will just start to fail and continually crash, just flashing white. If I add multiple instances of the widget to my home screen then it will just crash 100% of the time. Both widget will just sit flashing and continually crash. In the crash logs on my device I can see SwiftUI is crashing, on something relating to fonts: 0 SwiftUI 0x00000001e5c52f5c CodablePlatformFont.init+ 6733660 If I take the custom font out of the widget then it will load (eventually after resetting the device, widgets are sooo buggy) and I can have multiple instances. I'm not sure if I am doing something wrong trying to use the custom font. I created a new project and included the same custom font and loaded it the same way (just adding it to the bundle and in the info.plist) and that does not seem to crash. Just wondering if this is a known issue with custom fonts, if anyone has a workaround to stop it happening. Here is a snippet of the crash stack: Date/Time:&#9;&#9;&#9;&#9;&#9; 2020-08-21 13:26:32.7104 -0700 Launch Time:&#9;&#9;&#9;&#9; 2020-08-21 13:26:32.2918 -0700 OS Version:&#9;&#9;&#9;&#9;&#9;iPhone OS 14.0 (18A5351d) Release Type:&#9;&#9;&#9;&#9;Beta Baseband Version:&#9;&#9;3.50.05 Report Version:&#9;&#9;&#9;104 Exception Type:&#9;EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x00000001e5c52f5c Termination Signal: Trace/BPT trap: 5 Termination Reason: Namespace SIGNAL, Code 0x5 Terminating Process: exc handler [8244] Triggered by Thread:&#9;0 Thread 0 name:&#9;Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0&#9; SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001e5c52f5c CodablePlatformFont.init+ 6733660 (from:) + 2744 1&#9; SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001e5c52c54 CodablePlatformFont.init+ 6732884 (from:) + 1968 2&#9; SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001e5c52f88 protocol witness for Decodable.init+ 6733704 (from:) in conformance CodablePlatformFont + 20 3&#9; libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6feff80 dispatch thunk of Decodable.init+ 2957184 (from:) + 16 4&#9; libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e1dd0c __PlistDecoder.unbox<A>+ 343308 (_:as:) + 372 5&#9; libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e28860 _PlistKeyedDecodingContainer.decode<A>+ 387168 (_:forKey:) + 660 6&#9; libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e2ac94 protocol witness for KeyedDecodingContainerProtocol.decode<A>+ 396436 (_:forKey:) in conformance _PlistKeyedDecodingContainer<A> + 48 7&#9; libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e2a9f4 protocol witness for KeyedDecodingContainerProtocol.decode<A>+ 395764 (_:forKey:) in conformance _PlistKeyedDecodingContainer<A> + 20 8&#9; libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6d722cc _KeyedDecodingContainerBox.decode<A, B>+ 344780 (_:forKey:) + 296 9&#9; libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6d659e4 KeyedDecodingContainer.decode<A>+ 293348 (_:forKey:) + 40 10&#9;SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001e5c4f5c8 CodableAttributes.init+ 6718920 (from:) + 832 11&#9;SwiftUI&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001e5c503c4 protocol witness for Decodable.init+ 6722500 (from:) in conformance CodableAttributes + 20 12&#9;libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6feff80 dispatch thunk of Decodable.init+ 2957184 (from:) + 16 13&#9;libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e1dd0c __PlistDecoder.unbox<A>+ 343308 (_:as:) + 372 14&#9;libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e2b32c _PlistUnkeyedDecodingContainer.decode<A>+ 398124 (_:) + 776 15&#9;libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e2d150 protocol witness for UnkeyedDecodingContainer.decode<A>+ 405840 (_:) in conformance _PlistUnkeyedDecodingContainer + 12 16&#9;libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6d7cbd0 Array<A>.init+ 388048 (from:) + 332 17&#9;libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6d7d178 protocol witness for Decodable.init+ 389496 (from:) in conformance <A> [A] + 28 18&#9;libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6d7cc8c protocol witness for Decodable.init+ 388236 (from:) in conformance <A> [A] + 20 19&#9;libswiftCore.dylib&#9;&#9;&#9;&#9;&#9;&#9; 0x00000001b6feff80 dispatch thunk of Decodable.init+ 2957184 (from:) + 16 20&#9;libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e1dd0c __PlistDecoder.unbox<A>+ 343308 (_:as:) + 372 21&#9;libswiftFoundation.dylib&#9;&#9;&#9; 0x00000001e3e28860 _PlistKeyedDecodingContainer.decode<A>+ 387168 (_:forKey:) + 660 NOTE: I am using the beta5 build
2
0
1.6k
Aug ’20