Knowledgebase

Managing Dependencies in Xcode Print

  • appletechnology, apple, guide, howto, solution, zillionkinghost, hosting, support
  • 0

Third-party code.

WHAT OPTIONS EXIST

The Swift Package Manager, integrated into the tooling CocoaPods, long-established Carthage, which builds frameworks you integrate manually Manual integration

WHAT TO PREFER FOR NEW PROJECTS

The Swift Package Manager.

WHY

It is built in, requires no additional tooling, and does not modify the project file heavily.

WHAT COCOAPODS DOES

Generates a workspace and modifies configuration.

WHAT THAT COSTS

Project file changes, and a workspace you must open instead of the project.

WHAT TO COMMIT

The dependency declaration, and the resolved version file.

WHY THAT SECOND FILE

It pins exact versions, so every machine builds identically.

WHAT TO CHECK BEFORE ADDING A DEPENDENCY

Whether you need it Maintenance activity Its effect on build time and binary size Whether it provides a privacy manifest Its licence

WHY THE PRIVACY MANIFEST POINT

Submissions are rejected where required manifests are missing.

WHAT TO AVOID

Many dependencies for small conveniences Dependencies that have not been updated for recent platform versions

WHAT TO REVIEW

Dependencies, periodically, removing unused ones.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot