missing package product

42,927 results found

Post

Replies

Boosts

Views

Activity

Reply to Apple pay - determine active card
Hi @Raj_Jayaraj23, The applePayCapabilities API is the preferred method. It has the beta flag because its implementation details are subject to change between now and the public release of iOS 18 and Safari 18. For more information on its expected usage during the beta period, please see Using the Apple Pay JS SDK for iOS 18. Because getting developer feedback during the beta period is crucial to resolve unexpected issues in the future, please consider the following: Use the beta URL to test the new methods and their implementation against your test environments. This also provides the benefit of testing against third-party web browsers as well. If you're content with your existing implementation in production, and want to support Apple Pay on third-party web browsers when iOS 18 is publicly released, use the new methods to your production environments, and use the production URL. This will continue to work only in Safari, but will support third-party web browsers at a later date. I
1w
Reply to SwiftData - error: Error: Persistent History (2) has to be truncated due to the following entities being removed: ( A )
If this error occurs, any saved data will be lost. For example, if you save data in A and open B, an error will occur and the data in A will be deleted. It doesn't seem to be a problem, but it would be a problem if the data disappeared. This is because it is used for data persistence purposes. Yeah, that's again because the container at step 3 doesn't know model A at all, given that you use only model B as the container schema. Is there any reason why you create a model container with only model A at step 1 and only model B at step 3? Given that you would retain the data, it seems to me that you'd create the container with both model A and B at both step 1 and 3: let container = try? ModelContainer(for: A.self, B.self) If you do need to change the schema at some point (by removing model A in this example), consider creating a migration plan (SchemaMigrationPlan) and using it to create a model container so that the existing data is migrated to the new schema. Best, —— Ziqiao Chen  Worldwide Developer
1w
Specifying Item Spacing in UICollectionLayoutListConfiguration
Currently, I am using UICollectionViewCompositionalLayout to achieve the following list layout with spacing: We were thinking of trying out UICollectionLayoutListConfiguration due to its ability to support swipe actions. We would like to specify the spacing between each item. However, I do not find a way to specify item spacing in UICollectionLayoutListConfiguration. Does UICollectionLayoutListConfiguration not support item spacing, or have I missed something? Thanks.
1
0
131
1w
Reply to How can I access Model3D entity to set shader material effects
@richoncode There's no supported way for you to access the entity from a Model3D with the APIs currently available. If you'd like us to consider adding the necessary functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?. That said and as you alluded to, you can use a RealityView with a ModelEntity, but you will lose some of the functionality of Model3D. For example you can't use ResolvedModel3D resizable(_:), but you can achieve a similar effect using a RealityView and GeometryReader3D. If you have a specific use case and can't find a way to achieve it, create a new post with the question, reply with the link and I'll help you.
1w
Reply to What is the secret to good UI?
If there were a magic recipe, it would be known. You should read Apple UI guidelines, there is a lot to learn here. But a few points to pat attention for the UX: know who are your target users: very experienced or in a specific business or any one having an iPhone, put yourself in the user shoes or mind, and try to forget what you know about your code: what is obvious for you may be hard to guess or not natural for a casual user A good way is to test your UI and UX with a few target users, even before fully coding. Keep it as simple as possible, do not overcrowd the UI and to not require 10 screens to get to the point. Navigation between all your screens must be simple to understand. The storyboard approach of UIKit is a great way to check. More difficult with SwiftUI. Which means, when you design UX, try to imagine the user thinking when he/she looks at the specific screen. Avoid absolutely to get your user lost and provide a way to easily get back to a safe starting point (Home Screen often). try t
1w
How to view USB descriptors?
I am developing a USB UVC product and we are seeing poor performance on VLC. We are streaming 16 bit 1080p60 Uncompressed video but VLC says the codec is 32 bit RV32 Uncompressed with a frame rate of 0.0000033. Something is obviously wrong and I want to view the USB descriptors on my Mac to verify what the Mac is seeing the USB device is capable of. How can I do this? Looking online I found an IORegistryExplorer application but that doesnt seem to give me the full descriptors of the connected USB device, just some metadata about the connection. Any help finding the descriptor would be appreciated.
1
0
149
1w
System Keychain not available from a Daemon
I've been trying to use Keychain from a Daemon for some time now. In the end, I managed to have the System Keychain work for my application and I moved to work on other parts. I finally went back to dealing with Keychain, but the code I wrote before stopped working. Even the application I wrote to test things out stopped working for me, and now it gives the The authorization was denied. error. To give more perspective into what I am doing, I am running a Sandboxed Launch Daemon wrapped in an App-like structure. I register it from my main app via SMAppService API. I also have a System Extension. My test app was structured in the same way and I used the following code to put a new key into the System Keychain and get its reference: var err: Unmanaged? let access = SecAccessCreateWithOwnerAndACL(getuid(), getgid(), UInt32(kSecUseOnlyUID | kSecHonorRoot), nil, &err) if let err = err { log.error(Failed to create SecAccess: (err.takeUnretainedValue().localizedDescription)) } let request = [ kSecClass: kSecClass
5
0
184
1w
How do I do unit tests for code using system objects?
That's probably a bad title, let's try with specifics: we have a network extension, it has some classes / functions of its own, and they, when push comes to build, depend on (for example) NEAppProxyFlow and its subclasses. The code is written in Swift, since it is the language of the future. If I want to do a unit test for my code, I need to provide something that at least looks like NEAppProxyFlow, since I can't otherwise create one. I thought I could provide my own NetworkExtension module for test case, but that... did not work well, and I still don't understand why. On the other hand, I'm really bad at making unit tests, so the odds that I'm missing something fairly obvious to most other people are pretty high.
4
0
128
1w
How to get all ManagedSettingStore objects
Using the Screen Time API, I can create multiple ManagedSettingStore objects with different names. Is there a way to retrieve these later by name? For example, if I create them dynamically from a configuration managed by the user of my app, and the app crashes or its data gets corrupted, how can I get rid of stale ManagedSettingStore objects that I no longer know? Or, if I somehow lose the name of a ManagedSettingStore I created, how long does the store stay active? Forever? How can I get rid of the stale store?
0
0
75
1w
Trusted certificate is not trusted
I am building a command line app to interface to a Bosch Smart Home Controller (SHC) using URLSession and running into a problem with certificate authentication. Sending a request to the SHC results in a -1202 error The certificate for this server is invalid... which was expected as it's counted as a self-signed cert. In URLSessionDelegate SecTrustEvaluateWithError returned the CFError.localisedDescription Smart Home Controller Productive Root CA” certificate is not trusted So I used SecItemAdd to add this certificate to my login keychain and then set it to Always Trust, but the error still persists. routines:OPENSSL_internal:SSLV3_ALERT_BAD_CERTIFICATE:/AppleInternal/Library/BuildRoots/a8fc4767-fd9e-11ee-8f2e-b26cde007628/Library/Caches/com.apple.xbs/Sources/boringssl/ssl/tls_record.cc:592:SSL alert number 42 I've tried various workarounds and also added an intermediate certificate received from the SHC to my login keychain with Always Trust set but the error persists - am I missing somethi
5
0
214
1w
Questions about ConsumptionRequest properties
Hello. platform: Please let me know which platform 'Non-Apple platform' is referring to. For example, Google or Amazon? And is it correct to mean the platform that consumed the products received due to in-app purchases? playTime: Does 'playTime' mean the time when the customer purchased the app and actually accessed the app? Or do you mean the time you accessed after the in-app purchase?
1
0
132
1w
Reply to Issue with UserDefaults Data Loss after App Transfer and TestFlight Installation
I understand what you “need”, I just can’t give it to you. All I can do is relay my experience: I’m not aware of any systematic problem that causes user defaults to get lost during an app transfer. In general, TestFlight does an excellent job of replicating the App Store experience. So if you’re seeing user defaults being lost in your TestFlight build, that warrants further investigation. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
Usage of IsSIMInserted in iOS 18
I am developing an iOS application where I need to detect if a SIM card is inserted in the device(either physical / eSim). I am targeting iOS 12 and later. I have tried using CTTelephonyNetworkInfo and CTSubscriber, but I am encountering issues with permissions and API availability in iOS 18 beta 3. if #available(iOS 16.0, *) { let subscriber = CTSubscriber() if #available(iOS 18.0, *) { do { if subscriber.isSIMInserted { return SIM card is inserted. } else { return No SIM card detected. } } catch { return Error determining if SIM is inserted: (error.localizedDescription) } } else { return isSIMInserted is only available on iOS 18.0 or newer. } } else { return isSIMInserted is only available on iOS 16.0 or newer. } if let carriers = networkInfo.serviceSubscriberCellularProviders, let carrier = carriers.first?.value, let _ = carrier.mobileNetworkCode { return SIM card is available.nCarrier Name: (carrier.carrierName ?? None) } else { return No SIM card installed } } in iOS 18 it always returning No SIM card de
2
0
145
1w
PreviewApplication open Spatial Video issue
Hi, I have a Spatial Video that I am trying to load in a visionOS app with PreviewApplication API let url = URL(string: https://mauiman.azureedge.net/videos/SpatialJourney/watermelon_cat.MOV) let item = PreviewItem(url: url!) _ = PreviewApplication.open(items: [item]) When I run the application, I am getting the following error. Did I miss anything? QLUbiquitousItemFetcher: could not create sandbox wrapper. Error: Error Domain=NSPOSIXErrorDomain Code=2 couldn't issue sandbox extension com.apple.quicklook.readonly for '/videos/SpatialJourney/watermelon_cat.MOV': No such file or directory UserInfo={NSDescription=couldn't issue sandbox extension com.apple.quicklook.readonly for '/videos/SpatialJourney/watermelon_cat.MOV': No such file or directory} #PreviewItem The screen shows up as: Putting the spatial video locally, I get the following error: let url = URL(fileURLWithPath: watermelon_cat.MOV) let item = PreviewItem(url: url) _ = PreviewApplication.open(items: [item]) Error getting the size of file(w
3
0
179
1w