开发项目过程中的积累,包括View, View Controller, Extension, Transition, Style, Utils
-
Add Accumulation as a submodule
cd top-level project directory git submodule add https://github.com/cp3hnu/Accumulation.git
-
Open the
Accumulation
folder, and dragAccumulation.xcodeproj
into the file navigator of your app project. -
In Xcode, selecting the application target under the "Targets" heading in the sidebar.
-
Add
Accumulation.framework
in "Framework, Libraries, and Embedded Content" and select "Embed & Sign" in "Embed". -
Expand the "Target Dependencies" group, and add
Accumulation.framework
.
NOTE:This project depends on
RxSwift
andBricking
,you don't need to addRxSwift
andBricking
dependencies in your project.
NOTE:This project depends on
RxSwift
andBricking
,if your project or other frameworks depend onRxSwift
andBricking
, this will causeCFBundleIdentifier Collision
.You can add
Accumulation
as local package to your project, as follow.
To add the Swift package as local package to your project:
- Check out your package dependency’s source code from its Git repository.
- Open your app’s Xcode project or workspace.
- Select the Swift package’s folder in Finder and drag it into the Project navigator. This action adds your dependency’s Swift package as a local package to your project.
- Make changes to the local package and your app, then verify them by building and running your app.
- When you’re done editing the local package, push your changes to its remote Git repository.
- When the changes have made it into the package’s next release, remove the local package from your project, and update the package dependency to the new version.