MeetYouDevs / cocoapods-imy-bin

1.06k stars 245 forks source link

pod bin auto 无法生成二进制文件 #139

Open ljunb opened 3 years ago

ljunb commented 3 years ago

跑的是提供的 Demo 工程,步骤:

====== 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: [#, #],
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 = ["git@gitlab.xxx.com: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 ,返回的是 `{ }`。不知是哪个步骤出了问题,期待大佬的回复!😁
ljunb commented 3 years ago

疑问:

SummerZhuQiong commented 3 years ago

你好我也刚集成这个插件,您的问题解决了吗? 可以交流一下吗?QQ272334421

ljunb commented 3 years ago

还没有解决~

near2sea commented 3 years ago

还没有解决~

  1. gem install cocoapods-lhj-bin
near2sea commented 3 years ago
  1. pod bin auto
rbyyy commented 3 years ago

疑问:

  • Demo私有源仓库 提交记录来看,每个 repo 都是脚本运行后自动添加,不过在下一次运行之前,又有删除所有 repo 的 commit 。所以是不是每次制作二进制组件之前,都是要先手动删除旧的 repo ?

验证如下。例如你已经对FMDB的2.7.5进行二进制化,在repos中已经有相应的podspec.json,那么再次进行2.7.5的二进制就会报这个错误。如果是2.7.2的,就正常。如果想对2.7.5的二进制化,就必须先手动删除旧的repo

loohalh commented 3 years ago

看到你解决了这个问题,我的能传到本地源了,但是远程源还是没有,期待大佬指点下