Skip to main content
  • Book
  • © 2021

Mastering Swift Package Manager

Build and Test Modular Apps Using Xcode

Apress

Authors:

  • Lay down the methodology of modular apps from the very first steps
  • Organize your code files efficiently
  • Decouple parts of your code to increase your code flexibility

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access

This is a preview of subscription content, log in via an institution to check for access.

Table of contents (9 chapters)

  1. Front Matter

    Pages i-xi
  2. Introduction

    • Avi Tsadok
    Pages 1-5
  3. Organized Mess

    • Avi Tsadok
    Pages 7-28
  4. Swift Package to Rescue

    • Avi Tsadok
    Pages 29-52
  5. Design and Link Our First Package

    • Avi Tsadok
    Pages 53-81
  6. All About Dependencies

    • Avi Tsadok
    Pages 83-109
  7. And Sharing for All

    • Avi Tsadok
    Pages 111-139
  8. Testing Is Caring

    • Avi Tsadok
    Pages 141-165
  9. Spicing Up with Resources

    • Avi Tsadok
    Pages 167-187
  10. XCFrameworks

    • Avi Tsadok
    Pages 189-203
  11. Back Matter

    Pages 205-211

About this book

Maintaining an iOS project often results in thousands of code files scattered around your folders. Did you ever wanted to reuse those files with other projects but found yourself making copies of Swift files? You are not alone! Many iOS developers struggle with this issue as well—unorganized projects, duplicated files, difficulty in testing, and long complication times.  This book will show how Swift Package Manager can help you handle these problems by restructuring your project to make it efficient and straightforward. 

Swift Package Manager isn’t magic, but you’ll likely need a little guidance in using this nifty tool. You'll see how to reorganize projects smartly and efficiently, create your first Swift package, and learn what libraries are in this context. Then share your package with the rest of your projects. Next test your library’s quality. And then take your library to the next level of power by including files that go beyond just code. 



By going over the methodology of big project organization, you will have the ability to extend your project into the future as Apple sees it. Make no mistake—the path for a modular and flexible project is not easy. With the help of Swift Package Manager, it becomes possible and worth it.


What You'll Learn
  • Create a Swift package both from the command line and from Xcode 
  • Manage Swift packages in public and private Git repositories 
  • Build test suites to test integrations between packages


Who This Book Is For 
Senior iOS developers and team leaders who already have professional experience with Swift.

Authors and Affiliations

  • Tel Mond, Israel

    Avi Tsadok

About the author

Avi Tsadok is an accomplished iOS Developer with almost a decade of experience. He currently heads mobile developemnt at Any.do, a leading productivity app. He's also a regular contributor to "Better Programming" and has an active presence on Medium. He uses writing to combine his passion for helping educate the development community while working on refining his own skills in developing.

Bibliographic Information

  • Book Title: Mastering Swift Package Manager

  • Book Subtitle: Build and Test Modular Apps Using Xcode

  • Authors: Avi Tsadok

  • DOI: https://doi.org/10.1007/978-1-4842-7049-3

  • Publisher: Apress Berkeley, CA

  • eBook Packages: Professional and Applied Computing, Apress Access Books, Professional and Applied Computing (R0)

  • Copyright Information: Avi Tsadok 2021

  • Softcover ISBN: 978-1-4842-7048-6Published: 28 May 2021

  • eBook ISBN: 978-1-4842-7049-3Published: 27 May 2021

  • Edition Number: 1

  • Number of Pages: XI, 211

  • Number of Illustrations: 66 b/w illustrations

  • Topics: Apple and iOS

Buy it now

Buying options

eBook USD 49.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book USD 64.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Other ways to access