MeetYouDevs / cocoapods-imy-bin

1.05k stars 245 forks source link

使用 set_use_source_pods 后,没有看到 source change to 'xx' from 'aa' 的输出 #46

Closed iWECon closed 3 years ago

iWECon commented 3 years ago

清一色的 Using XXXSDK (x.x.x) 没有 source change to 'xx' from 'xx' 的输出 意思是切换失败了吗?? 要怎么处理呢

iWECon commented 3 years ago

Podfile_local

plugin 'cocoapods-imy-bin'

# 启用二进制插件,想关闭注释掉即可
use_binaries!

# 支持传入布尔值控制是否使用二进制版本,比如 DEBUG 包使用二进制版>本,正式包使用源码版本,Podfile 关联语句可以这样写:
#use_binaries! (ENV['DEBUG'].nil? || ENV['DEBUG'] == 'true')

# 设置使用`源码`版本的组件
#set_use_source_pods ['R.siwft', 'libwebp', 'RealmSwift', 'FLEX', 'lottie-ios', 'Weibo_SDK', 'ReactiveCocoa', 'Moya/ReactiveSwift', 'IGListKit', 'HandyJSON', 'PinLayout', 'FlexLayout', 'UMCCommon', 'GTSDK', 'Bugly', 'SVGAPLayer']

# 只需要某个库的二进制版本
use_binaries_with_spec_selector! do |spec|
        spec.name = 'FlexLayout'
end

# 需要替换的 Podfile 组件才写到这里
# 在这里写的依赖,默认切换为`源码`
target 'spsd' do
        # 本地引用
        #pod 'YYText', :path => '../YYModel'

        # 覆盖自定义组件
        #pod 'YYText', :podspec => '覆盖地址'
end

pod bin update --no-repo-update

> pod bin update --no-repo-update
Update all pods
====== cocoapods-imy-bin 0.3.0.11 版本 ========

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

======  dev 环境 ========
更新私有源仓库 imy-bin
更新私有源仓库 iwecon
        $ /usr/bin/git -C /Users/i/.cocoapods/repos/imy-bin fetch
        origin --progress
        $ /usr/bin/git -C /Users/i/.cocoapods/repos/imy-bin
        rev-parse --abbrev-ref HEAD
        main
        $ /usr/bin/git -C /Users/i/.cocoapods/repos/imy-bin reset
        --hard origin/main
        HEAD is now at 9daded4 [Add] libwebp (1.1.0)
Analyzing dependencies
Downloading dependencies
Using Alamofire (5.4.0)
Using Bugly (2.5.71)
Using CL_ShanYanSDK (2.3.3.4)
Using CRBoxInputView (1.1.7)
Using CocoaAsyncSocket (7.6.4)
Using CryptoSwift (1.3.2)
Using DZNEmptyDataSet (1.8.1)
Using GTSDK (2.4.6.0)
Using HandyJSON (5.0.3-beta)
Using IGListDiffKit (4.0.0)
Using FLEX (4.1.1)
Using IQKeyboardManagerSwift (6.5.6)
Using ISEmojiView (0.2.6)
Using GTExtensionSDK (2.2.4)
Using KTVHTTPCache (2.0.1)
Using KTVCocoaHTTPServer (1.0.0)
Using MMKV (1.2.2)
Using MMKVCore (1.2.4)
Using Masonry (1.1.0)
Using Moya (14.0.0)
Using PinLayout (1.9.2)
Using PinYin4Objc_FrameworksSupport (1.1.3)
Using Protobuf (3.13.0)
Using R.swift (5.3.0)
Using R.swift.Library (5.3.0)
Using RPCircularProgress (0.5.0)
Using ReactiveCocoa (11.1.0)
Using ReactiveSwift (6.5.0)
Using Realm (5.5.0)
Using RealmSwift (5.5.0)
Using SDWebImage (4.4.8)
Using SSZipArchive (2.2.3)
Using SVGAPlayer (2.5.6)
Using SnapKit (5.0.1)
Using FlexLayout (1.3.20)
Using SwiftRandom (1.0.0)
Using SwiftyJSON (5.0.0)
Using IGListKit (4.0.0)
Using UITabbarItem-CustomBadge (2.0.3)
Using UMCCommon (7.2.2)
Using UPCarouselFlowLayout (1.1.2)
Using MarqueeLabel (4.0.5)
Using ViewAnimator (3.0.1)
Using Weibo_SDK (3.3.0)
Using YYImage (1.0.4)
Using YYText (1.0.7)
Using libwebp (1.1.0)
Using lottie-ios (3.1.9)
Using Then (2.7.0)
Using SwiftLocation (4.2.0)
Using VICMAImageView (1.0)
Generating Pods project
Removing framework "#{name}" from OTHER_LDFLAGS in config: [#{config_name}] from main App [#{aggregate_target.name}]
Removing framework "#{name}" from OTHER_LDFLAGS in config: [#{config_name}] from main App [#{aggregate_target.name}]
Change CryptoSwift optimization level to wholemodule
Integrating client project
Pod installation complete! There are 41 dependencies from the Podfile and 51 total pods installed.
su350380433 commented 3 years ago

在set_use_source_pods 不会生成

iWECon commented 3 years ago

在set_use_source_pods 不会生成

意思是我这样算正常情况是吗? 但我还有一个问题,我项目是 Swift 的,之前用 Pod 的时候可以正常编译/运行,使用 imy-bin 之后,编译无法通过,Xcode 会告诉我 @objc cannot marked,我注释掉 use_binaries! 后(切回源码),可以正常编译通过。 所以我认为是 set_use_source_podsuse_binaries_with_spec_selector 都无效。

iWECon commented 3 years ago

@objc cannot marked 是项目中的,不是第三方库的

su350380433 commented 3 years ago

配置白名单

iWECon commented 3 years ago

配置白名单

是使用 set_use_source_pods, 还是配置 BinArchive.json 里的 set_use_source_pods???

iWECon commented 3 years ago

如果我没理解错的话,在 Pofile_local 中使用 set_use_source_pods 就行, 但是好像没有生效, 只能开启或关闭 use_binaries! 才有效... , use_binaries_with_spec_selector! 这个也无效 麻烦请指点一下

su350380433 commented 3 years ago

看下说明文档

iWECon commented 3 years ago

我换个问法 use_binaries!、set_use_source_pods、use_binaries_with_spec_selector! 这三个命令有优先级吗?同时使用是否会互拆?