Git Product home page Git Product logo

cocoapods-imy-bin's People

Contributors

dabing1022 avatar dirtmelon avatar ioser-su350380433 avatar redanula avatar su350380433 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cocoapods-imy-bin's Issues

怎么设置pods库根据环境依赖区分依赖

前提:
1.已参考Demo,没有发现类似设置.
2.已参考设置了:https://github.com/MeetYouDevs/cocoapods-imy-bin#use_binaries 无效果.下载下来的还是 relase 环境

期望:
Debug编译环境或者 Debug scheme 可以是使用二进制库pods.
Release环境或者 Release scheme 可以使用的是源码库

结果:
如前提,未能满足该业务场景.

同时报一个问题,只要这边通过 curl -X 'DELETE' 执行后的库,无论你操作git内容,还是操作pod bin auto 都是不会再次上传的.但是通过 pod bin install 又是可以拉去的.不知道这个是不是算个bug.

在用pod bin auto的时候报错

NoMethodError - undefined method target_definition_list' for nil:NilClass /Users/bryce/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/cocoapods-generate-2.0.0/lib/cocoapods/generate/podfile_generator.rb:357:in target_definition_list'

但是我进去找是有这个方法的,请问有遇到过吗?我只是在我自己的项目里用了pod bin auto就出现了这个错误

无法生成二进制文件,仅demo几个库可以

配置文件
Podfile

Git仓库是自建的,有读写权限,二进制资源服务器也搭建了,可以正常上传删除二进制库

问题
1.现象非常奇怪,跑的是提供的demo,如果Podfile不添加新的第三方,可以运行,但是不会提交源码(code_repo_url: [email protected]:su350380433/example_spec_source.git 这个仓库没有源码,这个地址是举例的,仓库是本地的)
2.在demo的Podfile添加任何第三方,均不能生成二进制文件

3.自己新起demo在测试,也只有示例{"FMDB":["2.7.5"],"LKDBHelper":["2.5.5"],"YYModel":["1.0.4"]}这几个可以。测试了AFNetworkingSVProgressHUDMJRefreshReactiveObjCMasonry均失败

看了下日志,主要没有生成对应的二进制库,才导致后续一系列问题。

bin-zip目录下,也仅仅只有头文件,没有二进制库

/Demo-build-temp/bin-archive/Demo/ios 对应的库 也只有头文件,没有二进制文件

/Demo-build-temp/bin-archive/Demo 工程可以运行,跑起来一会就自动退到桌面了

另外也安装旧版本0.2.9,测试还是一样问题,电脑也重启了,xcode是11.5

错误日志:
`
Building static framework Demo (1)
command = xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' ARCHS='arm64' OTHER_CFLAGS='-fembed-bitcode
-Qunused-arguments' CONFIGURATION_BUILD_DIR=build-arm64 clean build -configuration Debug -target Demo -project
./Pods.xcodeproj 2>&1
command = xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' ARCHS='armv7' OTHER_CFLAGS='-fembed-bitcode
-Qunused-arguments' CONFIGURATION_BUILD_DIR=build-armv7 clean build -configuration Debug -target Demo -project
./Pods.xcodeproj 2>&1
Building simulator libraries
command = xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' -sdk iphonesimulator ARCHS='x86_64'
CONFIGURATION_BUILD_DIR=build-x86_64 clean build -configuration Debug -target Demo -project ./Pods.xcodeproj 2>&1

Building static framework AFNetworking (4.0.1)

Building static Library AFNetworking (4.0.1)
Building ios libraries with archs ["arm64", "armv7"]
lipo -create -output ios/AFNetworking.framework/Versions/A/AFNetworking build-arm64/libAFNetworking.a
build-armv7/libAFNetworking.a build-x86_64/libAFNetworking.a
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: build-arm64/libAFNetworking.a (No such file or directory)
Writing module map framework module AFNetworking { umbrella header "AFNetworking.h"
export * module * { export * } }
Copying license

Building static library AFNetworking (4.0.1)
framework没有文件:ios/AFNetworking.framework/Versions/A/AFNetworking

Building static framework FMDB (2.7.5)

Building static Library FMDB (2.7.5)
Building ios libraries with archs ["arm64", "armv7"]
lipo -create -output ios/FMDB.framework/Versions/A/FMDB build-arm64/libFMDB.a build-armv7/libFMDB.a
build-x86_64/libFMDB.a
Writing module map framework module FMDB { umbrella header "FMDB.h" export *
module * { export * } }
Copying license

Building static library FMDB (2.7.5)
Compressing bin_FMDB_2.7.5 into bin_FMDB_2.7.5.zip
.......省略......
Pushing the `bin_spec_dev' repo

$ /usr/bin/git -C /Users/cxd/.cocoapods/repos/bin_spec_dev push origin HEAD
To 192.168.1.177:amber/bin_spec_dev.git
946f75d..7a2fba9 HEAD -> master
============== auto_success
FMDB | 2.7.5
LKDBHelper | 2.5.5
YYModel | 1.0.4

Updating Spec Repositories

更新私有源仓库 bin_spec_dev
更新私有源仓库 1-code_spec_source
$ /usr/bin/git -C /Users/cxd/.cocoapods/repos/bin_spec_dev fetch origin --progress
$ /usr/bin/git -C /Users/cxd/.cocoapods/repos/1-code_spec_source fetch origin --progress
$ /usr/bin/git -C /Users/cxd/.cocoapods/repos/bin_spec_dev rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/cxd/.cocoapods/repos/bin_spec_dev reset --hard origin/master
HEAD is now at 7a2fba9 [Update] YYModel (1.0.4)
$ /usr/bin/git -C /Users/cxd/.cocoapods/repos/1-code_spec_source rev-parse --abbrev-ref HEAD
master
$ /usr/bin/git -C /Users/cxd/.cocoapods/repos/1-code_spec_source reset --hard origin/master
HEAD is now at 24359b8 测试推送

[!] ====== cocoapods-imy-bin 0.2.9.1 版本 ========
[!] ====== dev 环境 ========
[!] ====== archive-white-pod-list = ["Demo", "YYCache"]
[!] ====== ignore_git_list = ["[email protected]:Github-iOS"]
[!] 【AFNetworking | 4.0.1】组件二进制版本编译失败 .
[!] 【Demo | 1】组件spec push失败 .
[!] ===【 FMDB | 2.7.5 】二进制组件制作完成 !!!
[!] ===【 LKDBHelper | 2.5.5 】二进制组件制作完成 !!!
[!] ===【 YYModel | 1.0.4 】二进制组件制作完成 !!!`

Nice

目前我们测试下来编译速度有提升百分之二十五左右(我们业务代码较大,非组件管理), 我们目前也会向组件管理方向发展,非常很感谢你们,这个项目使得让我们团队效率提高不少。

还有一个问题咨询一下,不知道现在是否支持纯swift项目或者混编项目。我们目前有一个项目在做swift转型,我在使用过程中发现问题比较多,我也尝试去解决,但是暂时找不到解决方案?我有看的你们在做swift相关的兼容,所以想问一下,目前现有版本有对swift做支持吗?

Build command failed

RuntimeError - Build command failed: xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' ARCHS='arm64 armv7' OTHER_CFLAGS='-fembed-bitcode -Qunused-arguments' CONFIGURATION_BUILD_DIR=build clean build -configuration Debug -target Demo -project ./Pods.xcodeproj 2>&1
Output:
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild "GCC_PREPROCESSOR_DEFINITIONS=$(inherited)" "ARCHS=arm64 armv7" "OTHER_CFLAGS=-fembed-bitcode -Qunused-arguments" CONFIGURATION_BUILD_DIR=build clean build -configuration Debug -target Demo -project ./Pods.xcodeproj

Build settings from command line:
    ARCHS = arm64 armv7
    CONFIGURATION_BUILD_DIR = build
    GCC_PREPROCESSOR_DEFINITIONS = $(inherited)
    OTHER_CFLAGS = -fembed-bitcode -Qunused-arguments

xcodebuild: error: './Pods.xcodeproj' does not exist.

执行xcodebuild时,./Pods.xcodeproj路径不存在,是要在什么地方去配置这个路径的吗?

最后一步使用二进制时报错

刷了一遍issues还是找不到原因,唯有过来求助了,感谢大佬

pod bin update --no-repo-update
错误如下:
NoMethodError - undefined method each' for nil:NilClass`

  1. 使用Demo
  2. 二进制制作成功
  3. 二进制文件zip能下载:frameworks/AFNetworking/4.0.1/zip
  4. bin-archive/Demo/Pods 文件下是源码依赖
  5. 删除了Podfile_local

Podfile 文件

source 'https://github.com/cocoapods/specs.git'

#命令写在这里也是等效, 已移动到Podfile_local中,避免git提交冲突等场景
 plugin 'cocoapods-imy-bin'
 use_binaries!

target 'Demo' do

  pod 'DoraemonKit/Core'
  pod 'DoraemonKit/WithLogger'
  pod 'DoraemonKit/WithLoad'
  pod 'DoraemonKit/WithMLeaksFinder'
  pod 'SJBaseVideoPlayer'
  pod 'SJVideoPlayer'
  pod 'Masonry'
  pod 'SocketRocket'
  pod 'YYKit'
  pod 'SDWebImage'
  pod 'SDWebImageWebPCoder'
  pod 'SDWebImagePhotosPlugin'
  pod 'AFNetworking'
  pod 'HappyDNS', '>= 0.3'
  pod 'AGAsyncTestHelper/Shorthand'
  pod 'MJRefresh'
  pod 'NSDictionary-NilSafe'  
  pod 'MJExtension'
  pod 'JZLocationConverter'
  pod 'lottie-ios', '2.5.3'
  pod "Aspects"
  pod 'MMKV'
  
  end

BinArchive 文件:

{
    "//":"archive-white-pod-list  制作二进制白名单",
    "archive-white-pod-list" : [
        "Demo"
    ],
    "ignore-git-list": [
        "[email protected]:Github-iOS"
    ],
    "ignore-http-list": [
        "https://gitlab.xxx.com/Github-iOS"
    ]
}

Demo_test.podspec

# MARK: converted automatically by spec.py. @hgy

Pod::Spec.new do |s|
	s.name = 'Demo'
	s.version = '1'
	s.description = '我只是一个测试的,主要是想要 s.dependency'
	s.license = 'MIT'
	s.summary = 'Seeyou'
	s.homepage = 'https://github.com/meiyoudev/IMYPublic'
	s.authors = { 'suliangjin' => '[email protected]' }
	s.source = { :git => '[email protected]:su350380433/cocaopods-imy-bin.git', :branch => 'dev' }
        s.requires_arc = true
        s.ios.deployment_target = '9.0'
        s.source_files = 'Source/**/*.{h,m,c}'
        s.public_header_files = 'Source/**/*.h'


        s.dependency 'Masonry'
        s.dependency 'SocketRocket'
        s.dependency 'YYKit'
        s.dependency 'SDWebImage'
        s.dependency 'SDWebImageWebPCoder'
        s.dependency 'SDWebImagePhotosPlugin'
        s.dependency 'AFNetworking'
        s.dependency 'HappyDNS'
        s.dependency 'AGAsyncTestHelper/Shorthand'
        s.dependency 'MJRefresh'
        s.dependency 'NSDictionary-NilSafe'
        s.dependency 'MJExtension'
        s.dependency 'JZLocationConverter'
        s.dependency 'lottie-ios'
        s.dependency 'Aspects'
        s.dependency 'MMKV'


end

pod bin install 失败了 [!] Unable to add a source with url

1. cocoapods-imy-bin 安装插件成功

`
$ sudo gem install cocoapods-imy-bin

Successfully installed cocoapods-imy-bin-0.3.0.11
Parsing documentation for cocoapods-imy-bin-0.3.0.11
Done installing documentation for cocoapods-imy-bin after 0 seconds
1 gem installed
`

2. 执行pod bin install 失败

`
$ pod bin install

====== cocoapods-imy-bin 0.3.0.11 版本 ========

====== dev 环境 ========
Cloning spec repo su350380433 from [email protected]:su350380433/example_spec_source.git
[!] Unable to add a source with url [email protected]:su350380433/example_spec_source.git named su350380433.
You can try adding it manually in /Users/username/.cocoapods/repos or via pod repo add.
`

3. Podfile_local 文件内容 就改了 target 名字,其他的都是复制过来的

`
#target 'Seeyou' do 不同的项目注意修改下Seeyou的值
#:path => '../IMYYQHome',根据实际情况自行修改,与之前在podfile写法一致

plugin 'cocoapods-imy-bin'
#是否启用二进制插件,想开启把下面这句注释去掉
#use_binaries!

#需要替换Podfile里面的组件才写到这里
#在这里面的所写的组件库依赖,默认切换为【源码】依赖
target 'LuxuryGoods' do
#本地库引用
#pod 'IMYYQHome', :path => '../IMYYQHome'

#覆盖、自定义组件
#pod 'IMYVendor', :podspec => 'http://覆盖、自定义/'
end
`

静态库AT_comp_dir问题

您好,想请教个问题。静态库中AT_comp_dir返回的路径是类似于 /Users/xxxx/Desktop 这种路径。但是xxxx并不是当前mac用户。请问这时候你们是如何处理的?

pod bin auto 报错

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=no+implicit+conversion+of+Array+into+String&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...

  • Can't specify same configuration for two pods if one is in abstract_target and the other is inside, in a target
    CocoaPods/CocoaPods#8732 [open] [1 comment]
    07 May 2019

  • pod install abstract_target with plugin cocoapods-binary cause TypeError - no implicit conversion of Array into String
    CocoaPods/CocoaPods#8660 [closed] [3 comments]
    01 Apr 2019

  • TypeError - no implicit conversion of Array into String
    CocoaPods/CocoaPods#7421 [closed] [59 comments]
    24 Feb 2018

and 4 more at:

error

Fetching external sources
-> Fetching podspec for **Networking from ../../../mfnetworking/MFNetworking.podspec
获取的 podspec 路径为 ../../../**networking/**Networking.podspec
Resolving dependencies of CocoaPods.podfile.yaml
CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: all_pods_versions_a_7_5.txt exists! Returning local because checking is only perfomed in repo update
CDN: trunk Relative path: Specs/a/7/5/AFNetworking/4.0.1/AFNetworking.podspec.json exists! Returning local because checking is only
perfomed in repo update
CDN: trunk Relative path: all_pods_versions_1_8_1.txt exists! Returning local because checking is only perfomed in repo update
[!] Unable to find a specification for ***_ThirdConfigPod/MFMasonry depended upon by MFNetworking

解析spec 有subspec 还在失败

subspec支持

cocoapods-bin是支持通过podspec模板来自定义subspec的组织形式的,cocoapods-imy-bin对于subspec是怎样支持的?在使用二进制库时能否单独引入字库。

pod bin auto -> TypeError - no implicit conversion of Array into String

CocoaPods : 1.7.5
Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
RubyGems : 3.0.3

Podfile

plugin 'cocoapods-imy-bin'
use_binaries!
#set_use_source_pods ['Moya','SnapKit']

source 'https://cdn.cocoapods.org/'

platform :ios, '9.0'

use_frameworks!

target 'Swift-OC' do

#Swift库

#    pod 'Alamofire'
    pod 'Moya'
    pod 'SnapKit'
    pod 'Kingfisher'
    pod 'HandyJSON'
    pod 'lottie-ios'
    pod 'Toast'

#OC库

    pod 'MYLCommonUI', '~> 0.0.11'
    pod 'Masonry'

end

Error

TypeError - no implicit conversion of Array into String
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.7.5/lib/cocoapods-core/specification.rb:664:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.7.5/lib/cocoapods-core/specification.rb:664:in `new'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.7.5/lib/cocoapods-core/specification.rb:664:in `from_file'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/auto.rb:33:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:356:in `new'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:356:in `parse'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:330:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.7.5/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

请问一下 是我的pod版本有问题么?执行pod bin auto 报错

项目集成RN后,制作二进制失败

我们项目集成了RN,是制作二进制组件的时候报了一个错

Error

Errno::ENOENT - No such file or directory @ rb_sysopen - /Users/xxx/Documents/xxx-build-temp/bin-archive/xxx/RN/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:37:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:37:in `open'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/open-uri.rb:37:in `open'

podfile里面这么写的:
pod 'BVLinearGradient', :podspec => 'RN/node_modules/react-native-linear-gradient/BVLinearGradient.podspec'
这个要怎么处理,大佬?
在Podfile_local,里面 set_use_source_pods ['BVLinearGradient'],貌似也不行

Podfile和podspec文件一定要在同一个目录下吗?

原生创建私有库 pod lib create的时候,结构是比较固定清晰的。 Example(Demo)文件夹、库源码文件夹、podspec文件是并列。假设某个私有库不依赖任何别的库,pod bin auto失败。 这块如果能兼容调整的话会更友好。

打出的.a类型不正确

在Podfile中设置了release_iphoneos,但是打出来的.a显示:Architectures in the fat file: /Users/XXX/Desktop/libKSCrash.a are: armv7 x86_64 arm64,我看文章上说release_iphoneos模式下不包含x86_64,那是不是制作二进制时指定编译环境没有生效呢?还有就是正常的话debug_iPhoneos和release_iphoneos都是不包含x86_64的,那我该如何区分打出来的.a是debug_iPhoneos还是release_iphoneos环境的呢(是不是我指定的编译环境)?

找不到swift

主工程是 OC, development pods 的 pod ,OC 使用swift framework ,找不到swift类,请问下 该怎么解决

YYKit 不支持

这个库不支持呢,二进制成功编译,也成功引用,xcode编译的时候,就报错

WX20200820-181940

SystemStackError - stack level too deep

非常感谢你的这个方法 很想实践一下 但是实践过程中出现了问题 在pod bin auto --all-make的过程中 出现 SystemStackError - stack level too deep 这个问题 希望得到指导

Pod bin init, unkown command `bin`

❯ sudo gem install cocoapods-imy-bin
Password:
Successfully installed cocoapods-imy-bin-0.3.0.11
Parsing documentation for cocoapods-imy-bin-0.3.0.11
Done installing documentation for cocoapods-imy-bin after 0 seconds
1 gem installed

cocoapods-imy-bin、mongodb、binary-server 都安装和启动了

在项目中使用提示

❯ pod bin init
Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1
[!] Unknown command: `bin`
Did you mean: lib?

生成二进制失败,cocopods版本1.9.3

Building static framework Demo (1)
command = xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' ARCHS='arm64' OTHER_CFLAGS='-fembed-bitcode -Qunused-arguments'
CONFIGURATION_BUILD_DIR=/Users/robin/Downloads/cocoapods-imy-bin-demo-master/Demo-build-temp/bin-archive/Demo/build-arm64 clean build -configuration Debug -target Demo -project ./Pods/Pods.xcodeproj 2>&1
command = xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' ARCHS='armv7' OTHER_CFLAGS='-fembed-bitcode -Qunused-arguments'
CONFIGURATION_BUILD_DIR=/Users/robin/Downloads/cocoapods-imy-bin-demo-master/Demo-build-temp/bin-archive/Demo/build-armv7 clean build -configuration Debug -target Demo -project ./Pods/Pods.xcodeproj 2>&1
Building simulator libraries
command = xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited)' -sdk iphonesimulator ARCHS='x86_64' CONFIGURATION_BUILD_DIR=/Users/robin/Downloads/cocoapods-imy-bin-demo-master/Demo-build-temp/bin-archive/Demo/build-x86_64 clean build
-configuration Debug -target Demo -project ./Pods/Pods.xcodeproj 2>&1
上传二进制文件
curl http://localhost:9090/framework -F "name=Demo" -F "version=1" -F "annotate=Demo_1_log" -F "file=@bin-zip/bin_Demo_1.zip"

Updating Spec Repositories

更新私有源仓库 suvapp_spec_bin_dev
更新私有源仓库 suvapp_spec_source
$ /usr/bin/git -C /Users/robin/.cocoapods/repos/suvapp_spec_source fetch origin --progress
$ /usr/bin/git -C /Users/robin/.cocoapods/repos/suvapp_spec_bin_dev fetch origin --progress
$ /usr/bin/git -C /Users/robin/.cocoapods/repos/suvapp_spec_bin_dev rev-parse --abbrev-ref HEAD
$ /usr/bin/git -C /Users/robin/.cocoapods/repos/suvapp_spec_source rev-parse --abbrev-ref HEAD
master
master
$ /usr/bin/git -C /Users/robin/.cocoapods/repos/suvapp_spec_bin_dev reset --hard origin/master
$ /usr/bin/git -C /Users/robin/.cocoapods/repos/suvapp_spec_source reset --hard origin/master
HEAD is now at 6c7598b init
HEAD is now at 2b79a34 Add new file

[!] cocoapods-generate requires CocoaPods >= 1.5.0

[!] ====== cocoapods-imy-bin 0.2.9.1 版本 ========

[!] ====== dev 环境 ========

[!] ====== archive-white-pod-list = ["Demo", "YYCache"]

[!] ====== ignore_git_list = ["[email protected]:Github-iOS"]

[!] 【Demo | 1】组件spec push失败 .

pod bin auto 不会生成zip文件,spec push失败

Building static Library JZToast (0.1.4)
Building ios libraries with archs ["arm64", "armv7"]
lipo -create -output ios/JZToast.framework/Versions/A/JZToast
build-arm64/libJZToast.a build-armv7/libJZToast.a build-x86_64/libJZToast.a
Writing module map framework module JZToast { umbrella
header "JZToast.h" export * module * { export * }
}
Copying license
上传二进制文件
curl http://localhost:8080/frameworks -F "name=JZToast" -F "version=0.1.4" -F "annotate=JZToast_0.1.4_log" -F "file=@bin-zip/bin_JZToast_0.1.4.zip"

Updating Spec Repositories

更新私有源仓库 gitee-jentle_095-bin_specs
更新私有源仓库 remoteSpec
$ /usr/bin/git -C /Users/Jentle/.cocoapods/repos/remoteSpec fetch origin
--progress
$ /usr/bin/git -C /Users/Jentle/.cocoapods/repos/gitee-jentle_095-bin_specs
fetch origin --progress
$ /usr/bin/git -C /Users/Jentle/.cocoapods/repos/gitee-jentle_095-bin_specs
rev-parse --abbrev-ref HEAD
$ /usr/bin/git -C /Users/Jentle/.cocoapods/repos/remoteSpec rev-parse
--abbrev-ref HEAD
master
master
$ /usr/bin/git -C /Users/Jentle/.cocoapods/repos/gitee-jentle_095-bin_specs
reset --hard origin/master
$ /usr/bin/git -C /Users/Jentle/.cocoapods/repos/remoteSpec reset --hard
origin/master
HEAD is now at 30068a8 [Add] LKDBHelper (2.5.3)
HEAD is now at d488245 [Update] JZToast (0.1.4)

[!] ====== cocoapods-imy-bin 0.2.9.1 版本 ========

[!] ====== dev 环境 ========

[!] 【JZToast | 0.1.4】组件spec push失败 .

这个环境有点难搭。。

有没有其他方法可以配置呢?
主要是 mongod 这个安装启动遇到了很多错误🤦‍♂️ 后面的还没能进行

工程目录下的podspec写法

image
大佬,我有两个问题想问一哈:
1、工程目录的podspec文件写法,是不是写一下基本信息,然后把podfile里面的依赖库,在podspec里面通过
s.dependency 'xxx'的形式引入进来就可以了。
2、如果目前工程没有组件化,只是pod引入了github上的第三方库,那就只能把第三方库给打包成二进制文件,主工程是不受影响的。development pods里的未发布的组件貌似也不会被打包成二进制文件。

pod bin local没有结果该如何确认问题

pod bin local是后台执行吧?命令执行的时候没有报错,但是二进制的podspec仓库和静态资源服务器上都没有相应的资源传上去,该如何定位问题啊,谢谢

为什么有时候Installing 会卡好久呢

为什么有时候Installing 会卡好久呢

-> Installing YYAsyncLayer 1.0 (source changed to `https://cdn.cocoapods.org/` from `[email protected]:ios/suvapp_spec_bin_dev.git`)
 > Git download
 > Git download
              $ /usr/bin/git clone https://github.com/ibireme/YYAsyncLayer.git /var/folders/7n/z8b6pjw504360yp30q4t1dt00000gn/T/d20200902-81888-19fluso --template= --single-branch --depth 1 --branch 1.0
              Cloning into '/var/folders/7n/z8b6pjw504360yp30q4t1dt00000gn/T/d20200902-81888-19fluso'...
              Note: switching to 'beb1e16bc86c2c0895f3b5db698706ade722aac5'.

              You are in 'detached HEAD' state. You can look around, make experimental
              changes and commit them, and you can discard any commits you make in this
              state without impacting any branches by switching back to a branch.

              If you want to create a new branch to retain commits you create, you may
              do so (now or later) by using -c with the switch command. Example:

                git switch -c <new-branch-name>

              Or undo this operation with:

                git switch -

              Turn off this advice by setting config variable advice.detachedHead to false

           > Copying YYAsyncLayer from `/Users/robin/Library/Caches/CocoaPods/Pods/Release/YYAsyncLayer/1.0-df6b0` to `Pods/YYAsyncLayer`

Demo测试,无法正常生成二进制内容

Podfile文件内容

# Uncomment the next line to define a global platform for your project
 

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'

target 'TestDemo' do
  # Comment the next line if you don't want to use dynamic frameworks
  #use_frameworks!
 # 模型处理
 pod 'YYModel',:podspec =>'https://github.com/ibireme/YYModel/raw/master/YYModel.podspec'
 pod 'YYWebImage',:podspec =>'https://github.com/ibireme/YYWebImage/raw/master/YYWebImage.podspec'

end

执行命令:
pod bin auto --all-make
pod bin auto
结果如下报错信息

TypeError - no implicit conversion of Array into String
/usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:705:in `initialize'
/usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:705:in `new'
/usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/specification.rb:705:in `from_file'
/usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-imy-bin-0.2.9/lib/cocoapods-imy-bin/command/bin/auto.rb:33:in `initialize'
/usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:356:in `new'
/usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:356:in `parse'
/usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse'
/usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse'
/usr/local/lib/ruby/gems/2.7.0/gems/claide-1.0.3/lib/claide/command.rb:330:in `run'
/usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
/usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

执行pod bin auto 报错

Error

NoMethodError - undefined method `target_definition_list' for nil:NilClass
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-1.6.0/lib/cocoapods/generate/podfile_generator.rb:331:in `target_definition_list'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-1.6.0/lib/cocoapods/generate/podfile_generator.rb:290:in `supported_swift_versions'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_generator.rb:40:in `block in podfile_for_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.3/lib/cocoapods-core/podfile.rb:50:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_generator.rb:26:in `new'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_generator.rb:26:in `podfile_for_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-1.6.0/lib/cocoapods/generate/podfile_generator.rb:22:in `block in podfiles_by_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-1.6.0/lib/cocoapods/generate/podfile_generator.rb:21:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-1.6.0/lib/cocoapods/generate/podfile_generator.rb:21:in `podfiles_by_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-1.6.0/lib/cocoapods/command/gen.rb:67:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:166:in `block (2 levels) in generate_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:29:in `execute_with_key'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:22:in `execute_with_use_binaries'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:153:in `block in generate_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:29:in `execute_with_key'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:14:in `execute_with_bin_plugin'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:152:in `generate_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:70:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/auto.rb:124:in `run_archive'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/auto.rb:53:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60target_definition_list%27+for+nil%3ANilClass&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: Failed to open TCP connection to api.github.com:443 (Connection refused - connect(2) for "api.github.com" port 443)

[!] ====== cocoapods-imy-bin 0.2.9.1 版本 ========

[!] ====== dev 环境 ========

使用遇到问题

遇到一个问题 这个 'Open' 是什么命令呢?
image

使用SDWebImage 组件尝试实验, 执行 pod bin auto 又会显示
image

pod bin auto 错误

xiaogedeMac-mini:YYModel huobanxin$ pod bin auto --all-make
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/Benchmark
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/.codecov.yml
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/LICENSE
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/Framework
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/YYModel
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/0.2.0
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/.travis.yml
/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/YYModel.podspec
====== cocoapods-imy-bin 0.2.9.1 版本 ========

====== dev 环境 ========

====== dev 环境 ========
[pod gen] Running with pod gen configuration {
use_podfile: true,
use_podfile_plugins: true,
podfile_plugins: {},
use_lockfile: false,
use_lockfile_versions: false,
use_libraries: true,
generate_multiple_pod_projects: false,
incremental_installation: false,
gen_directory: /Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel-build-temp/bin-archive,
auto_open: false,
clean: true,
podspec_paths: [#Pathname:/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/YYModel.podspec, #Pathname:/Users/huobanxin/Desktop/cocoapods-imy-bin-demo/YYModel/YYModel.podspec],
podspecs: [#<Pod::Specification name="YYModel">, #<Pod::Specification name="YYModel">],
sources: ["http://git.zhaoshang800.local/app-ios/binary-specs.git", "http://git.zhaoshang800.local/app-ios/Specs.git", "http://git.zhaoshang800.local/app-ios/binary-specs.git", "http://git.zhaoshang800.local/app-ios/Specs.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 }

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

Command

/usr/local/bin/pod bin auto --all-make

Report

  • What did you do?

  • What did you expect to happen?

  • What happened instead?

Stack

   CocoaPods : 1.9.1
        Ruby : ruby 2.6.3p62 (2019-04-16 revision 67580) [universal.x86_64-darwin19]
    RubyGems : 3.0.3
        Host : Mac OS X 10.15.4 (19E266)
       Xcode : 11.6 (11E708)
         Git : git version 2.20.1
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
Repositories : binary-specs - git - http://git.zhaoshang800.local/app-ios/binary-specs.git @ bd464c69bb47eb23ec399dd81c461ffcaffda7da

               trunk - CDN - https://cdn.cocoapods.org/
               zhaoshang800-app-ios-specs - git - http://git.zhaoshang800.local/app-ios/Specs.git @ 738e59bd762561a2ec2b74d9bd00b8462087d77d

Plugins

cocoapods-deintegrate                 : 1.0.4
cocoapods-disable-podfile-validations : 0.1.1
cocoapods-generate                    : 2.0.0
cocoapods-imy-bin                     : 0.2.9.1
cocoapods-plugins                     : 1.0.0
cocoapods-search                      : 1.0.0
cocoapods-stats                       : 1.1.0
cocoapods-trunk                       : 1.4.1
cocoapods-try                         : 1.1.0

Error

NoMethodError - undefined method `target_definition_list' for nil:NilClass
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-2.0.0/lib/cocoapods/generate/podfile_generator.rb:357:in `target_definition_list'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-2.0.0/lib/cocoapods/generate/podfile_generator.rb:316:in `supported_swift_versions'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_generator.rb:40:in `block in podfile_for_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:50:in `instance_eval'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.9.1/lib/cocoapods-core/podfile.rb:50:in `initialize'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_generator.rb:26:in `new'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_generator.rb:26:in `podfile_for_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-2.0.0/lib/cocoapods/generate/podfile_generator.rb:22:in `block in podfiles_by_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-2.0.0/lib/cocoapods/generate/podfile_generator.rb:21:in `map'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-2.0.0/lib/cocoapods/generate/podfile_generator.rb:21:in `podfiles_by_spec'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-generate-2.0.0/lib/cocoapods/command/gen.rb:67:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:166:in `block (2 levels) in generate_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:29:in `execute_with_key'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:22:in `execute_with_use_binaries'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:153:in `block in generate_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:29:in `execute_with_key'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/native/podfile_env.rb:14:in `execute_with_bin_plugin'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:152:in `generate_project'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/archive.rb:70:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/auto.rb:124:in `run_archive'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-imy-bin-0.2.9.1/lib/cocoapods-imy-bin/command/bin/auto.rb:53:in `run'
/Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.9.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60target_definition_list%27+for+nil%3ANilClass&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Searching for inspections failed: Failed to open TCP connection to api.github.com:443 (Connection refused - connect(2) for "api.github.com" port 443)

[!] ====== cocoapods-imy-bin 0.2.9.1 版本 ========

[!] ====== dev 环境 ========

xiaogedeMac-mini:YYModel huobanxin$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.