-
Notifications
You must be signed in to change notification settings - Fork 89
Getting Started iOS
简体中文 | English
Init a MBox workspace
mkdir HelloMBox && cd HelloMBox # Create a directory
mbox init ios # Initialize a workspace
Container
is a git repository for storing all of app project or dependency specification.
Add .mboxconfig
file to the root directory of your project.
{
"podfile": "Relative path to Podfile",
"xcodeproj": "Relative path to xcodeproj",
"podlock": "Relative path to Podfile.lock" // optional
}
Commit and push this change.
If you don't have your own project, here is a demo.
We strongly recommend you use
Gemfile
to manager the version ofCocoaPods
.
Run this command to add your app's repository to the workspace.
mbox add [GIT_URL] [BRANCH]
# For Example: mbox add https://github.com/MBoxPlus/MBoxReposDemo.git main
Add mbox
prefix to the pod install
command.
mbox pod install
Wait for minutes. (How long depends on how many pods)
Use mbox go
to open Xcode Workspace. You can now build and run your App.
mbox go
mbox feature start [feature_name]
# For Example: mbox feature start hello_mbox
Before it, you need to run mbox pod install
again.
mbox pod install
Usually, we have some dependent repositories to develop at the same time.
mbox add [DEPENDENT_GIT_URL] [TARGET_BRANCH] --checkout-from-commit
# For Example: mbox add https://github.com/SnapKit/SnapKit.git develop --checkout-from-commit
--checkout-from-commit
Checkout from the commit of the specific version that matches the dependency relationship.
Please check if the .podspec
file is under the root repo directory. Otherwise, you need to create a .mboxconfig
file at the root directory.
{
"podspecs": ["Relative path to podspec", ...]
}
Run mbox pod install
again. You will find this repo is under the Development Pods
group in Xcode.
Fork it and send a pull request.
- Contact us with Lark
- Send an email to [email protected]
- Create an issue