Welcome to the Apple Developer Forums

Post your questions, exchange knowledge, and connect with fellow developers and Apple engineers on a variety of software development topics.

For questions about using Apple hardware and services, visit Apple Support Communities

Posts

Sort by:
Post not yet marked as solved
0 Replies
3 Views
The idea of using AVFoundation is because higher resolution depth maps and more accurate instead of ARKit, but me trying it on iPhone 12,13 pro isn't the case. the filtered map jumps too much from depth values and the unfiltered depth map has a lot of holes and sometimes It maybe go all black. I'm I missing something? how I should be testing it?
Posted
by
Post not yet marked as solved
0 Replies
5 Views
Filed as rdar://FB11975037 When macOS Ventura is run as a guest OS within the virtualization framework, the main menu bar items will not be displayed correctly if VZMacGraphicsDisplayConfiguration defines a large resolution. The menu bar titles appear to be using the same color as the menu bar itself. When the Appearance is set to Light, the menu bar items are effectively invisible. When the Appearance is set to Dark, the menu bar items are drawn in what looks like a disabled state. This only affects the menu bar item titles on the left-hand side. The date-time and menu bar icons on the right side are always displayed in the correct color. This appears to be a regression in macOS Ventura as this issue is not present in macOS 12 running as a guest. This bug can be easily reproduced using Apple's own Virtualization sample code titled: "Running macOS in a Virtual Machine on Apple Silicon Macs" Steps to reproduce: Follow the sample code instructions for building and installing a VM.bundle. Before running 'macOSVirtualMachineSampleApp', change the VZMacGraphicsDisplayConfiguration to use: width = 5120, height = 2880, ppi = 144. Run 'macOSVirtualMachineSampleApp' and notice that the menu bar titles on the left side of the screen are not correctly drawn in the guest instance. This has been tested on: Host: macOS 13.1 Guest: macOS 13.x (All versions) Hardware: MBP 14" M1 Pro 32GB/2TB Is there anything that can be done to resolve this issue?
Posted
by
Post not yet marked as solved
0 Replies
18 Views
Hi I am receiving this error in crashlytics and I am not sure what is going on. Based from the crashlytics report, it is only happening from iOS 16.2 and above. Any tips and hints on this problem would be great. Here is the bug report. Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation         0x9e48 __exceptionPreprocess 1 libobjc.A.dylib        0x178d8 objc_exception_throw 2 Foundation           0x545a88 -[NSMutableDictionary(NSMutableDictionary) initWithContentsOfFile:] 3 UIKitCore           0x6a2724 __UIKIT_DID_NOT_RECEIVE_A_REMOTE_CACONTEXT_FROM_COREANIMATION_INDICATING_A_POSSIBLE_BACKBOARDD_CRASH 4 UIKitCore           0x5260ec __UIKIT_IS_REQUESTING_A_CACONTEXT_FROM_COREANIMATION 5 UIKitCore           0x347ef0 +[_UIContextBinder createContextForBindable:withSubstrate:] 6 UIKitCore           0x347c64 -[_UIContextBinder _contextForBindable:] 7 UIKitCore           0x347b40 -[_UIContextBinder attachBindable:] 8 UIKitCore           0x13ab50 -[UIWindowScene _windowUpdatedVisibility:] 9 UIKitCore           0x206b80 -[UIWindow _updateLayerOrderingAndSetLayerHidden:actionBlock:] 10 UIKitCore           0x20643c -[UIWindow _setHidden:forced:] 11 UIKitCore           0x34608c -[UITextEffectsWindow _commonInitWithOptions:] 12 UIKitCore           0x345fb8 -[UITextEffectsWindow(UIObjectsForPerCanvas) _initWithCanvas:options:] 13 UIKitCore           0x206908 +[_UIObjectPerCanvas objectOfClass:forCanvas:withOptions:createIfNecessary:] 14 UIKitCore           0xf1d6c4 +[UITextEffectsWindow _sharedTextEffectsWindowforWindowScene:allowHosted:forViewService:matchesStatusBarOrientationOnAccess:shouldCreateIfNecessary:] 15 UIKitCore           0xf1d844 +[UITextEffectsWindow sharedTextEffectsWindowForWindowScene:forViewService:] 16 UIKitCore           0x8e39e4 -[UIKeyboardSceneDelegate containerWindowForViewService:] 17 UIKitCore           0x235094 -[UITextSelectionView showInitialCaret] 18 UIKitCore           0x234120 -[UITextSelectionView updateSelectionRects] 19 UIKitCore           0x233754 -[UITextSelectionView updateSelectionRectsIfNeeded] 20 UIKitCore           0x2336e4 __51-[UITextSelectionView deferredUpdateSelectionRects]_block_invoke 21 CoreFoundation         0x91d40 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 22 CoreFoundation         0x1a290 __CFRunLoopDoObservers 23 CoreFoundation         0x7bb70 __CFRunLoopRun 24 CoreFoundation         0x80ec0 CFRunLoopRunSpecific 25 GraphicsServices        0x1368 GSEventRunModal 26 UIKitCore           0x3a186c -[UIApplication _run] 27 UIKitCore           0x3a14d0 UIApplicationMain 28 MyApp           0x6274 main + 32 (AppDelegate.swift:32) 29 ???              0x1aad76960 (Missing)
Posted
by
Post not yet marked as solved
0 Replies
10 Views
Hello everyone, I am having a error when I run a flutter app on iPhone's simulator, this message error is following: Error (Xcode): could not build module 'ObjectiveC' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/usr/include/os/object.h:113:8 Error (Xcode): could not build module 'os_object' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/usr/include/dispatch/dispatch.h:62:9 Error (Xcode): could not build module 'os_object' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/usr/include/os/workgroup_base.h:18:9 Error (Xcode): could not build module 'Dispatch' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h:19:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:5:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:27:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:17:9 Error (Xcode): could not build module 'Foundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:7:8 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h:11:9 Error (Xcode): could not build module 'CoreGraphics' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImageDefines.h:16:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h:29:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:35:9 Error (Xcode): could not build module 'Foundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/EAGL.h:7:9 Error (Xcode): could not build module 'Foundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/Metal.framework/Headers/MTLTypes.h:7:8 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h:15:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h:13:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h:15:9 Error (Xcode): could not build module 'Foundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/FileProvider.framework/Headers/NSFileProviderDomain.h:7:8 Error (Xcode): could not build module 'Foundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/NSString+UserNotifications.h:7:8 Error (Xcode): could not build module 'UIKit' /Users/usuario/Documents/GitHub/valdivia-asociados-app/build/ios/Debug-iphonesimulator/Flutter.framework/Headers/FlutterAppDelegate.h:7:8 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CMBase.h:166:9 Error (Xcode): could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioBaseTypes.h:17:9 Error (Xcode): could not build module 'CoreAudioTypes' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.2.sdk/System/Library/Frameworks/CoreAudio.framework/Headers/CoreAudioTypes.h:3:9 Error (Xcode): could not build module 'Flutter' /Users/usuario/Documents/GitHub/valdivia-asociados-app/ios/Runner/GeneratedPluginRegistrant.h:9:8 Error (Xcode): failed to emit precompiled header '/Users/usuario/Library/Developer/Xcode/DerivedData/Runner-arkjnantpvustwgwgpubahjupcap/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging-Header-swift_2SDB0BH26RSRB-clang_2PKV74KGMIP1K.pch' for bridging header '/Users/usuario/Documents/GitHub/valdivia-asociados-app/ios/Runner/Runner-Bridging-Header.h' Could not build the application for the simulator. Error launching application on iPhone 14 Pro.
Posted
by
Post not yet marked as solved
0 Replies
14 Views
I am beginning to work in Core Image and applying some filters. Most that I have encountered are fairly easy to understand but a few are confusing me. As I need a mono image I came across two: CIMaximumComponent and the corresponding CIMinimumComponent. There are others too but the description of these two is pretty sparse. Can someone expand just a little so I can understand the difference? It mentions max(r,g,b) and min of the same, what is the source of r,g,b and how is the result applied?
Posted
by
Post not yet marked as solved
0 Replies
9 Views
Aloha! I would like to offer my app to the public for individual sales on the Apple App Store as well as to organizations to purchase for their students/employees (bulk or volume sale). Any recommendations on how to best accomplish this? Thank you very much for your time and consideration
Posted
by
Post not yet marked as solved
0 Replies
17 Views
Since last 10 days, we have met new crash reports which only seems to be coming from devices with iOS 15.7.2 (almost at thousands of occurences). There are not any other reports with this issue, belonging to any other operating systems except 15.7.2 What is weird is stack traces show nothing yet has started to run. It seems to occur at the very beginning of app sessions. We could not concluded any results from such a crash report. May there be an active problem with 15.7.2? Any help will be appreciated, we can supply more info if necessary. Regards, cra
Posted
by
Post not yet marked as solved
0 Replies
29 Views
I recently updated my HomePod mini to version 16.3, which enables the temperature and humidity sensors. However, in the HomeKit iPad app I've developed, the HomePod mini does not show up in HMHome.accessories. I expected it show up there with a service of type HMServiceTypeTempatureSensor.
Posted
by
Post not yet marked as solved
0 Replies
13 Views
According to the documentation of the NSApplicationActivateAllWindows flag of -[NSRunningApplication activateWithOptions:], "all of the application's windows are brought forward". That does not actually happen, and has not since at least macOS 10.15. It did work in macOS 10.13, don't know about 10.14. Is there any reasonable alternative to achieve the same effect?
Posted
by
Post not yet marked as solved
0 Replies
15 Views
Some institutions are seeing these errors when uploading using our share extension and this occurs on 100s of iPads on iOS 16.x. Rebooting the device is the only way to get it working again, but fails soon after. It is occurring on most but not all devices. This appears isolated and most users are not reporting any issues at all and to date we cannot reproduce this issue in-house. Here is the isolated console trace of the issue: Isolated, -997 ERROR console logs.txt And here is the isolated console trace of it working: Isolated, WORKING console logs.txt It's worth noting that some institutions use MDMs to manage their devices. What environmental conditions could cause this issue be caused intermittently? Is it truly an Apple daemon bug and out of my hands?
Posted
by
Post not yet marked as solved
0 Replies
13 Views
Hello, We are developing a mobile app and we are planning to add premium content to the app. The content is a series of videos (digital content) that the user will get access to once they purchase a subscription. Now, will Apple allow us to use Stripe for this subscription or we MUST use the apple in-app purchases for payment? We need to know this before we decide on the implementation plan. Referring to this: https://drive.google.com/file/d/1MB5sYk3S2uhxvPPBTkgZLdnQyf68aH6a/view?usp=sharing Please give us a clear answer if we will end up with an issue if we are going with STRIPE or not. Regards, Yousaf Iqbal
Posted
by
Post not yet marked as solved
1 Replies
23 Views
I use a ViewBuilder to generate the destination used in a NavigationSplitView (to select the detail View). This viewBuilder depends on a parameter (in fact 2, but I try to simplify). ViewBuilder is simple, just calls a View: @ViewBuilder func destination(object: SomeObject, name: String) -> some View { MyView(objToUse: object, nameToUse: name) } But this does not work. When I change the selection in the Master of the splitView, view is not updated (even though I've checked the content is updated. This si so simple that I started using directly MyView(objToUse: object, nameToUse: name) in the detail View. It did not work either. Now, here is the surprise: if I use a switch statement in the ViewBuilder, it works: Let's say we have: struct SomeContent: Hashable, Identifiable, Codable { var id = UUID() var name: String } struct Object : Hashable, Identifiable, Equatable, Codable { var id = UUID() var content: [SomeContent] = [] } So I define a func to get all the names func allNames(of object: SomeObject) -> [String] { var names : [String] = [] for o in object.content { names.append(o.name) } return names } And modify ViewBuilder as follows: it works @ViewBuilder func destination(object: SomeObject, name: String) -> some View { let names : [String] = allNames(of: object) switch name { case names[0]: MyView(objToUse: object, nameToUse: name) case names[1]: MyView(objToUse: object, nameToUse: name) case names[2]: MyView(objToUse: object, nameToUse: name) default: EmptyView() } It also works with nested if else if instead of a switch. What is it I am missing ?
Posted
by
Post not yet marked as solved
0 Replies
26 Views
We are getting around 300 crashes per day while the application is in the background coming from [FBSSceneSnapshotRequestHandle performRequestForScene:]. This is a metal based game. Is there some way I can tell iOS to not try to take a snapshot of the game while in the background? Full callstack below. Thanks, 0 libsystem_kernel.dylib +0x18130 _semaphore_wait_trap 1 libdispatch.dylib +0x279c __dispatch_sema4_wait$VARIANT$mp 2 libdispatch.dylib +0x321c __dispatch_semaphore_wait_slow 3 FrontBoardServices +0x3d6c8 -[FBSSceneSnapshotRequestHandle performRequestForScene:] 4 FrontBoardServices +0x438c8 -[FBSSceneSnapshotAction snapshotRequest:performWithContext:] 5 FrontBoardServices +0x158c -[FBSSceneSnapshotRequest performSnapshotWithContext:] 6 UIKitCore +0x8c9338 ___65-[UIApplication _performSnapshotsWithAction:forScene:completion:]_block_invoke_2 7 FrontBoardServices +0x43764 -[FBSSceneSnapshotAction _executeNextRequest] 8 FrontBoardServices +0x43354 -[FBSSceneSnapshotAction executeRequestsWithHandler:completionHandler:expirationHandler:] 9 UIKitCore +0x8c921c ___65-[UIApplication _performSnapshotsWithAction:forScene:completion:]_block_invoke 10 UIKitCore +0x8c8844 -[UIApplication _beginSnapshotSessionForScene:withSnapshotBlock:] 11 UIKitCore +0x8c8f70 -[UIApplication _performSnapshotsWithAction:forScene:completion:] 12 UIKitCore +0x8c8e3c -[UIApplication _handleSnapshotAction:forScene:completion:] 13 UIKitCore +0x8c4720 ___71-[UIApplication _handleSnapshotAction:forScene:deactivationCompletion:]_block_invoke 14 UIKitCore +0x8c453c -[UIApplication _handleSnapshotAction:forScene:deactivationCompletion:] 15 UIKitCore +0x17ff54 ___98-[__UICanvasLifecycleMonitor_Compatability deactivateEventsOnly:withContext:forceExit:completion:]_block_invoke.261 16 UIKitCore +0x8c80a8 __runAfterCACommitDeferredBlocks 17 UIKitCore +0x8b6bf8 __cleanUpAfterCAFlushAndRunDeferredBlocks 18 UIKitCore +0x8e3a68 __afterCACommitHandler 19 CoreFoundation +0xaa4f8 ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ 20 CoreFoundation +0xa5220 ___CFRunLoopDoObservers 21 CoreFoundation +0xa579c ___CFRunLoopRun 22 CoreFoundation +0xa4fb0 _CFRunLoopRunSpecific 23 GraphicsServices +0xa798 _GSEventRunModal 24 UIKitCore +0x8bcc34 _UIApplicationMain 25 Wizard-of-Oz +0x1045054 main (main.mm:38:18) 26 libdyld.dylib +0x18dc _start
Post not yet marked as solved
0 Replies
16 Views
Hi, We are about to start selling a product on the app store, and collect in app purchases as required by Apple. I just did a test, and I have some questions. I sent a request to Apple, but the response says 3-5 days response time. A customer downloads our app, creates an account. As part of the account creation, they pay for the product (in this scenario $99.99). When a customer purchases an item from me, can I get notified about that purchase in some way? In testing we receive a transaction ID, that we save with our customers profile when they register for our product (separate from their Apple registration). I need that transaction ID in a report of some kind from Apple to tie that customer to that payment so I can reconcile on my end. In my test, I have been unable to find a report that gives me some customer identifiable information, such as their in app purchase transaction ID that I can tie back to the customer in my system? All any of the reports I can currently see show me is the purchase, and what product was purchased, not the transaction ID or something that I can use to tie it to the customer who made it. To clarify, our app is free to the user to download, when they register, they complete some information for us (name, address, some demographics), and we store that is our system. When they pay, we receive some kind of transaction ID from Apple that goes into our system and is saved in our user's financial profile. I need to run a report out of Apple that gives me something such as that Transaction ID to be able to know who the user was who made the purchase. With some of our purchases, we have to turn around and pay a 3rd party, and that information tells me who I need to pay. If a customer who has paid for our product requests a refund, and I want to provide a refund, how do I do that? If they request a refund, and I wish to dispute that for some reason, how do I do that? In summary: How to tie transaction to a customer name or transaction ID...we see apple ID but that doesn't mean anything to us. How to download activity for a period including customer name, amount, date  We have a transaction ID in our system (that came from Apple) how to tie that ID to a customer...this may be asking same thing as #1.  How to issue refunds?  Why would charge that clears on credit card be .36 less than the receipt received on the phone? In our test, our product was $99.99, the customer saw a charge of $105.93, but the credit card charge (corporate card) was charged $105.57, so 36 cents less than the customer saw. Is 36 cents in this scenario, some additional fee?
Posted
by
Post not yet marked as solved
0 Replies
19 Views
I'm interested in developing a navigator to be used with EyeRide Heads up Display (HUD). The HUD does not have "button" functionality but can use voice commands. Is there any kind of SDK that give basic functionality to be compatible with CarPlay ?
Posted
by
Post not yet marked as solved
0 Replies
24 Views
The folder doesn't appear to be SIP protected / restricted. But when I run sudo touch /Library/SystemExtensions/testing123 It fails. Clearly there's a protection I'm unaware of but can't figure it out. If it's not SIP, not TCC (FDA), then what could it be? This is not for an app, I'm just trying to understand macOS and this is a gap in my understanding.
Posted
by
Post not yet marked as solved
0 Replies
20 Views
I shared a file from MacBook Pro to IPhone 13 via airdrop. The file size was about 18GB. After the file received I didn’t get any pop-up to save the file. The file didn’t even store on the ‘Files’ app. It indirectly stored in System Data. Now my phone storage moved from 28GB to 56GB. Is there any way to revert it other than resetting the iPhone ??
Posted
by
Post not yet marked as solved
0 Replies
24 Views
Hi there, I've recently noticed that after the spinner disappears, a black outline is briefly shown, which looks glitchy. Does anyone know how one could remove this? Thanks in advance!
Posted
by

Pinned Posts

Categories

See all