ming1016 / smcheckproject Goto Github PK
View Code? Open in Web Editor NEW使用Swift3开发了个MacOS的程序可以检测出objc项目中无用方法,然后一键全部清理
License: MIT License
使用Swift3开发了个MacOS的程序可以检测出objc项目中无用方法,然后一键全部清理
License: MIT License
如果项目路径中包含中文,则CleanUnusedMethods类中find方法的fullPath这个转fileUrl时,fileUrl会为空。原因是不能对中文编码,我这样处理就可以了。
let data = fullPath.data(using: String.Encoding.utf8)
let fileUrl = URL(dataRepresentation: data!, relativeTo: nil)
能否改成可调整大小的,现在根本看不到后面的文件名
大概 是 可以加入一个 对单独文件 清理的功能吗? 一键清理 有些怕..
你好,我试了一下,查询有缺陷,与storyboard关联的方法也被认为没有调用
我的工程是Swift+OC混编的,跑完后发现很多误删的代码
fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=261 "The file “XXXXX” couldn’t be opened using text encoding Unicode (UTF-8)." UserInfo={NSFilePath=/Users/XXXXX, NSStringEncoding=4}: file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-800.0.63/src/swift/stdlib/public/core/ErrorType.swift, line 178
使用了cocoapod但没有做git track,导致看不清楚哪部分被误删了代码
导致运行直接crash
这个是在大项目上用过吗?感觉不太成熟
代码运行不起来 直接报错 是什么原因?
扫描结果出来后,如果点击了左边的任意单元格就Crash
C++方法里面掉用OC的代理方法,然后被屏蔽了!
假设有类A,存在方法a;
有基类B,存在属性a1,是类A的实例,但基类中未使用a1的方法a;
类C继承自类B,并调用了父类属性a1的方法a。
则方法a会被判定为无用方法。
下载项目后 pod install 打开项目 999+红色错误 xcode 8.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.