home.social

#swiftpackagemanager — Public Fediverse posts

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

fetched live
  1. Working with open source at @snappmobile taught me what makes Swift packages truly good—beyond just working code.

    Consolidated it into a 3-part checklist series: docs, dev workflow, community. All the stuff that's scattered across different resources.

    Building in public, sharing the journey.

    #Swift #SwiftLang #OpenSource #iOSDev #SwiftPackageManager #BuildingInPublic

  2. Working with open source at @snappmobile taught me what makes Swift packages truly good—beyond just working code.

    Consolidated it into a 3-part checklist series: docs, dev workflow, community. All the stuff that's scattered across different resources.

    Building in public, sharing the journey.

    #Swift #SwiftLang #OpenSource #iOSDev #SwiftPackageManager #BuildingInPublic

  3. Why didn't Swift have this sooner? 𝑆𝑤𝑖𝑓𝑡 𝐶𝑜𝑛𝑓𝑖𝑔𝑢𝑟𝑎𝑡𝑖𝑜𝑛 1.0 is here, bringing standardized runtime configuration to Swift projects built with SwiftPM.

    🔗: swift.org/blog/swift-configura by 𝗛𝗼𝗻𝘇𝗮 𝗗𝘃𝗼𝗿𝘀𝗸𝘆

    #Swift #SwiftPackageManager #Configuration

  4. While tuning my SDK, I added an example app as an executable target. If it uses APIs beyond what your SDK supports (.𝘱𝘭𝘢𝘵𝘧𝘰𝘳𝘮𝘴), the compiler fails. Expected.

    But: any dependencies the example app uses get declared in the package config - they show up when users add your SDK. Users get frameworks they didn't ask for.

    Example apps should only use the SDK they're made for. Keeps things clean.

    #iOS #SDK #SwiftPackageManager #OpenSource

  5. What if your Swift packages could adapt to different build configurations automatically?

    SPM Traits act as powerful feature flags, enabling conditional compilation, optional dependencies, and advanced package configurations. Think of them as the missing piece for building truly flexible, modular Swift packages that adapt to your project's needs.

    🔗: theswiftdev.com/2025/all-about by @tiborbodecs

    #SwiftPackageManager #Swift #SPM #Modular

  6. Do you treat compiler warnings as errors in your Swift Packages?

    A practical tutorial on how to take control of compiler warnings in Swift Packages using Swift 6.2's new settings. A must-read for anyone who loves a clean build.

    🔗: useyourloaf.com/blog/treating- by @kharrison

    #Swift #SwiftPackageManager

  7. Want to turn your SwiftUI project into a reusable Swift package?
    In this Sunday's video, I walk you through creating, structuring, and publishing an SF Symbol Picker package to GitHub.
    youtu.be/_KYc2wJVIDE
    #SwiftUI #SwiftPackageManager #iOSDev

  8. Want to turn your SwiftUI project into a reusable Swift package?
    In this Sunday's video, I walk you through creating, structuring, and publishing an SF Symbol Picker package to GitHub.
    youtu.be/_KYc2wJVIDE
    #SwiftUI #SwiftPackageManager #iOSDev

  9. Apple öffnet Swift Build für die Entwickler-Community
    Apple hat einen weiteren Schritt in Richtung Open Source unternommen: Swift Build, die zentrale Build-Engine für Swift-Projekte, steht ab sofort als Open-Source-Software zur Verfügung. Damit erhalten
    apfeltalk.de/magazin/news/appl
    #News #Services #Apple #BuildSystem #Linux #llbuild #OpenSource #Softwareentwicklung #Swift #SwiftBuild #SwiftPackageManager #Windows #Xcode

  10. Apple öffnet Swift Build für die Entwickler-Community
    Apple hat einen weiteren Schritt in Richtung Open Source unternommen: Swift Build, die zentrale Build-Engine für Swift-Projekte, steht ab sofort als Open-Source-Software zur Verfügung. Damit erhalten
    apfeltalk.de/magazin/news/appl
    #News #Services #Apple #BuildSystem #Linux #llbuild #OpenSource #Softwareentwicklung #Swift #SwiftBuild #SwiftPackageManager #Windows #Xcode

  11. I also feel that Xcode shouldn’t be recompiling it every time? But incrementally, with no change whatsoever to the package? I feel that I’m missing a setting somewhere.

    Any pointers or help would be appreciated.

    #SwiftDev #Xcode #SwiftPackageManager #XcodeBuilds
    [2/2]

  12. why does switching between identical branches with identical Package.resolved make #SwiftPackageManager (or its Xcode integration?) do anything

  13. I'm thinking about moving some models to a Swift Package.

    I wanted to do that some time ago but couldn't find a way to exclude development assets from a package when building in Release (Archive). I currently have files in my "Preview Content" folder that are used for Previews with Core Data.

    Is that still the same?

    #SwiftPackageManager #Swift #SwiftPM #Xcode

  14. I'm thinking about moving some models to a Swift Package.

    I wanted to do that some time ago but couldn't find a way to exclude development assets from a package when building in Release (Archive). I currently have files in my "Preview Content" folder that are used for Previews with Core Data.

    Is that still the same?

    #SwiftPackageManager #Swift #SwiftPM #Xcode

  15. SPX 1.2.0 is available now on GitHub and Homebrew!

    This update confirms compatibility with Swift 5.8 and 5.9 and drops Swift 5.7.

    This update addresses some memory leaks. Looking for feedback here.

    github.com/FullQueueDeveloper/

    #ScriptingWithSwift #SPX #Swiftlang #SwiftPackageManager

  16. Have you ever wanted to create your own #Swift Package? Let me show you how to do this. Include assets as well with your package. A starter project is included, but you can cut to the chase by going directly to 4:21 in the video #SwiftPackageManager
    youtu.be/o0fQC7JU-Ts

  17. Have you ever wanted to create your own #Swift Package? Let me show you how to do this. Include assets as well with your package. A starter project is included, but you can cut to the chase by going directly to 4:21 in the video #SwiftPackageManager
    youtu.be/o0fQC7JU-Ts

  18. Hey #SwiftUI experts, when using SwiftUI Previews in a Swift Package, are PreviewProviders automatically removed from the package when archiving an app, as it is the case with an app, or not?

    If not, how to deal with that?
    I’m not sure we can use compiler directives like if DEBUG in packages, can we?

    #Xcode #spm #swiftpackagemanager

  19. Hey #SwiftUI experts, when using SwiftUI Previews in a Swift Package, are PreviewProviders automatically removed from the package when archiving an app, as it is the case with an app, or not?

    If not, how to deal with that?
    I’m not sure we can use compiler directives like if DEBUG in packages, can we?

    #Xcode #spm #swiftpackagemanager

  20. I would love first class support from Swift Package Manager for JavaScript-style `devDependencies` and `npx <target-name>`. Until then, I use Swish. I use Swish to push to the App Store, generate assets, generate my xcodeproj, take screenshots, and even generate code.

    Now available on HomeBrew!

    brew tap fullqueuedeveloper/swish/swish
    brew install fullqueuedeveloper/swish

    github.com/FullQueueDeveloper/

    #opensource #swiftpackagemanager #iosdev #swiftdev #scripting #devtools #swiftlang

  21. When using Swift Packages in Xcode, is there a way to exclude files conditionally (in DEBUG or similar)? I know I can exclude files but I want them while in development.

    I have a package that contains developments resource/assets (used to seed a Core Data database for the simulator + for Previews, with images and files), but I don't want to include these files in the package used by the real app when archiving.

    Can we achieve that?

    #Xcode #swift #swiftpackagemanager #iOS #iosdev #CoreData

  22. When using Swift Packages in Xcode, is there a way to exclude files conditionally (in DEBUG or similar)? I know I can exclude files but I want them while in development.

    I have a package that contains developments resource/assets (used to seed a Core Data database for the simulator + for Previews, with images and files), but I don't want to include these files in the package used by the real app when archiving.

    Can we achieve that?

    #Xcode #swift #swiftpackagemanager #iOS #iosdev #CoreData

  23. I can't export Localizations for my iOS app or the SPM packages used by this iOS app with Xcode Product > Export Localizations.

    The packages only specify the iOS platform but it seems Xcode also compiles the app/modules for macOS (whereas the supported destinations for the app are iOS and iPadOS).

    I posted more details here: developer.apple.com/forums/thr

    Any idea how to have this export work?

    #xcode #swift #swiftpackagemanager #spm #xcodelocalization

  24. I can't export Localizations for my iOS app or the SPM packages used by this iOS app with Xcode Product > Export Localizations.

    The packages only specify the iOS platform but it seems Xcode also compiles the app/modules for macOS (whereas the supported destinations for the app are iOS and iPadOS).

    I posted more details here: developer.apple.com/forums/thr

    Any idea how to have this export work?

    #xcode #swift #swiftpackagemanager #spm #xcodelocalization

  25. @jerosanchez Yo es que más pestañas abiertas en el navegador no quiero así que suelo usar apps nativas de #MacOS o de ##iOS que se puedan ejecutar en #M1 así queda todo recogidito :) por ahora he encontrado MastodonKit que es un #SwiftPackageManager

  26. Moving my final dependencies to #SwiftPackageManager included Crashlytics. ‘Interesting’ to see all the additional dependencies Firebase brings in when only the Crashlytics library enabled. Xcode (to my knowledge?) doesn’t provide a way to hide dependencies under the importing package, so they aren’t staring at me every day.

    Advice on alternatives to Crashlytics? All I want is notifications any time my app crashes, with stack traces. (Feels like Apple’s opt-in system too limiting.)

  27. Moving my final dependencies to #SwiftPackageManager included Crashlytics. ‘Interesting’ to see all the additional dependencies Firebase brings in when only the Crashlytics library enabled. Xcode (to my knowledge?) doesn’t provide a way to hide dependencies under the importing package, so they aren’t staring at me every day.

    Advice on alternatives to Crashlytics? All I want is notifications any time my app crashes, with stack traces. (Feels like Apple’s opt-in system too limiting.)

  28. Yesterday's session is up!
    youtu.be/hNeIHthNaqI

    Friday Joy Rides are for cutting loose and seeing where the creativity takes me. Ended up makeing a grid system in SwiftUI. Ended up modeling our weekly schedule, and rendering it into this grid. And we added a command to export the schedule as PNG.

    #indieappdeveloper #fridayjoyride #swiftdeveloper #iosdeveloper #swiftui #swiftpackagemanager

  29. I'm thrilled to announce that I'm currently working on Stuffatory 2.0! This update will use an architecture called The Composable Architecture (TCA). Make sure to follow along for all the latest updates.
    Are you also using #TCA in your app development?

    Let's connect!

    #appdevelopment #apparchitecture #Stuffatory2.0 #appupdates #staytuned #indiedev #indieappdev #modularapp #swiftpackages #spm #swiftpackagemanager

    instagram.com/p/CnVNMoRD5Ys/?i