Hello. I am attempting to wrap the C library libnfc as a Swift library. This is not for use on macOS - it's mainly for use on Linux (Raspberry Pi). I have a USB reader and my code appears to work so far, however the code/test/debug cycle is suboptimal if I'm running the code on the Pi. As I use a Mac for day-to-day coding, I'd prefer to use Xcode and my Mac for development. MacOS appears to capture the NFC hardware for its own frameworks and attempting to open a connection to the USB device gives a Unable to claim USB interface (Permission denied) error. ioreg shows that the hardware is claimed by an Apple framework: UsbExclusiveOwner = pid 10946, com.apple.ifdbun Is there a way to temporarily over-ride that system and use the hardware myself? I've tried Googling but most of the replies are out of date and Claude's advice launchctl unload /System/Library/LaunchDaemons/com.apple.ifdreader.plist doesn't appear to work... I'm wary of disabling SIP - is there a simple way to have access to the h
Search results for
show when run
112,655 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hey, So I know for a fact that multiple people have bought my Apps IAPs. In my Trends and analytics, however, I see 0.00 revenue. I get that it's not updated live (which it is on Android btw) but after 24hrs I'm starting to get a little worried. How long does it take for the analytics/trends to show the proper amounts? Thanks!
I'm working on a watchOS app using SwiftUI that updates its UI based on regular, time-driven logic. On a real Apple Watch, after the app has been running for ~1 minute, the device enters Always-On / power-saving display mode (screen dimmed, wrist down). From that point on, SwiftUI UI updates become noticeably delayed. The underlying logic continues to run correctly, but the UI only redraws sporadically and often catches up once the screen becomes fully active again. The app is running in workout mode, which keeps it alive and maintains WatchConnectivity, but this does not prevent UI redraw throttling. Below is a minimal reproducible example that demonstrates the issue. PlaybackModel.swift import SwiftUI @MainActor final class PlaybackModel: ObservableObject { @Published var beat: Int = 0 private var timer: Timer? func start() { timer?.invalidate() timer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { _ in Task { @MainActor in self.beat += 1 } } } func stop() { timer?.
Hi! I noticed that on my father's M1 Max MacBook Pro (64gb ram) there's an option for style transfer which I don't see on my M1 MacBook Air (16gb ram). I am running macOS Tahoe and he is running macOS Sequoia.
Topic:
Machine Learning & AI
SubTopic:
Create ML
Just to be clear, this has nothing to do with NSStatusItem or LSUIElement. Simply make a new Mac project in Xcode, in Swift, with Storyboard. Run it. You will see the console fill with these warnings.
Topic:
UI Frameworks
SubTopic:
AppKit
Tags:
I was wondering what the recommended way is to persist user settings with SwiftData? It seems the SwiftData API is focused around querying for multiple objects, but what if you just want one UserSettings object that is persisted across devices say for example to store the user's age or sorting preferences. Do we just create one object and then query for it or is there a better way of doing this? Right now I am just creating: import SwiftData @Model final class UserSettings { var age: Int = 0 var sortAtoZ: Bool = true init(age: Int = 0, sortAtoZ: Bool = true) { self.age = age self.sortAtoZ = sortAtoZ } } In my view I am doing as follows: import SwiftUI import SwiftData struct SettingsView: View { @Environment(.modelContext) var context @Query var settings: [UserSettings] var body: some View { ForEach(settings) { setting in let bSetting = Bindable(setting) Toggle(Sort A-Z, isOn: bSetting.sortAtoZ) TextField(Age, value: bSetting.age, format: .number) } .onAppear { if settings.isEmpty { context.insert(UserSetting
I'm experiencing a contradictory validation issue with DeviceActivityReportExtension that creates an impossible situation: The Problem: Without NSExtensionPrincipalClass in Info.plist → App Store Connect rejects upload with: Missing Info.plist values. No values for NSExtensionMainStoryboard or NSExtensionPrincipalClass found With NSExtensionPrincipalClass → Local install fails with: defines either an NSExtensionMainStoryboard or NSExtensionPrincipalClass key, which is not allowed for the extension point com.apple.deviceactivityui.report-extension Setup: Extension point: com.apple.deviceactivityui.report-extension Using SwiftUI with @main attribute and DeviceActivityReportExtension protocol Xcode 16.2, iOS 17.6 deployment target Code structure: @main struct SpoolReport: DeviceActivityReportExtension { var body: some DeviceActivityReportScene { // Report scenes here } } The extension builds and runs perfectly without NSExtensionPrincipalClass, but cannot be uploaded to App Store Connect. Adding the key
After I add all my billing details and card numbers and click proceed, it shows a page with Thankyou note but after i logout and re- login it shows me to complete my purchase and takes me to the same cycle of re-entering all details And also to it, even after 48hrs also there have been no followups or anything not knowing if apple ever received my requests
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program
final class AlarmScheduler { private let manager = AlarmManager.shared private let holidayProvider = HolidayProvider.shared ... func cancel(_ alarm: AlarmModel) throws { try manager.cancel(id: alarm.id) Task { await AlarmLiveActivityManager.end(alarmID: alarm.id) } } ... enum AlarmLiveActivityManager { static func upsert( alarmID: UUID, attributes: AlarmAttributes, content: ActivityContent ) async { let matches = activeActivities(for: alarmID) if let activity = matches.first { await activity.update(content) await endActivities(matches.dropFirst()) return } _ = try? Activity.request( attributes: attributes, content: content, pushType: nil ) } static func end(alarmID: UUID) async { let matches = activeActivities(for: alarmID) await endActivities(matches) } private static func activeActivities(for alarmID: UUID) -> [Activity< AlarmAttributes >] { Activity>.activities.filter { activity in guard isActive(activity.activityState) else { return false } return activity.content.state.alarmID == alarmID } }
Topic:
App & System Services
SubTopic:
Widgets & Live Activities
Tags:
I’m trying to understand how App Store Connect calculates payouts and currency conversion. For November, my report shows: Total Sales: $18.14 Proceeds: $12.45 However, the amount I actually received was 7.69 EUR. I’m confused about: How Apple goes from $12.45 proceeds to 7.69 EUR Which exchange rate is applied and on which date Whether additional fees, taxes, or adjustments are applied beyond Apple’s commission I’ve already tried contacting Apple by email, but I haven’t received any response yet. If anyone has experience with this or can explain how Apple calculates the final payout amount, I’d really appreciate your help.
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
I think that it would be helpful to have better interoperability between Swift and JavaScript. There are a lot of useful packages on NPM that don't have equivalents for Swift. It would be helpful if Apple provided easier ways to use NPM packages in a Swift project. Currently, the JavaScriptCore framework is missing many standard things used in many packages, like the fetch API. It would be helpful to be able to run sandboxed JavaScript code inside of a Swift app but allow access to specific domains, folders, etc., using a permissions system similar to Deno.
[CRITICAL] Metal API Memory Leak - Heap Memory Never Released to OS (CWE-400) Security Classification This issue constitutes a resource exhaustion vulnerability (CWE-400): Aspect Details Type Uncontrolled Resource Consumption CWE CWE-400 Vector Local (any Metal application) Impact System instability, denial of service User Control None - no mitigation available Recovery Requires application restart Summary Metal heap allocations are never released back to macOS, even when the memory is entirely unused. This causes continuous, unbounded memory growth until system instability or crash. The issue affects any application using Metal API heap allocation. This was discovered in Unreal Engine 5, but reproduces in a completely blank UE5 project with zero application code - confirming this is Metal framework behavior, not application-level. Environment OS: macOS Tahoe 26.2 Hardware: Apple Silicon M4 Max (also reproduced on M1, M2, M3) API: Metal Reproduction Steps Run any Metal application that allocates and
Hello guys, i need a little help. Im building an alarm clock app, pretty good one, and i have my own sounds i want to use as the alarm ring but notifications on apple cant work when the phone is turned off or the device is in silent mode (Or at least thats how i understand it) unless they have this feature called critical alerts that lets you have notifications even when the phone is turned off or silented. Without this, the phone can do just one beep and only when you open the notification, then it starts ringing but how is this supposed to wake you up? Alarmy has this worked out fine and i cant figure out how, maybe someone here knows. Im thinking maybe they have the critical alerts enabled but then i dont know why Apple would approve theirs and not mine. I tried to submit for the critical alerts feature but apple didn’t approve it saying the app is not the use case and im kinda lost. The whole app could be ruined because of this. So my question is. is there any way how i can use my custom sounds as a notif
Topic:
App & System Services
SubTopic:
Notifications
This is unique situation, save your rhetoric calling me crazy unless you’re willing to look at the evidence I’ve collected over the last 2 years. My entire family is being stalked and harassed by a DOD Contractor named Galapagos Federal Systems. They are literally using our identities to and accounts they’ve created to run Amazon Marketplace Business Accounts as sellers. They have amended my tax returns and they have hijacked my domain, which is MauiEasyRiders.Com. It’s pretty easy to see that they’ve hikacked my domain as they are using more than 20 ports around the clock, and I had to walk away from my business of 15 years because of a DDoS attack that is literally impossible to escape. These people are the lowest of the low. They have 250 million dollars in DODcontracts and they are registered as a small section 8a Native Hawaiian owned business, regardless of the fact that the owner is not Hawaiian and not from Hawaii, and the business was formed in Delaware. Their headquarters is literally a hou
Topic:
Community
SubTopic:
Apple Developers
Thanks for the replies. You are both quite right that I should have provided more information. When I say that notarization succeeds, I mean that I submit the dmg file produced by the build to the Apple notarization service and receive a status of 'Accepted'. I take this to mean all is well. When I say that notarization fails, I mean that the notarization step produces a status of 'Invalid'. Retrieving the notarization log indicates that the binaries were not signed. I've just gone through this again with my two machines. The build here is performed by scripts that are maintained in source code control and forced to be identical in both setups. The build infrastructure is also the same for both. Before beginning, both machines were powered off for a period of time. Power up one machine. Ensure the source tree is up-to-date. Run the build to produce a signed dmg. Submit it for notarization. The submission produces a status of Accepted. Power down the first machine. Power up the second machine. Again e
Topic:
Code Signing
SubTopic:
Notarization