I've been struggling to work with the Storekit framework and specifically to find the current Storefront used by the user of the app. Context : My app needs to behave differently depending on the country of the user. For me relying on Locale.current.region?.identifier does not seem very reliable, the user can change it really easily. I'm trying to use the Storekit framework like so : if let storefront = await StoreKit.Storefront.current{ return storefront.countryCode } As per Apple's Storekit documentation : Use current to determine a customer's current storefront region and offer in-app products suitable for that region. You maintain your own list of product identifiers and the storefronts in which you make them available. But I just can't find out what I need to change in my current configuration to get another country. The code keeps returning my original storefront (which is France) I've tried login in with a sandbox user defined on another country. Changed all settings on my device to a
missing package product
47,412 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hello, thank you for your answer. Done : FB17064641 (Calling Storefront.current works as expected when testing in Xcode local test environment, but doesn't when testing in the sandbox.) May I add that even with Testflight and a legit production user from China it does not work. At this point I can only pray it will work if I release the app to the Appstore.
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
How my product work My product read RFID tag and send it to Host (Windows). Currently it works well in Windows. USB mode HID mode A. Windows: it can receive tag data using standard HID protocol. B. iPad(USB-C): We found iPad can receive tag data using standard HID protocol. USB-CDC mode A. Windows: it works well with my private USB driver. B. iPad(USB-C): We're planning to develop custom driver. Questions HID mode: Does my product get certificate with standard HID protocol? USB-CDC: Does my product get certificate with custom driver?
Topic:
App & System Services
SubTopic:
Hardware
@grant-imagine-products This could be an issue that was resolved in macOS 15. FIrst, could you give this implementation a try and test if you’re still able to reproduce the issue: struct ExpandableOutlineGroup: View { @Binding var expandedElements: Set var children: [Element] var childKeyPath: KeyPath @ViewBuilder var content: (Element) -> LabelContent init( _ children: [Element], expandedElements: Binding>, childKeyPath: KeyPath, @ViewBuilder content: @escaping (Element) -> LabelContent ) { self.children = children self.childKeyPath = childKeyPath self._expandedElements = expandedElements self.content = content } var body: some View { ForEach(children) { child in if let childChildren = child[keyPath: childKeyPath] { DisclosureGroup( isExpanded: isExpanded(element: child), content: { ExpandableOutlineGroup(childChildren, expandedElements: $expandedElements, childKeyPath: childKeyPath, content: content) }, label: { content(child) } ) } else { content(child) } } } func isExpanded(element: Elem
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags:
Hello, We’ve been using the CesiumJS WebGL library for several years, both on our website and within embedded WebViews in our iOS application. Since upgrading to iOS versions 18.2 and 18.3, we’ve started receiving numerous user complaints regarding application crashes on various iPad and iPhone models when loading CesiumJS. The crashes occur as soon as the 3D view initializes, and the error consistently reported is: WebGL context lost This issue appears to be a WebGL-related crash potentially triggered by GPU memory handling or allocation limits. However, we are not detecting any abnormal memory consumption prior to the crash, and the same setup works perfect on older iOS versions and on all Android devices and versions. Steps to Reproduce: Open: https://www.flightradar24.com/30.47,-94.84/8 Click on any aircraft icon on the map. In the aircraft details panel at the bottom, click on the “3D view” tab. On iOS 18.2 or 18.3, the page will crash shortly after initializing CesiumJS WebGL. Affected Devices:
@suraj_pawar20 See the response in Handling ITMS-91061: Missing privacy manifest.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
I used fastlane to package and upload the test package to TestFlight. However, the account in Xcode is often logged out automatically without any prompts. In Xcode, I logged in with the developer account to automatically manage certificates, provisioning profiles, signatures, etc. For the fastlane upload, I used a Application-specific passwords. Does anyone know what could be the reason? I'm almost driven crazy.
Topic:
Developer Tools & Services
SubTopic:
Xcode
I'm having trouble with Xcode 16.2 when trying to pair or upload apps to my iPhone 16e running iOS 18.3. Interestingly, it works perfectly with older models like the iPhone 15 and 14, even though they’re on the same iOS version. When I attempt to install an app on my iPhone 16e via Xcode, I encounter this error: The developer disk image could not be mounted on this device. (com.apple.dt. CoreDeviceError error 12040 (0x2F08)) DDIPath = /Library/Developer/DeveloperDiskImages/iOS_DDI. dmg DeviceIdentifier = 42E4BEC2-3B1E -4903-9A29-CC5C6363F677 Options = { MountedBundlePath = file:///private/var/tmp/CoreDevice_DDI_Staging_501/42E4BEC2-3B1-4903-9A29-CC5C6363F677/*; UseCredentials = 0; } NSURL = file:///Library/Developer/DeveloperDiskImages/iOS_DDI.dmg ERROR: Error mounting image: 0x800010f (kAMDMobileImageMounterPersonalizedBundleMissingVariantError: The bundle image is missing the requested variant for this device.) (com. apple,mobiledevice error -402652913 (OxE800010F)) FunctionName = AMDeviceRemoteMou
I am attempting to test my app from the command line using fastlane but am running into issues with the build due to xcodebuild not being able to find the specified simulator. I have been attempting to debug by running the xcodebuild command manually and here is what I have been able to gather: Running xcodebuild -scheme MyAppName -destination platform=iOS Simulator,OS=18.1,name=iPhone 16 Pro errors with a message saying xcodebuild: error: Unable to find a destination matching the provided destination specifier: { platform:iOS Simulator, OS:18.1, name:iPhone 16 Pro } If I run xcodebuild -scheme MyAppName -showdestinations, I can see { platform:iOS Simulator, id:7F3E4A35-E5DB-4EF4-AFAD-156EC463FEA8, OS:18.1, name:iPhone 16 Pro } listed in the options. Specifying the destination using the id yields the same result. However, if I run xcodebuild -scheme MyAppName -destination platform=iOS Simulator,OS=18.1,name=iPhone 16 Pro test (note the extra test at the end) the tests run successfully. I have checked that my
I was doing an app which had several camera buttons each one dedicated to taking/storing/reviewing/deleting an image associated with a variable URL but what should have been a simple no brainer turned out to be a programming nightmare. To cut a long story short there is a bug in the sheet handling wherebye even tho you have separate instance for each button the camera/picker cylcles sequentially thru the stack of instances for any action finally always placing the image in the first URL. Working with myself debugging, all major AIs (Grok, Claude, Gemini and Perplexity) after 4 x 12hr+ days we finally managed to crack a solution. What follows is Groks interpretation (note it misses the earlier problem of instance cycling!!) ... You can follow the discussion here: https://x.com/i/grok/share/KHeaUPladURmbFq5qy9W506er but be warned its long a detailed but if you are having problems then read ... **Bug Report: Race Conditions with UIImagePickerController in SwiftUI Sheet ** Environment: SwiftUI, iOS 17.7.
I face this problem daily and have not found any way to fix other than building 1000 times and eventually it connects. I lose so much time over it, I really wish it would get fixed.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
This is still an issue with Xcode 16.2 and iOS 18.2. The UINavigationBarDelegate method navigationBar(_:shouldPop:) is not called as expected when running an app in debug mode / with debug executable checked (attached to Xcode). It works as expected and according to documentation only in release builds or when unchecking debug executable in Product -> Scheme -> Edit Scheme… -> Run -> Info This issue causes confusion during development and testing. Perhaps the accepted answer should not be accepted, since it is still an issue (that it doesn't work according to documentation in debug mode)?
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I have a basic setup following WWDC 2020 on Safari Web Extensions and another one on XPC. The video even mentions that one can use UserDefaults or XPC to communicate with the host app. Here is my setup. macOS 15.2, Xcode 16.2 A macOS app (all targets sandboxed, with an app group) with 3 targets: SwiftUI Hello World web extension XPC Service The web extension itself works and can update UserDefaults, which can then be read by SwiftUI app - everything works by the book. The app can communicate to the XPC service via NSXPCConnection - again, everything works fine. The problem is that the web extension does not communicate with XPC, and this is what I need so that I can avoid using UserDefaults for larger and more complex payloads. Web Ext handler code: class SafariWebExtensionHandler: NSObject, NSExtensionRequestHandling { func beginRequest(with context: NSExtensionContext) { // Unpack the message from Safari Web Extension. let item = context.inputItems[0] as? NSExtensionItem let message = item?.userInfo?[SFExte
What's the recommended way to bridge the compatibility gap there, so that macOS ACL rules are honoured in Linux and vice versa? I'm not aware of any guidance and I'm not sure there is any way to really create a bridge that's provides consistent behavior on both platforms. That also assumes you have the implementation flexibility to implement any behavior you want. Most distributed file systems are built on top of some other host/file system, which means they're actually constrained by the design underneath them, not by the connecting system. To put that another way, there are multiple views of the file system ACL state- the views individual clients create (based on the data exposed by your file system) and the truth, meaning how your file system will actually behave. The NFS ACL mapping draft is actually talking about this dynamic from the client's perspective when it says: The language of [1] allows a server some flexibility in handling ACLs that it cannot enforce completely accurately, as long as it adheres
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Help please. I have two macOS apps, that both share an App Group to exchange information. I use Xcode 15.2, Ventura 13.6.1 Until mid Feb 25, all was working fine, but now I get the same error message upon distribution attempt as many above: Provisioning profile failed Qualification; Profile doesn't support App Groups. I also now have two capabilities, both called App Groups in my Signing&Capability section; One lists my App Group, starting with the team name as it is a macOS app and another capability that just states: Application Groups entitlement may require additional configuration. With an arrow that points to my entitlement file that contains the macOS app group name. If I try to delete the second one, that was not there before, both App Group Capabilities are deleted, together with the corresponding entitlement. In my developer account, the app IDs have the App Group box selected but I did not further 'configure', including registration, as this is a macOS app and any name other than starting with
Topic:
Code Signing
SubTopic:
Entitlements
Tags: