-
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
Containeris 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
Gemfileto 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 mainAdd mbox prefix to the pod install command.
mbox pod installWait 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 gombox feature start [feature_name]
# For Example: mbox feature start hello_mboxBefore it, you need to run mbox pod install again.
mbox pod installUsually, 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-commitCheckout 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 mbox.develop@gmail.com
- Create an issue