home.social

#macosdev — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #macosdev, aggregated by home.social.

  1. Synching a large amount of rows through CloudKit is pretty slow? Right now, I upload 20k of rows, and I pretty quickly hit the rate limit. Is it different on production?
    #iosdev #macosdev

  2. #Xcode should have a way to override the preview compile timeout for complex setups.

    I was trying to build a ModelContainer with a few photos and it takes longer than the allotted 5 seconds so it doesn’t work.

    I found ways around it but that 5 seconds is arbitrary and could be adjustable.

    Normally I want instant previews but this is “quicker" way to set up a complex environment repeatedly.

    I suppose I could buy a new Mac Studio to speed things if that were possible.

    #iOSDev #macOSDev

  3. If you have a #SwiftUI List/Grid and you are iterating over Model objects using id: \.self you may encounter a duplicate key in dictionary error resulting in a crash.

    Changing to id: \.id or removing the id parameter entirely should resolve this issue.

    for example:

    forEach(photo, id: \.self) *boom*

    forEach(photo) or forEach(photo, id: \.id) all good

    Tricky to debug from the error message/trace but easy fix.

    #iOSDev #macOSDev #SwiftData #coredata

  4. What’s the easiest way to take screenshots for the Mac App Store?

    You can’t just grab a screenshot from your desktop and upload it. They need to be in a 16:10 aspect ratio and exactly one of the following sizes:

    • 1280 × 800
    • 1440 × 900
    • 2560 × 1600
    • 2880 × 1800

    Simply resizing a standard desktop screenshot would distort the image.

    How are other people doing this without it looking stretched or skewed?

    #macOS #MacDev #macOSDev #MacAppStore #AppStore #AppStoreOptimisation #Screenshots

  5. 🐍💻 Fix Npgsql “Bad Protocol Version” on macOS & .NET 6

    If you’re building .NET 6 apps on macOS and connecting to PostgreSQL using Npgsql, you might encounter:

    🚫 Bad Protocol Version errors

    This usually means a mismatch between client and server expectations, but it can be resolved.

    Perfect for developers wrestling with cross-platform database connections.

    👉 Resolve the error here:
    sslinsights.com/fix-npgsql-bad

    #dotnet6 #Npgsql #macOSDev #PostgreSQL #DevOps #Programming #ErrorFix #SSLInsights

  6. An #introduction post.

    Hi, I'm Marty. I'm an #introverted #actuallyAutistic developer from Adelaide, South Australia. I started playing with electronics in the early '70s, built my own computers during the late '70s and early '80s, and have been programming ever since.

    These days I do a lot of iOS, macOS, and Android programming. Along with my son, I'm building an iOS game, a macOS weather app, and lots of internal-only projects.

    I was previously @marty.

    #macosDev #iosDev #webDev #androiddev

  7. I’m happy to build the payment system in #StoreKit 2, but the server-side requirement is a blocker for me as I’ve no experience with backend development, which makes third-party solutions look tempting.

    Any advice from other #Mac developers?

    #Swift #StoreKit2 #AppStore #macOS #macOSDev #MacDev

  8. Questions about #StoreKit 2 for #Mac apps: Do I really need a server to verify and validate receipts? From what I understand, this can be done locally on-device, but that may be susceptible to tampering.

    On #iOS, this seems less of an issue as jailbreaking would usually be required to crack the app. On the #Mac, however, things are quite different. Should I be looking at third-party solutions such as #FreemiumKit, #RevenueCat or #Superwall instead?

    #Swift #AppStore #macOS #macOSDev #MacDev

  9. 💼 Ready to level up your Apple platform development? I’ve helped developers tackle tough SwiftUI, Xcode, and macOS problems. Save time, improve your skills, and build better apps—book your $35/h session now! Limited availability.

    🔗 coach.fline.dev

    #AppleDeveloper #iOSDev #SwiftUI #macOSDev #IndieDev #XcodeHelp #SaveTime

  10. 💡 Struggling with data models, pagination, or app performance? A recent coaching client was stuck on these exact topics, and after 1 hour, he saved 20+ hours of potential frustration. You don’t need to do it alone—I'm here to help!

    👉 coach.fline.dev

    #iOSDev #SwiftUI #XcodeTips #DataModeling #IndieAppDev #macOSDev #SaveTime