T解析podfile和批量修改组件版本号.
Project description
ios 自动修改podfile组件版本号,支持批量修改
如果podfile中不存在组件aaa,则添加到podfile第一个target中,如果有:configurations=>['Debug']则保留 f_podfile = '/Users/lch/Desktop/Podfile'
组件统一更改版本号 update_component_with_newversion(f_podfile, ['aaa:1.0','bbb:2.0'], 'master')
组件统一更改成git指向 update_component_with_newversion(f_podfile, ['aaa:https://github.com/aaa.git','bbb:https://github.com/bbb.git'], 'master')
podfile转为model对象
podfile = '/Users/lch/Documents/z/proj/Podfile'
podfile_model = CIPodfileParse.getPodfileModel(podfile)
print(podfile_model)
验证字符串是不是版本号
isversion = CIVersionManager.isVersion('1.1.2')
print(isversion)
执行shell脚本
# os_system('cat aaa')
(status, msg) = os_popen('xcodebuild aaa > /dev/null')
print(status)
print(msg)
''' install! 'cocoapods', :deterministic_uuids => false source 'https://gitlab.com/wireless/ios/static.git' platform :ios, '9.0' target 'HHYProject' do #登录 pod 'aaaa', '1.10' , :configurations=>['Debug']
pod 'bbbb', '1.0' , :configurations=>['Debug']
pod 'cccc', :git => 'https://github.com/sdweb.git' , :branch => 'lich', :configurations=>['Debug']
pod 'ddddd', :git=>'https://gitlab.com/ddd.git' , :branch=>'feature_20211221_cleanConfirmation', :configurations=>['Debug']
end
post_install do |installer_representation| installer_representation.pods_project.targets.each do |target| target.build_configurations.each do |config| config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'NO' end end end
'''
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file iosci-0.1.2.9.tar.gz.
File metadata
- Download URL: iosci-0.1.2.9.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0fb28f069d6693481a15becab1d68359de1838ab7c44fc24e7c4a0638086c45
|
|
| MD5 |
a4d1a2d1ee9d313093083b773054ab75
|
|
| BLAKE2b-256 |
677a07c2847d2fedf48cff18e7a5a42341fd8377c74d0c326928dcbeb702845a
|
File details
Details for the file iosci-0.1.2.9-py3-none-any.whl.
File metadata
- Download URL: iosci-0.1.2.9-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77d5c3ba0ed7b574093d36d907a2a471c148fb3be5914fc7007887a56693c4f0
|
|
| MD5 |
dde95c655081434f66d19f4acc3f34bd
|
|
| BLAKE2b-256 |
f6197f2eab88118da7fc035ee15b38b9dd03c7cced4b6690014f8bc1af1af8df
|