Giter Site home page Giter Site logo

Comments (16)

iTofu avatar iTofu commented on May 14, 2024

更新时请使用 pod update 命令而不是 pod install 命令,并且不要带 --no-repo-update 后缀。

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

1.因为我的电脑一直pod update 没反应,所以每次我都习惯用pod install.而且podfile中添加LCActionSheet pod 一直卡着不动~
2.我尝试着直接下载LCActionSheet拖进工程,但是下载下来的文件LCActionSheet,我下载了两次
image

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024
  1. 这个貌似没有好的办法,我是工作环境直接 ss,让 git 走 ss 就正常速度了:
git config --global http.proxy socks5://127.0.0.1:1080 && git config --global https.proxy socks5://127.0.0.1:1080
  1. 这个是咋回事呢…… 你是不是下载了部分或者咋回事?

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

刚我试着用 pod update --verbose --no-repo-update,也是搜索到3.2.1耶
image
而且我也用的ss
image

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

pod update 没反应是因为该命令会首先更新本地 pod spec,然后更新你的 Podfile 中的依赖库,而国内的网络因为你懂的原因,通常会在更新本地 pod spec 时很卡甚至几个小时。而 pod install 会直接根据你安装 CocoaPods 时的 pod spec 直接安装 Podfile 中的库,不执行更新本地 pod spec 的操作,所以一般不会卡。
另外如果你加上 --no-repo-update 命令则让 update 操作跳过了更新本地 pod spec,这其实是不合适的,因为你本地的 pod spec 肯定不是最新的 pod spec,如果某些库在你上次更新 pod spec 后更新了,你加上 --no-repo-update 后缀则可能不会更新这些库。
你有 ss 环境更好,开启 ss,执行下我上面贴的命令然后再执行 pod update 不加任何后缀即可:

// 设置让 git 走代理服务
git config --global http.proxy socks5://127.0.0.1:1080 && git config --global https.proxy socks5://127.0.0.1:1080

// 取消设置
git config --global --unset http.proxy && git config --global --unset http.proxy

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

好滴,楼主真是太有爱了,这么耐心解答菜鸟的疑问,因为公司的一个APP 用了你的这个库造物国,感觉挺不错的,所以新APP准备继续用,刚刚LCActionSheet已经pod下来了,虽然是3.2.1版本,但是并无大碍,我再仔细研究为什么只能pod 3.2.1,因为我的podfile 文件中是从来没有添加过该库的~

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

没事的,你也不必过于担心这个问题,V 3.2.2 修复的是一个小问题:ChangeLog,一般不影响使用。关于版本问题貌似 CocoaPods 那边出现了 Bug,我已经报给他们了等待他们处理:CocoaPods/CocoaPods#6713
另外你们的项目可以放到 小伙伴 中么?纯收集展示,不会有其他用途。

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

原来是CocoaPods的锅, 哈哈,广告随便打,我可是交不起广告费的哟 ( 渍渍)

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

完全免费哈哈,就当互相推广吧,再者我这也就是个展示,给你们打广告你们还嫌我这没流量~
不过说句题外话,国民还是版权意识不够啊,诸如 BAT 的项目很多都不带三方协议声明的……

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

Issue 先 open 着,等这个问题确认完毕我会 @ 你。

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

我们国民版权意识已经在慢慢提高了
哈哈,楼主这么用心必须粉一个。

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

@iTofu 我发现不能获取按钮的标题,就是比如我会检测当前手机APP中是否含有谷歌、高德、百度地图,有则加入到按钮中,所以还要获取到该按钮的标题才能做到此功能,我找了一下好像LCActionSheet对象只有整个视图的title和取消按钮的标题~

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

是这样,开发者初始化和设置 LCActionSheet 实例时是明确知道它的所有属性的,比如 titles 是开发者传入的,所以开发者应该是能明确知道某个 index 处的 title 的,代理和 Block 方法都会回调 index。

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

好的,明白了,之前没想明白,就用的系统的UIActionSheet。

from lcactionsheet.

iTofu avatar iTofu commented on May 14, 2024

确定是 CocoaPods 的问题然鹅也没告诉我原因,发了个新版本又好了...

from lcactionsheet.

Brances avatar Brances commented on May 14, 2024

@iTofu 辛苦辛苦

from lcactionsheet.

Related Issues (20)

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.