检测代码是否包含UIWebView
2020-07-29 本文已影响0人
WeeverLu
苹果审核已经禁止用UIWebView了
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more
检测代码和SDK库是否包含UIWebView
-
AFNetworking
3.x版本的分类UIWebView+AFNetworking包含,如没用可直接删除,4.x版本已经使用WKWebView+AFNetworking(需要Xcode11编译)
检测代码
- 只是匹配对应字符串
- 后面有个.和UIWebView分开
grep -r UIWebView .
- 执行结果,如果匹配中,就会显示对应的路径,类名和使用的方法
./Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h:// UIWebView+AFNetworking.h
./Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h: This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling.
./Pods/Headers/Public/AFNetworking/UIWebView+AFNetworking.h:@interface UIWebView (AFNetworking)
./Pods/Headers/Public/AFNetworking/UIKit+AFNetworking.h: #import "UIWebView+AFNetworking.h"
./Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h:// UIWebView+AFNetworking.h
./Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h: This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling.
./Pods/Headers/Private/AFNetworking/UIWebView+AFNetworking.h:@interface UIWebView (AFNetworking)
./Pods/Headers/Private/AFNetworking/UIKit+AFNetworking.h: #import "UIWebView+AFNetworking.h"
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h:// UIWebView+AFNetworking.h
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h: This category adds methods to the UIKit framework's `UIWebView` class. The methods in this category provide increased control over the request cycle, including progress monitoring and success / failure handling.
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.h:@interface UIWebView (AFNetworking)
./Pods/AFNetworking/UIKit+AFNetworking/UIKit+AFNetworking.h: #import "UIWebView+AFNetworking.h"
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m:// UIWebView+AFNetworking.m
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m:#import "UIWebView+AFNetworking.h"
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m:@interface UIWebView (_AFNetworking)
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m:@implementation UIWebView (_AFNetworking)
./Pods/AFNetworking/UIKit+AFNetworking/UIWebView+AFNetworking.m:@implementation UIWebView (AFNetworking)
检测SDK
find . -type f | grep -e ".a" -e ".framework" | xargs grep -s UIWebView
- 执行结果,如果存在会有提示
Binary file ./libXXX.a matches