Mastering Swift Package Manager: Build and Test Modular Apps Using Xcode

Tsadok, Avi

  • 出版商: Apress
  • 出版日期: 2021-05-28
  • 定價: $1,750
  • 售價: 8.0$1,400 (限時優惠至 2024-04-28)
  • 語言: 英文
  • 頁數: 211
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484270487
  • ISBN-13: 9781484270486
  • 相關分類: Apple Developer
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

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.

商品描述(中文翻譯)

維護一個 iOS 專案通常會導致數千個程式碼檔案散落在你的資料夾中。你是否曾經想要重複使用這些檔案在其他專案中,但卻發現自己只能複製 Swift 檔案?你並不孤單!許多 iOS 開發者也面臨這個問題--專案組織混亂、檔案重複、測試困難以及編譯時間過長。本書將展示如何使用 Swift Package Manager 來解決這些問題,重組你的專案,使其高效且直觀。
Swift Package Manager 不是魔法,但你可能需要一點指導來使用這個方便的工具。你將學習如何智慧且有效地重新組織專案,建立你的第一個 Swift 套件,並了解在這個情境中的函式庫。然後將你的套件分享給其他專案。接著測試你的函式庫品質。最後,透過包含超越程式碼的檔案,將你的函式庫提升到更高的層次。

通過研究大型專案組織的方法論,你將能夠將你的專案延伸到未來,就如蘋果所預見的。毫不懷疑--建立一個模組化和靈活的專案並不容易。但借助 Swift Package Manager 的幫助,這是可能且值得的。
你將學到什麼

  • 從命令列和 Xcode 中建立 Swift 套件


  • 在公共和私有 Git 儲存庫中管理 Swift 套件


  • 建立測試套件以測試套件之間的整合



本書適合對象
具有 Swift 專業經驗的高級 iOS 開發者和團隊領導者。

作者簡介

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.

作者簡介(中文翻譯)

Avi Tsadok 是一位經驗豐富的 iOS 開發者,擁有近十年的經驗。他目前在領先的生產力應用程式 Any.do 擔任移動開發主管。他也是「Better Programming」的定期撰稿人,並在 Medium 上活躍。他利用寫作來結合他對幫助開發社群教育的熱情,同時不斷提升自己的開發技能。