missing package product

42,935 results found

Post

Replies

Boosts

Views

Activity

SMAppService Help!
I'm seeking some help or guidance. I'm attempting to write an app for private use that listens for HID events from a RF reader and responds. I have a functional app, which has to be launched via sudo, to be able to execute IOHIDManagerOpen(manager, IOOptionBits(kIOHIDOptionsTypeSeizeDevice)) correctly. I'm trying to modify this app, now, to use SMAppService and bypass the need for terminal and sudo, but I'm getting confused at what parts of my code need to be embedded into the helper and how to manage communications between the different components. I make it to step 8 in https://developer.apple.com/forums/thread/721737 before I start getting lost. Does anyone know of a functional, SIMPLE, sample app I could take a look at, or a good guide that lays out all parts of an example? Everything I've found gives the bones but no meat.
2
0
241
Jun ’24
Reply to iOS 18 SwiftData ModelContext reset
I'm running into the same problem in my app. The proposed solution of using a @State variable isn't easily possible for me, as while I am using SwiftUI for the front-end of the app, I've isolated the SwiftData utility into an external package. I'm getting a crash only in the iOS 18 betas, on device and in the simulator. This model instance was destroyed by calling ModelContext.reset and is no longer usable. PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://F5001085-8312-4E76-9730-25A81E049FB0/SentPostcard/p1), implementation: SwiftData.PersistentIdentifierImplementation)
1w
Reply to SwiftData error on IOS18, Never access a full future backing data
It's a different error but in a same sense that Bindings try to access deleted SwiftData entities rather than switching to default values. Thread 1: Fatal error: Context is missing for Optional(SwiftData.PersistentIdentifier(id: SwiftData.PersistentIdentifier.ID(url: x-coredata://A6A3F87C-9EA0-43F7-BD6D-A31364117257/Profile/p5), implementation: SwiftData.PersistentIdentifierImplementation))
1w
Reply to Users report that opening the app will disconnect cellular data.
I’d like to clarify what “disconnect cellular data” means: Is it just that your app can’t access WWAN? Or that running your app causes some other app to lose access to WWAN? Or that running your app causes all other apps to lose access to WWAN? It sounds like the last case, but I want to be sure. And if it is the last case, does that include system apps? That is, does running your app cause Safari to lose access to WWAN? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
Reply to Drag&Drop DMG Installer to System folder ?!
The ideal solution would be for you to not have to install stuff in weird places. That’s the model we use for modern system plug-ins, aka app extensions and system extensions. If you agree, I encourage you to file an enhancement request explaining what you currently have to do, why it’s problematic, and what sort of user experience you’d like to see. In the meantime, however, I think an installer package is the best option for this sort of thing. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
mount(2) always returning errno 63 (File name too long) when mounting NFS share
I've been trying use the mount(2) function to programmatically mount an NFS share on my application, although I seem to be having issues with the function signature and the parameters that I'm supposed to be passing. According to the man pages this is the function's signature: int mount(const char *type, const char *dir, int flags, void *data); As the documentation is vague on the value of type, I've assumed that it was the network location, in the form of server.name:/some/location. So I've written the following test code: #include <stdlib.h> #include <stdio.h> #include <string.h> #include <errno.h> #include <sys/param.h> #include <sys/mount.h> int main(int argc, char **argv) { const char *type = nfsserver.lan:/some/path; const char *mntp = /Users/localuser/tmpmount; int ret = mount(type, mntp, 0, NULL); printf(ret = %dn, ret); printf(errno = %d (%s)n, errno, strerror(errno)); return 0; } Upon running this program on my Mac Pro running macOS 12.7.4 I got the following outp
2
0
212
2w
Reply to sysdiagnose PLBatteryAgent_EventBackward_Battery timestamp
WARNING A sysdiagnose log is one giant ball of implementation details. It’s fine to go rummaging in the log to investigate issues, but do not ship products that rely on these implementation details. Testing this on a sysdiagnose log I have lying around on my hard disk, these look like a time interval (a floating point count of seconds) since the Unix epoch: % sqlite3 ./logs/powerlogs/powerlog_2023-06-29_14-58_8ED20CBC.PLSQL SQLite version 3.43.2 2023-10-10 13:08:14 Enter .help for usage hints. sqlite> select timestamp from PLBatteryAgent_EventBackward_Battery; 1660575268.39297 … import Foundation print(Date(timeIntervalSince1970: 1660575268.39297)) // prints: 2022-08-15 14:54:28 +0000 Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
1w
in-app purchase api priceTier not a valid field name
We have been using the In-app-purchase API to manage Apple Store product prices, but since April 11, 2024, it started showing anomalies. For example, we would use this API to fetch the manually set prices for current products: https://developer.apple.com/documentation/appstoreconnectapi/read_price_information_for_an_in-app_purchase_price_schedule The URI with query and filter conditions is as follows: https://api.appstoreconnect.apple.com/v1/inAppPurchasePriceSchedules/product_id/manualPrices?fields[inAppPurchasePricePoints]=customerPrice,priceTier,proceeds,territory&fields[inAppPurchasePrices]=endDate,inAppPurchasePricePoint,manual,startDate,territory&include=inAppPurchasePricePoint,territory&fields[territories]=currency It was running normally at first, but after April 11, we started encountering an error: {errors: [{id: e193b752-3012-49db-8b0e-1d08c8980b77,status: 400,code: PARAMETER_ERROR.INVALID,title: A parameter has an invalid value,detail: 'priceTier' is not a valid field
3
0
424
Apr ’24
Swift Charts: .hour annotations do not appear
I'm building a Swift Chart that displays locations in a horizontal timeline. The chart is scrollable. When the chart is zoomed in, I want to show an annotation for every 6 hours. Unfortunately, when axisMarks are set to .stride(by: .hour, count: 6), the annotations do not appear for the first several months in the timeline. I tried setting .stride(by: .minute, count: 360), but the result is the same. Is this a Swift Charts bug, or am I doing something wrong? A reproducible example is below. To reproduce: Run the code below See that annotations are missing at the leading edge of the chart. They only show up from a certain point on the chart's domain. Tested on various iPhone and iPad simulators and physical devices, the issue appears everywhere. P.S. I am aware that the example code below is not performant and that the annotations overlap when the chart is zoomed out. I have workarounds for that, but it's beyond the scope of my question and the minimum reproducible example. struct ChartAnnotationsBug:
2
0
279
Jun ’24
SwiftData does not work on a background Task even inside a custom ModelActor.
I have created an actor for the ModelContainer, in order to perform a data load when starting the app in the background. For this I have conformed to the ModelActor protocol and created the necessary elements, even preparing for test data. Then I create a function of type async throws to perform the database loading processes and everything works fine, in that the data is loaded and when loaded it is displayed reactively. actor Container: ModelActor { nonisolated let modelContainer: ModelContainer nonisolated let modelExecutor: ModelExecutor static let modelContainer: ModelContainer = { do { return try ModelContainer(for: Empleados.self) } catch { fatalError() } }() let context: ModelContext init(container: ModelContainer = Container.modelContainer) { self.modelContainer = container let context = ModelContext(modelContainer) self.modelExecutor = DefaultSerialModelExecutor(modelContext: context) self.context = context Task { do { try await loadData() } catch { print(Error en la carga (error)) } } } } The probl
7
0
4.1k
Aug ’23
Reply to Generating a signature for promotional offers in Objective-c
Thanks for the quick and detailed response. I'm still going through your explanation, but due to time constraints, I would like to know a more straightforward solution. After downloading the .p8 file from Apple Developer, how can I proceed in Objective-C code to generate a signature? I am requesting Apple to make subscription offers presentation easier. For example, by creating a method with the main subscription product ID and the offer ID, the offer can be presented to the user without signature generation. Have a great day.
1w
Can't Get OrbitAnimation() to work on my project
DESCRIPTION OF PROBLEM I have an Apple Vision Pro App Store app called Starship SE Corps. I'm trying to add an animation for my app so that the starship entity orbits the Earth entity. I'm trying to use OrbitAnimation as discussed in the WWDC23 session Build Spatial Experiences with RealityKit (https://developer.apple.com/wwdc23/10080). However, I can't get the animation to work. STEPS TO REPRODUCE I created a sample test app called SampleOrbitAnimationApp to focus in on the code I'm having trouble with. When I build and run my sample test app, the app runs on both the visionOS 1.2 simulator and on my real Apple Vision Pro device running visionOS 1.2. However, my starship entity is static and is not animating/orbiting around my Earth entity. I tried putting my OrbitAnimation code in the RealityView update: closure. Doing that, however causes some property scope errors because the entity I refer to in the OrbitAnimation code is my entity that I create in the RealityView code block...so the update: closure code
9
0
439
3w
parallax on iPadPro
Is apple still deciding what we can view, disabling parallax on websites (safari) or is there a workaround? I am a graphic designer and web developer with an iPad Pro. iPadPro uses desktop css not tablet (due to its larger size), so it looks like the desktop website but the beautiful features of parallax are missing. Not helpful with troubleshooting and editing websites on iPadPro after hours. Anyone know a way to force parallax to work?
1
0
415
Mar ’24
How to properly add data files into a SwiftData ModelDocument file package
Hi all, I am working on a macOS/iOS sandboxed app with SwiftUI/SwiftData. The app saves its' data into a ModelDocument file. But I want to also save large binary data files into this file. I create the DocumentGroup scene with: DocumentGroup(editing: Entry.self, contentType: .myDocument) { MainWindowView() } In my MainWindowView, I use @Environment(.documentConfiguration) private var documentConfiguration to get the URL to the user created ModelDocument file URL. When I need to add large binary file into the ModelDocument file, I call a method in my model: func saveReferencedData(_ data: Data, documentURL: URL?) throws { let logger = Logger(subsystem: saveReferencedData, category: Asset) if let documentURL { let referencedFileName = (entryIdentifier)_(assetIdentifier).(assetType) let tempFileURL = documentURL.appending(components: referencedFileName) if documentURL.startAccessingSecurityScopedResource() { do { try data.write(to: tempFileURL, options: []) } catch { documentURL.stopAccessingSecurityScopedResour
2
0
191
3w