AX查找问题 errorCode:1100错误:权限拒绝portName:“com.apple.iphone.axserver PID:xxxx

2022-10-15 06:39:37标签iosswiftxcodeswiftuiimagepicker
提问

我在从一个真实设备上挑选照片时得到这个错误。我偶然发现了很多类似的问题,但在访问真实设备上的图像抓取器时,并没有发现任何关于这个错误的东西。在应用程序中没有任何被发射的网络请求,它只是一个按钮,它在被敲击时显示图像picker。 我非常感谢有人回答这个问题,因为我真的看不到解决方案。谢谢。 我用一个调度改变了我的picker函数,它现在为我工作

2022-07-28 09:37:52.891102+0200 NameOfTheApp[6638:361667] [Picker] Showing picker unavailable UI (reason: still loading) with error: (null)
2022-07-28 09:37:53.548035+0200 NameOfTheApp[6638:361940] [AXRuntimeCommon] Unknown client: NameOfTheApp
2022-07-28 09:38:20.607892+0200 NameOfTheApp[6638:361923] [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:6646 (
    0   AXRuntime                           0x00000001c5580a8c DE935F35-C84D-3E8D-BC40-E8D0D1D34197 + 326284
    1   AXRuntime                           0x00000001c5535d70 _AXGetPortFromCache + 704
    2   AXRuntime                           0x00000001c553769c AXUIElementPerformFencedActionWithValue + 564
    3   UIKit                               0x000000021060c240 84364574-5373-346D-9593-93A1572D3983 + 934464
    4   libdispatch.dylib                   0x0000000103054c70 _dispatch_call_block_and_release + 32
    5   libdispatch.dylib                   0x00000001030567c0 _dispatch_client_callout + 20
    6   libdispatch.dylib                   0x000000010305e8a4 _dispatch_lane_serial_drain + 984
    7   libdispatch.dylib                   0x000000010305f5e0 _dispatch_lane_invoke + 428
    8   libdispatch.dylib                   0x000000010306c168 _dispatch_workloop_worker_thread + 908
    9   libsystem_pthread.dylib             0x00000002102dc0bc _pthread_wqthread + 288
    10  libsystem_pthread.dylib             0x00000002102dbe5c start_wqthread + 8
)
2022-07-28 09:38:20.613683+0200 NameOfTheApp[6638:361923] [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:6646 (
    0   AXRuntime                           0x00000001c5580a8c DE935F35-C84D-3E8D-BC40-E8D0D1D34197 + 326284
    1   AXRuntime                           0x00000001c5535d70 _AXGetPortFromCache + 704
    2   AXRuntime                           0x00000001c553769c AXUIElementPerformFencedActionWithValue + 564
    3   UIKit                               0x000000021060c240 84364574-5373-346D-9593-93A1572D3983 + 934464
    4   libdispatch.dylib                   0x0000000103054c70 _dispatch_call_block_and_release + 32
    5   libdispatch.dylib                   0x00000001030567c0 _dispatch_client_callout + 20
    6   libdispatch.dylib                   0x000000010305e8a4 _dispatch_lane_serial_drain + 984
    7   libdispatch.dylib                   0x000000010305f5e0 _dispatch_lane_invoke + 428
    8   libdispatch.dylib                   0x000000010306c168 _dispatch_workloop_worker_thread + 908
    9   libsystem_pthread.dylib             0x00000002102dc0bc _pthread_wqthread + 288
    10  libsystem_pthread.dylib             0x00000002102dbe5c start_wqthread + 8
)
2022-07-28 09:38:20.615705+0200 NameOfTheApp[6638:361923] [AXRuntimeCommon] AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver' PID:6646 (
    0   AXRuntime                           0x00000001c5580a8c DE935F35-C84D-3E8D-BC40-E8D0D1D34197 + 326284
    1   AXRuntime                           0x00000001c5535d70 _AXGetPortFromCache + 704
    2   AXRuntime                           0x00000001c553769c AXUIElementPerformFencedActionWithValue + 564
    3   UIKit                               0x000000021060c240 84364574-5373-346D-9593-93A1572D3983 + 934464
    4   libdispatch.dylib                   0x0000000103054c70 _dispatch_call_block_and_release + 32
    5   libdispatch.dylib                   0x00000001030567c0 _dispatch_client_callout + 20
    6   libdispatch.dylib                   0x000000010305e8a4 _dispatch_lane_serial_drain + 984
    7   libdispatch.dylib                   0x000000010305f5e0 _dispatch_lane_invoke + 428
    8   libdispatch.dylib                   0x000000010306c168 _dispatch_workloop_worker_thread + 908
    9   libsystem_pthread.dylib             0x00000002102dc0bc _pthread_wqthread + 288
    10  libsystem_pthread.dylib             0x00000002102dbe5c start_wqthread + 8
)

回答

func picker(_ picker: PHPickerViewController, didFinishPicking results: [PHPickerResult]) {
            picker.dismiss(animated: true, completion: nil)
            for result in results {
                result.itemProvider.loadObject(ofClass: UIImage.self, completionHandler: { (object, error) in
                    if let image = object as? UIImage {
                        DispatchQueue.main.async {
                            self.parent.pickerResult.append(image)
                        }
                    }
                })
            }

▼版权说明

相关文章也很精彩
推荐内容
更多标签
相关热门
全站排行
随便看看

错说cuoshuo.com——程序员的报错记录

部分内容根据CC版权协议转载,如果您希望取消转载请发送邮件到cuoshuo8@163.com

辽ICP备19011660号-5