3 回答
TA贡献1886条经验 获得超2个赞
我也是,这很糟糕。
*** Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23b98a1c +[NSException raise:format:] + 188
3 UIKitCore 0x00007fff466e9463 -[UIAlertView initWithFrame:] + 417
4 UIKitCore 0x00007fff466e9ad0 -[UIAlertView initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:] + 218
5 UIKitCore 0x00007fff47516acf +[UIAlertView(ViewServiceSupport) _alertViewForWindow:] + 217
6 UIKitCore 0x00007fff476cdb44 -[UIWebGeolocationPolicyDecider _executeNextChallenge] + 242
7 WebKit 0x00007fff2d123a6d _ZN6WebKit43decidePolicyForGeolocationRequestFromOriginEPN7WebCore14SecurityOriginERKN3WTF6StringEPU37objcproto26WebAllowDenyPolicyListener11objc_objectP8UIWindow + 169
8 WebKit 0x00007fff2d123641 -[WKGeolocationProviderIOS(WebGeolocationCoreLocationUpdateListener) geolocationAuthorizationGranted] + 603
9 WebKit 0x00007fff2d12328d -[WKGeolocationProviderIOS
...
TA贡献1829条经验 获得超4个赞
我也是,这很糟糕。
*** Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'UIAlertView is deprecated and unavailable for UIScene based applications, please use UIAlertController!'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23b98bde __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff503b5b20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23b98a1c +[NSException raise:format:] + 188
3 UIKitCore 0x00007fff466e9463 -[UIAlertView initWithFrame:] + 417
4 UIKitCore 0x00007fff466e9ad0 -[UIAlertView initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:] + 218
5 UIKitCore 0x00007fff47516acf +[UIAlertView(ViewServiceSupport) _alertViewForWindow:] + 217
6 UIKitCore 0x00007fff476cdb44 -[UIWebGeolocationPolicyDecider _executeNextChallenge] + 242
7 WebKit 0x00007fff2d123a6d _ZN6WebKit43decidePolicyForGeolocationRequestFromOriginEPN7WebCore14SecurityOriginERKN3WTF6StringEPU37objcproto26WebAllowDenyPolicyListener11objc_objectP8UIWindow + 169
8 WebKit 0x00007fff2d123641 -[WKGeolocationProviderIOS(WebGeolocationCoreLocationUpdateListener) geolocationAuthorizationGranted] + 603
9 WebKit 0x00007fff2d12328d -[WKGeolocationProviderIOS
...
TA贡献1862条经验 获得超6个赞
有趣的是,您没有在“始终定位”描述中收到此错误。但你永远找不到位置...
我已将我的应用程序降级到目标平台“iOS 12”而不是 13,然后允许第二个“警报”WKWebView使用位置数据。我无法工作,如何提供一个UIAlertControl代替UIAlertView的WKWebView是要求。
网上有很多人抱怨 iOS 13 中的更新,以及有多少框架和库受到这些变化的影响。
添加回答
举报
