验证spec
pod spec lint --sources=https://github.com/CocoaPods/Specs.git,ssh:(库的URL) --use-libraries --allow-warnings
验证lib
pod lib lint LZO2oService.podspec --sources=(库的URL) --allow-warnings --use-libraries
push 远程
pod repo push LZRepo LZXXXModule.podspec --use-libraries --allow-warnings
添加 repo
pod repo add LZRepo (URL)
// 其他组件需要调用 需要先注册
+(void)load{
[MGJRouter registerURLPattern:@"LZXX://LZBusiness/pushGoodsAdressVC" toHandler:^(NSDictionary *routerParameters) {
UINavigationController *navigationVC = routerParameters[MGJRouterParameterUserInfo][@"navigationVC"];
ECShopDetailViewController *shopDetailViewVC = [[ECShopDetailViewController alloc] init];
[navigationVC pushViewController:shopDetailViewVC animated:YES];
}];
}
// 使用方式
- (IBAction)skipToUserCenterModuleAction:(UIButton *)sender {
[MGJRouter openURL:@"LZXX://LZO2oService/pushServiceOrderVC"
withUserInfo:@{@"navigationVC" : self.navigationController,
@"Key":@"Name"
}
completion:nil];
}