PythonToolBox icon indicating copy to clipboard operation
PythonToolBox copied to clipboard

RemoveUnityUIWebView.py

Open what2003 opened this issue 5 years ago • 8 comments

unity2017.4.33f1 , unity2019.3.8f1(默认空场景)都试了,生成好了libiPhone-lib-new.a,替换了原来的libiPhone-lib.a,上传后,但还是收到邮件: ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (https://developer.apple.com/documentation/uikit/uiwebview).

是我作的不对吗?

附: 当前所有架构: ['armv7', 'arm64']

----------开始生成armv7 URLUtility.o /Users/jack/Desktop/RemoveUnityUIWebView/URLUtility.mm:23:6: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations] [app openURL:url]; ^~~~~~~ openURL:options:completionHandler: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:123:1: note: 'openURL:' has been explicitly marked deprecated here

  • (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:opt... ^ /Users/jack/Desktop/RemoveUnityUIWebView/URLUtility.mm:30:6: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations] [app openURL:url]; ^~~~~~~ openURL:options:completionHandler: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:123:1: note: 'openURL:' has been explicitly marked deprecated here
  • (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:opt... ^ 2 warnings generated. ----------结束生成armv7 URLUtility.o ----------开始生成:libiPhone-lib_armv7.a ----------结束生成:libiPhone-lib_armv7.a ----------移除旧的URLUtility.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(MeshSkinningNEON64.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(TransformVertexNEON64.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(Matrix4x4_NEON64.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(unwind_test_arm64.o) has no symbols ----------插入新的URLUtility.o /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(MeshSkinningNEON64.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(TransformVertexNEON64.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(Matrix4x4_NEON64.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/jack/Desktop/RemoveUnityUIWebView/armv7/libiPhone-lib_armv7.a(unwind_test_arm64.o) has no symbols

----------开始生成arm64 URLUtility.o /Users/jack/Desktop/RemoveUnityUIWebView/URLUtility.mm:23:6: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations] [app openURL:url]; ^~~~~~~ openURL:options:completionHandler: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:123:1: note: 'openURL:' has been explicitly marked deprecated here

  • (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:opt... ^ /Users/jack/Desktop/RemoveUnityUIWebView/URLUtility.mm:30:6: warning: 'openURL:' is deprecated: first deprecated in iOS 10.0 [-Wdeprecated-declarations] [app openURL:url]; ^~~~~~~ openURL:options:completionHandler: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h:123:1: note: 'openURL:' has been explicitly marked deprecated here
  • (BOOL)openURL:(NSURL*)url API_DEPRECATED_WITH_REPLACEMENT("openURL:opt... ^ 2 warnings generated. ----------结束生成arm64 URLUtility.o ----------开始生成:libiPhone-lib_arm64.a ----------结束生成:libiPhone-lib_arm64.a ----------移除旧的URLUtility.o ----------插入新的URLUtility.o

----------生成的新的libiPhone为: /Users/jack/Desktop/RemoveUnityUIWebView/libiPhone-lib-new.a

what2003 avatar May 13 '20 08:05 what2003

或者你发我一份处理后的libiPhone-lib-new.a?我给你看看

rollin0-0 avatar May 13 '20 08:05 rollin0-0

链接: https://pan.baidu.com/s/1nl2jsMLKXD9xNtJKiAulCQ 提取码: 9ep2 多谢,我传到百度云上了,请看

what2003 avatar May 13 '20 08:05 what2003

我下载了并且使用脚本操作了一波,然后发现里面确实还有,可能你那个版本的libiPhone-lib.a里不只是需要替换我脚本里的URLUtility.mm文件,还有其他文件需要处理吧

rollin0-0 avatar May 13 '20 09:05 rollin0-0

我试了unity2017的几个版本,还有unity2019.3的,空场景,都有这个问题。 究竟我这个是普遍情况还是什么特殊设置引起的,请问需要我提供些什么吗来找到问题?

what2003 avatar May 13 '20 09:05 what2003

/Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/UnityServices/Ads/WebPlayer/SADSWebPlayerView.m") 应该是这个类里面有,我查看了静态库,这个类实现了很多UIWebView的方法,你看看能不能不勾选UnityAds

rollin0-0 avatar May 13 '20 09:05 rollin0-0

我看了packagemanager, 并没有勾选ads,unity2017服务里也没有添加ads,也看到网上说默认是加载都,但都不知道该怎么取消

what2003 avatar May 13 '20 09:05 what2003

我的那篇知乎的文章有人解决了这个问题,你去看看或者和他沟通一下吧

rollin0-0 avatar May 14 '20 08:05 rollin0-0

我爱睡觉回复CoderR (作者)6 小时前 确实是这样,我用的2019版本貌似是有问题,已经删除了unityads但还是报uiwebview的错误。后来用2020版打开项目,才看到unityads没有删除干净,删除后就一切正常了。感谢大佬!

是这个吗? 我又试了unity2020.0.1b, 空场景没改任何东西,打包上传居然可以通过。 之前unity2019.3.8f1同样操作就不行。 但搜archive,两个都显示 ╭─jack@192 ~/Library/Developer/Xcode/Archives/2020-05-14/Unity-iPhone 2020-5-14, 6.23 PM.xcarchive ╰─$ grep -R UIWebView * Binary file dSYMs/UnityFramework.framework.dSYM/Contents/Resources/DWARF/UnityFramework matches

说明unity2020 BETA版 尽管有UIWebView,仍然可以通过,但之前版本不行。我爱睡觉这位网友不是因为unityads没删干净,而是换了2020通过的。

遗憾的是我的第三方插件需要用unity2017.4.33f1(release note说解决了这个bug)

what2003 avatar May 14 '20 11:05 what2003