MeetYouDevs / cocoapods-imy-bin

1.05k stars 245 forks source link

无法生成头文件 #104

Closed miroda closed 3 years ago

miroda commented 3 years ago

pod 'WCDB' pod 'SQLiteRepairKit' 无法生成头文件

miroda commented 3 years ago

@dabing1022 你最新的pr我已经合并了,这个库帮忙看下,这个是C语言的 库

miroda commented 3 years ago
企业微信20210120-155249@2x
miroda commented 3 years ago

可以看到本地打包的是没有问题的,但是后面pod bin install 的时候就不行了

dabing1022 commented 3 years ago

可以看到本地打包的是没有问题的,但是后面pod bin install 的时候就不行了

打包的二进制看下是否正常?(包括头文件、二进制等文件)具体怎么不行呢?咱们描述问题的时候注意描述清楚,为他人节省反复询问的时间。😂

miroda commented 3 years ago

1、打包之后,本地的目录里面是有头文件的 2、上传到nodejs的服务器里面的zip包也是有头文件的 3、pod bin install之后,xcode工程中,就没有头文件了 4、~/Library/Caches/CocoaPods/Pods/Release/WCDB,这里也没有头文件

dabing1022 commented 3 years ago
  1. Podfile中如何指定WCDB的?
  2. 工程Pods/WCDB中是怎么显示的?
miroda commented 3 years ago
企业微信20210121-132012@2x
miroda commented 3 years ago

WCDB现在在xcode工程中又有头文件,现在是 SQLiteRepairKit没有头文件

miroda commented 3 years ago

SQLiteRepairKit是 pod 'PolyvVodSDK', '~>2.13.1' 中s.denpendency这样的方式指定的

dabing1022 commented 3 years ago

你用的imy-bin版本是啥?

miroda commented 3 years ago

master版本,已经合并了你最新提交的代码

dabing1022 commented 3 years ago

我测试下 SQLiteRepairKit 这个库,稍后回复。

miroda commented 3 years ago

WCDB中引用SQLiteRepairKit的方式 "dependencies": { "WCDBOptimizedSQLCipher": [ "~> 1.2.0" ], "SQLiteRepairKit": [ "~> 1.2.0" ] }

dabing1022 commented 3 years ago

image

正常生成的lib里面有头文件

Podfile

target 'BinaryBuilder' do
    pod 'WCDBOptimizedSQLCipher', '1.2.1' # 内部版本,忽略
    pod 'SQLiteRepairKit', '1.2.3' # 内部版本,忽略
end

Podspec

Pod::Spec.new do |s|
  ···
  s.dependency 'WCDBOptimizedSQLCipher'
  s.dependency 'SQLiteRepairKit'
end
miroda commented 3 years ago

我这边生成的也是有的,传到nodejs里面的也是有的,就是工程里面没有

企业微信20210121-133350@2x
dabing1022 commented 3 years ago

image

~/Library/Caches/CocoaPods/Pods/Release/SQLiteRepairKit/1.2.3-93a15

image

miroda commented 3 years ago

~/Library/Caches/CocoaPods/Pods/Release/SQLiteRepairKit/1.2.2-a4e19

企业微信20210121-133633@2x
miroda commented 3 years ago

这样的操作方式会导致我自己写的一个库的头文件无法出现

!/bin/bash

rm *.lock pod bin install

而一下的方式就没有问题

!/bin/bash

rm *.lock pod install pod bin install

miroda commented 3 years ago

@dabing1022 你可否用这两个库来测试

pod 'PolyvVodSDK', '~>2.13.1' pod 'PLVSubtitle'

miroda commented 3 years ago

@dabing1022 找到了问题,在你之前提交fix 无法生成头文件的代码到master,我打的老的库,缓存在了~/Library/Caches/CocoaPods/Pods/SQLiteRepairKit目录下,导致无法更新最新的库,这个问题会造成无法生成头文件