Meituan-Dianping / Logan

Logan is a lightweight case logging system based on mobile platform.
https://tech.meituan.com/logan_open_source.html
MIT License
5.73k stars 876 forks source link

iOS的OC版本和WCDB的文件名称冲突,要怎么解决? #521

Open panskycol opened 4 months ago

Richard-Cao commented 4 months ago

啊?还有这问题?

panskycol commented 3 months ago

啊?还有这问题?

是的,我Pod进去的时候,遇到下面这两个文件冲突问题,无奈之下我只能把Logan的文件单独拉出去修改文件名,不知道有没有其他方法 /WCDBOptimizedSQLCipher/config.h /Logan/mbedtls/include/mbedtls/config.h

jiangteng commented 3 months ago

podfile 增加 WCDBOptimizedSQLCipher SEARCH_PATHS处理试试

post_install do |installer| installer.pods_project.targets.each do |target| if target.name == 'WCDBOptimizedSQLCipher' target.build_configurations.each do |config| config.build_settings['USE_HEADERMAP'] = 'NO' config.build_settings['HEADER_SEARCH_PATHS'] ||= ['$(inherited)'] config.build_settings['HEADER_SEARCH_PATHS'] << '"${PODS_ROOT}/WCDBOptimizedSQLCipher/**"' end end end end

image