cocoapods-imy-bin
cocoapods-imy-bin copied to clipboard
pod bin auto 无法生成二进制文件
跑的是提供的 Demo 工程,步骤:
- 新建了自己的仓库,https://github.com/ljunb/example_spec_source 和 https://github.com/ljunb/example_spec_bin_dev ,且 podspec 中的服务器地址都改成了本地服务,确定是有 push 权限的
- 执行 pod bin init 进行初始化配置:
configuration_env: dev
code_repo_url: https://github.com/ljunb/example_spec_source.git
binary_repo_url: https://github.com/ljunb/example_spec_bin_dev.git
binary_download_url: http://localhost:8080/frameworks/%s/%s/zip
download_file_type: zip
- 安装 mongodb,启动方式:
sudo mongod --dbpath ~/data/db
- 进入 Demo/binary-server 中启动 node 服务
- 进入 Demo 根目录执行命令 pod bin auto --all-make,结果:
[linjb:Demo linjb$ pod bin auto --all-make
/Users/linjb/myself/cocoapods-imy-bin-demo/Demo/Demo.xcodeproj
/Users/linjb/myself/cocoapods-imy-bin-demo/Demo/Demo
/Users/linjb/myself/cocoapods-imy-bin-demo/Demo/BinArchive.json
/Users/linjb/myself/cocoapods-imy-bin-demo/Demo/Podfile_local
/Users/linjb/myself/cocoapods-imy-bin-demo/Demo/Demo_test.podspec
====== cocoapods-imy-bin 0.3.1.3 版本 ========
====== dev 环境 ========
====== dev 环境 ========
[pod gen] Running with `pod gen` configuration {
podfile_path: /Users/linjb/myself/cocoapods-imy-bin-demo/Demo/Podfile,
podfile: Podfile,
use_podfile: true,
use_podfile_plugins: true,
podfile_plugins: {"cocoapods-imy-bin"=>{}},
use_lockfile: false,
use_lockfile_versions: false,
use_libraries: true,
generate_multiple_pod_projects: false,
incremental_installation: false,
gen_directory: /Users/linjb/myself/cocoapods-imy-bin-demo/Demo-build-temp/bin-archive,
auto_open: false,
clean: true,
podspec_paths: [#<Pathname:/Users/linjb/myself/cocoapods-imy-bin-demo/Demo/Demo_test.podspec>, #<Pathname:/Users/linjb/myself/cocoapods-imy-bin-demo/Demo/Demo_test.podspec>],
podspecs: [#<Pod::Specification name="Demo">, #<Pod::Specification name="Demo">],
sources: ["https://github.com/ljunb/example_spec_bin_dev.git", "https://github.com/ljunb/example_spec_source.git", "https://github.com/ljunb/example_spec_bin_dev.git", "https://github.com/ljunb/example_spec_source.git", "https://cdn.cocoapods.org"],
local_sources: [],
repo_update: false,
use_default_plugins: false,
deterministic_uuids: false,
share_schemes_for_development_pods: true,
warn_for_multiple_pod_sources: false,
use_modular_headers: false }
Generating Demo in `../Demo-build-temp/bin-archive/Demo`
Cleaning gen install directory
Creating stub application
Writing Podfile
Installing...
Fetching podspec for `YYCache` from `https://github.com/ibireme/YYCache/raw/master/YYCache.podspec`
Fetching podspec for `YYModel` from `https://github.com/ibireme/YYModel/raw/master/YYModel.podspec`
Installing Demo (1)
Installing FMDB (2.7.5)
Installing LKDBHelper (2.5.7)
Installing YYCache (1.0.4)
Installing YYModel (1.0.4)
[!] Error installing FMDB
[!] Error installing YYModel
[!] /usr/bin/curl -f -L -o /var/folders/4l/j5vr5qvx4p3g9tp9kqhssc5r0000gn/T/d20210319-61975-1r8jw5s/file.zip http://localhost:8080/frameworks/YYModel/1.0.4/zip --create-dirs --netrc-optional --retry 2 -A 'CocoaPods/1.10.0 cocoapods-downloader/1.4.0'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404 Not Found
[!] ====== cocoapods-imy-bin 0.3.1.3 版本 ========
[!] ====== dev 环境 ========
[!] ====== archive-white-pod-list = ["Demo", "YYCache"]
[!] ====== ignore_git_list = ["[email protected]:Github-iOS"]
[!] Automatically assigning platform `iOS` with version `9.0` on target `App-iOS` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
直接访问 http://localhost:8080/frameworks ,返回的是 { }
。不知是哪个步骤出了问题,期待大佬的回复!😁
疑问:
你好我也刚集成这个插件,您的问题解决了吗? 可以交流一下吗?QQ272334421
还没有解决~
还没有解决~
- gem install cocoapods-lhj-bin
- pod bin auto
疑问:
- 从 Demo私有源仓库 提交记录来看,每个 repo 都是脚本运行后自动添加,不过在下一次运行之前,又有删除所有 repo 的 commit 。所以是不是每次制作二进制组件之前,都是要先手动删除旧的 repo ?
验证如下。例如你已经对FMDB的2.7.5进行二进制化,在repos中已经有相应的podspec.json,那么再次进行2.7.5的二进制就会报这个错误。如果是2.7.2的,就正常。如果想对2.7.5的二进制化,就必须先手动删除旧的repo
看到你解决了这个问题,我的能传到本地源了,但是远程源还是没有,期待大佬指点下