Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios iPad上的CoreTelephony神秘崩溃,因此不包括在内_Ios_Crash_Cocoapods_Core Telephony_Reachability Swift - Fatal编程技术网

Ios iPad上的CoreTelephony神秘崩溃,因此不包括在内

Ios iPad上的CoreTelephony神秘崩溃,因此不包括在内,ios,crash,cocoapods,core-telephony,reachability-swift,Ios,Crash,Cocoapods,Core Telephony,Reachability Swift,我需要帮助,以找到一个重大崩溃的应用程序。它发生在我们从迦太基切换到Cocoapods之后,由于我们在out应用程序中没有CoreTelephony链接,所以我想这是一个正在使用它的pod。 但公平地说;我不知道情况是否如此 这是iTunesConnect的符号化崩溃报告: 它主要出现在iPad上,但也偶尔出现在iPhone上。 仅在iOS 9.3.5和iOS 10.x上 有很多崩溃-大约16%的用户,所以这不是一个罕见的错误 因为我怀疑有个吊舱,这是我们的吊舱文件: source 'http

我需要帮助,以找到一个重大崩溃的应用程序。它发生在我们从迦太基切换到Cocoapods之后,由于我们在out应用程序中没有CoreTelephony链接,所以我想这是一个正在使用它的pod。 但公平地说;我不知道情况是否如此

这是iTunesConnect的符号化崩溃报告:

它主要出现在iPad上,但也偶尔出现在iPhone上。 仅在iOS 9.3.5和iOS 10.x上 有很多崩溃-大约16%的用户,所以这不是一个罕见的错误

因为我怀疑有个吊舱,这是我们的吊舱文件:

source 'https://github.com/CocoaPods/Specs.git'


platform :ios, '9.0'
# ignore all warnings from all pods
inhibit_all_warnings!


target 'Secret App TopShelf' do
    platform :tvos, '9.2'
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!

    pod 'RxSwift',    '~> 4.0'
    pod 'CoreBrick', '~> 4.0.2'
    pod 'SwiftyJSON', '4.2'
    pod 'HTTPStatusCodes', '3.2'
    pod 'RxCocoa',    '~> 4.0'
    pod 'ReachabilitySwift', '4.3'

end

target 'Secret App iOS' do
    use_frameworks!

    pod 'RxSwiftExt'
    pod 'ParentalGate', '1.1.1'
    pod 'ReachabilitySwift', '4.3'
    pod 'HTTPStatusCodes', '3.2'
    pod 'ThePerfectApp', '4.8'
    pod 'TrackingBrick', '2.6.1'
    pod 'AdobeMobileSDK', '~> 4.17'
    pod 'RxSwift',    '~> 4.0'
    pod 'RxCocoa',    '~> 4.0'
    pod 'SwiftyJSON', '4.2'
    pod 'Kingfisher', '~> 4.0'
    pod 'RxGesture'
end

target 'Secret App iOS Tests' do
  inherit! :search_paths
  # Pods for testing
end

target 'Secret App iOS UI Tests' do
  inherit! :search_paths
  # Pods for testing
end

target 'Secret App tvOS' do
    platform :tvos, '9.2'
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!

    pod 'RxSwift',    '~> 4.0'
    pod 'CoreBrick', '~> 4.0.2'
    pod 'SwiftyJSON', '4.2'
    pod 'HTTPStatusCodes', '3.2'
    pod 'RxCocoa',    '~> 4.0'
    pod 'ReachabilitySwift', '4.3'
    pod 'RxSwiftExt'
    pod 'Kingfisher', '~> 4.0'

end

target 'Secret App tvOS Tests' do
  inherit! :search_paths
  # Pods for testing
end

target 'Secret App tvOS UI Tests' do
  inherit! :search_paths
  # Pods for testing
end

我在网上读到,

存在一个iOS错误,该错误导致CTTelephonyNetworkInfo类的实例在释放后有时会收到通知。与实例化、使用和释放实例不同,您必须保留实例,而不是释放实例来解决bug

但我不知道CoreTelephony应该放在哪里。 代码中未使用CTTelephonyNetworkInfo

希望你们能用这个给我指出任何方向

谢谢

更新: 经过进一步调查,我了解到:

  • 使用Ashley Mills可达性Wift v。4.3.0不包括核心电话
  • 使用可达性wift v。4.3.1确实包括核心电话
通过观察,我开始相信崩溃是由于在CoreTephony不存在时试图访问CoreThony的可达性造成的。
正如bug中所述,我现在尝试手动添加CoreThelphony并允许访问wifi信息。

我将使用结果进行更新。

您可以对Pods目录进行grep,以查看哪个Pod将其添加到xcconfig文件中。您还应该提供完整的堆栈,包括不同线程上发生的内容,以查看是否有任何实际客户端代码的跟踪。Organizer/Crash有一个非常好的输出,可以添加到这个问题中。这就是全部内容。这就是困扰我的原因。因为我同意,通常堆栈跟踪更长,并且有我的应用程序代码的跟踪。问题更新为更多信息。