相关疑难解决方法(0)

React native - 连接没有连接处理程序错误含义?

我创建了一个新的反应项目,当我在iOS上从xcode运行它时,控制台给了我:

2017-05-19 23:25:34.119 [info][tid:main][RCTBatchedBridge.m:77] Initializing <RCTBatchedBridge: 0x6100001a6c80> (parent: <RCTBridge: 0x6100000c46e0>, executor: RCTJSCExecutor)
2017-05-19 23:25:51.287 [info][tid:main][RCTRootView.m:295] Running application test ({
    initialProps =     {
    };
    rootTag = 1;
})
2017-05-19 23:25:51.289 [info][tid:com.facebook.react.JavaScript] Running application "test" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
2017-05-19 23:25:51.299771-0400 test[21948:1121429] [] nw_connection_get_connected_socket_block_invoke 3 Connection has no connected handler
2017-05-19 23:25:53.335282-0400 test[21948:1121426] [] nw_connection_get_connected_socket_block_invoke 4 Connection has no connected handler
2017-05-19 23:25:55.349190-0400 test[21948:1120112] [] nw_connection_get_connected_socket_block_invoke 5 Connection has no connected handler …
Run Code Online (Sandbox Code Playgroud)

connection ios react-native

37
推荐指数
3
解决办法
2万
查看次数

iOS 10/XCode 8的运行时问题

自从我在iOS 10模拟器上构建并开始运行应用程序以来,我开始获取日志,例如:

objc[6880]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x120275910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x12009f210). One of the two will be used. Which one is undefined.

2016-09-14 17:18:55.812525 MyApp[6880:340725] bundleid: com.MyApps.MyApp, enable_level: 0, persist_level: 0, propagate_with_activity: 0

2016-09-14 17:18:55.813154 MyApp[6880:340725] subsystem: com.apple.siri, category: Intents, enable_level: 1, persist_level: 1, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-14 17:18:55.842900 MyApp[6880:340837] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, …
Run Code Online (Sandbox Code Playgroud)

xcode ios-simulator ios10 xcode8

34
推荐指数
1
解决办法
7256
查看次数

Xcode 8.1 beta 3 - AQDefaultDevice消息

从beta2开始,我在创建音频输出单元后每两秒收到一条消息:

2016-10-14 11:31:21.572479 MyProduct[94063:8294923] [aqme] 254: AQDefaultDevice (173): skipping input stream 0 0 0x0
Run Code Online (Sandbox Code Playgroud)

有谁知道它是由什么产生的?我想也许我没有服务于音频输出回调,但据我所知,我正在为它提供正确的服务.

beta audio xcode8

32
推荐指数
2
解决办法
1万
查看次数

使用 MapKit 和 SwiftUI、Xcode 12 在默认 iOS 地图上移动视图时,如何修复“不可见矩形需要样式 Z”的终端输出

使用 MapKit 和 SwiftUI(版本 12.0 beta 2 (12A6163b))放大/缩小地图时,终端会生成数百条这样的行:

2020-07-21 21:05:39.310719-0500 MyApp[95733:4195994] [VKDefault] 不可见矩形请求样式 Z

import SwiftUI
import MapKit

@main
struct MapTest: App {
    var body: some Scene {
        WindowGroup {
            MapView()
        }
    }
}

struct MapView: View {
    var body: some View {
        Map()
    }
}

struct MapView_Previews: PreviewProvider {
    static var previews: some View {
        MapView()
    }
}

struct Map: UIViewRepresentable {
    func makeUIView(context: Context) -> MKMapView {
        
        let map = MKMapView()
        map.delegate = context.coordinator
        return map
    }
    
    func …
Run Code Online (Sandbox Code Playgroud)

mapkit ios swift swiftui xcode12

22
推荐指数
1
解决办法
3729
查看次数

requestAccessForMediaType在iOS 10中崩溃

在我的应用程序中,我使用card.io扫描信用卡.它在iOS 9中运行良好.在iOS 10中,应用程序崩溃,我无法在xcode 8 beta 2控制台中找到崩溃日志,因为它会抛出大量垃圾邮件.

然后我检查了隐私 - >设置以查看我的应用程序是否禁用了相机,但我的应用程序未列在该部分中.请注意,iOS 10并未授权我的应用程序使用相机.

我使用以下代码来请求权限:

-(BOOL)checkCameraPermissions{

    AVAuthorizationStatus authStatus = [AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo];
    if(authStatus == AVAuthorizationStatusAuthorized)
    {
        // start card-io
        return YES;
    }
    else if(authStatus == AVAuthorizationStatusNotDetermined)
    {

        [AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo completionHandler:^(BOOL granted)
         {
             if(granted)
             {
                 //Start card-io
                 [self testIsNewCard];
             }

         }];
    }
    else if (authStatus == AVAuthorizationStatusRestricted)
    {
        //Alert
        // Alert camera denied

        UIAlertController *aCon=[UIAlertController alertControllerWithTitle:@"Camera denied" message:@"Camera cannot be used" preferredStyle:UIAlertControllerStyleAlert];
        UIAlertAction *ok =[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
            [aCon dismissViewControllerAnimated:YES completion:nil];
        }]; …
Run Code Online (Sandbox Code Playgroud)

objective-c card.io ios10 xcode8-beta2

20
推荐指数
3
解决办法
4699
查看次数

错误:收到错误:[57]套接字未连接 - iOS 10

我刚刚更新到Xcode 8和iOS 10.

在创建构建之后,我遇到了一个错误,我认为这个错误导致一些数据无法获取.

我不知道从哪里开始,但它似乎与http调用有关.无论哪种方式,我不喜欢这些错误的外观,需要深入了解事物.

在日志中我得到:

[] nw_connection_write_close 9 Connection is not ready, sending error callback
[] __tcp_connection_write_eof_block_invoke Write close callback received error: [57] Socket is not connected
Run Code Online (Sandbox Code Playgroud)

这些错误意味着什么,我怎么去找哪个地方?

这些错误报告是否与iOS 9中NSURLConnection的折旧有关?

iphone objective-c ipad ios ios10

20
推荐指数
1
解决办法
1万
查看次数

当应用程序启动时,DYMTLInitPlatform平台初始化成功日志是什么?

我刚刚更新到Xcode 8/iOS 10 SDK,现在当我编译并运行我的应用程序时,我[DYMTLInitPlatform] platform initialization successful在输出中的所有其他日志之前得到了.

这不是有害的或任何东西,但我想知道该消息是什么,与Xcode 7.3/iOS 9.3 SDK不相关.

xcode ios ios10 xcode8

19
推荐指数
2
解决办法
8137
查看次数

无法注册BoringSSL日志调试更新

当在安装了iOS 11 beta的iPhone上运行时调试Xcode 9 beta中的应用程序时,我在执行网络呼叫时开始注意到以下消息:

[] network_config_register_boringssl_log_debug_updates Failed to register for BoringSSL log debug updates
[BoringSSL] Function boringssl_context_get_peer_npn_data: line 1212 Peer's advertised NPN data is NULL or empty
Run Code Online (Sandbox Code Playgroud)

知道是什么导致了这个吗?

logging ios11 xcode9-beta

19
推荐指数
2
解决办法
3674
查看次数

如何解决/解决Xcode 10.1 / iOS 12.1中出现的“信号强度查询返回错误”日志?

最近更新到iOS 12.1(从12.0开始)和Xcode 10.1(从10.0开始),并且在我的物理设备上进行调试时,在Xcode控制台中看到大量错误消息,如下所示:

[NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x28051d700, domain=1, instance=1>

我每隔几秒钟就会收到几个这样的日志,唯一改变的是CTServiceDescriptor的十六进制值。没有代码更改,因此我必须假定其与iOS或Xcode更新有关。

据我所知,它似乎并未对性能产生任何影响,该应用程序正在按预期运行,并且我的手机正在运行(甚至可以更新其信号强度!)。我在Stack Overflow,Google或Apple Developer论坛上找不到任何有用/相关的信息,尽管我发表了与后者类似的帖子,一旦该帖子获得批准,我将在此处链接。

对于如何进一步解决或解决问题的任何建议/见解,我们将不胜感激。谢谢!

xcode ios core-telephony

15
推荐指数
1
解决办法
2万
查看次数

从iOS 10的Xcode 8控制台禁用额外信息

我刚刚更新到新的Xcode 8,但当我运行我的应用程序时,它提供了很多控制台信息" 只有当我插入iOS + 10设备或iPhone 7模拟器 "但由于新的信息而没有显示所需的日志日志显示如下:

nw_endpoint_handler_cancel
nw_resolver_cancel_on_queue
tcp_connection_cancel
sa_dst_compare_internal
Run Code Online (Sandbox Code Playgroud)

如何禁用这些东西?

xcode xcode8

14
推荐指数
1
解决办法
7458
查看次数