应用程序因崩溃而被拒绝,但我无法重现它?

时间:2017-04-24 23:18:23

标签: ios swift crash-reports

任何人都可以帮助搞清楚导致此次崩溃的原因。这是导致崩溃的代码。我只在iPhone上测试过,在iPad上测试的应用程序商店可能是特定于设备的。

当我提交审核时,它会因为理由而被拒绝"性能 - 2.1" - 第一次观看时他们崩溃了。

这是Apple审核小组发送的崩溃日志:

  

异常类型:EXC_BREAKPOINT(SIGTRAP)异常代码:   0x0000000000000001,0x000000010003b160终止信号:Trace / BPT   陷阱:5终止原因:命名空间SIGNAL,代码0x5终止   进程:exc handler [0]由​​Thread:0

触发      

已过滤的系统日志:未找到

     

线程0名称:调度队列:com.apple.main-thread线程0   坠毁:0播放列表Cheetah 0x000000010003b160   CreatePlaylistVC.updateSong() - > ()(CreatePlaylistVC.swift:0)1
  播放列表Cheetah 0x0000000100040108专业   CreatePlaylistVC.drag(gesture:UIPanGestureRecognizer) - > ()   (CreatePlaylistVC.swift:253)2播放列表猎豹
    0x000000010003ac84 @objc CreatePlaylistVC.drag(手势:   UIPanGestureRecognizer) - > ()(CreatePlaylistVC.swift:0)3 UIKit
    0x0000000194eecc54 0x19490b000 + 6167636 4 UIKit
    0x0000000194ef0488 0x19490b000 + 6182024 5 UIKit
    0x0000000194aaa540 0x19490b000 + 1701184 6 UIKit
    0x000000019494c45c 0x19490b000 + 267356 7 UIKit
    0x0000000194ee072c 0x19490b000 + 6117164 8 UIKit
    0x0000000194ee02fc 0x19490b000 + 6116092 9 UIKit
    0x0000000194edf5a8 0x19490b000 + 6112680 10 UIKit
    0x000000019494a7e8 0x19490b000 + 260072 11 UIKit
    0x000000019491b418 0x19490b000 + 66584 12 UIKit
    0x0000000195114f64 0x19490b000 + 8429412 13 UIKit
    0x000000019510f6c0 0x19490b000 + 8406720 14 UIKit
    0x000000019510f9a0 0x19490b000 + 8407456 15 UIKit
    0x000000019510faec 0x19490b000 + 8407788 16 CoreFoundation
    0x000000018e7a1424 0x18e6c6000 + 898084 17 CoreFoundation
    0x000000018e7a0d94 0x18e6c6000 + 896404 18 CoreFoundation
    0x000000018e79e9a0 0x18e6c6000 + 887200 19 CoreFoundation
    0x000000018e6ced94 0x18e6c6000 + 36244 20图形服务
    0x0000000190138074 0x19012c000 + 49268 21 UIKit
    0x0000000194980130 0x19490b000 + 479536 22播放列表猎豹
    0x00000001000322f0 main(ApiConvience.swift:12)23 libdyld.dylib
    0x000000018d6dd59c 0x18d6d9000 + 17820

     

线程1:0 libsystem_kernel.dylib 0x000000018d7eda88   0x18d7ce000 + 129672 1 libsystem_pthread.dylib
    0x000000018d8b3274 0x18d8b2000 + 4724 2 libsystem_pthread.dylib
    0x000000018d8b2d7c 0x18d8b2000 + 3452

     

线程2:0 libsystem_kernel.dylib 0x000000018d7eda88   0x18d7ce000 + 129672 1 libsystem_pthread.dylib
    0x000000018d8b3274 0x18d8b2000 + 4724 2 libsystem_pthread.dylib
    0x000000018d8b2d7c 0x18d8b2000 + 3452

     

线程3:0 libsystem_kernel.dylib 0x000000018d7eda88   0x18d7ce000 + 129672 1 libsystem_pthread.dylib
    0x000000018d8b30a0 0x18d8b2000 + 4256 2 libsystem_pthread.dylib
    0x000000018d8b2d7c 0x18d8b2000 + 3452

     

线程4:0 libsystem_pthread.dylib 0x000000018d8b2d78   0x18d8b2000 + 3448

     

线程5:0 libsystem_kernel.dylib 0x000000018d7eda88   0x18d7ce000 + 129672 1 libsystem_pthread.dylib
    0x000000018d8b30a0 0x18d8b2000 + 4256 2 libsystem_pthread.dylib
    0x000000018d8b2d7c 0x18d8b2000 + 3452

     

线程6名称:com.apple.uikit.eventfetch-thread线程6:0
  libsystem_kernel.dylib 0x000000018d7cf224 0x18d7ce000 + 4644 1   libsystem_kernel.dylib 0x000000018d7cf09c 0x18d7ce000 + 4252 2   CoreFoundation 0x000000018e7a0e88 0x18e6c6000 + 896648   3 CoreFoundation 0x000000018e79eadc 0x18e6c6000 +   887516 4 CoreFoundation 0x000000018e6ced94   0x18e6c6000 + 36244 5基础
    0x000000018f1e8d64 0x18f1dc000 + 52580 6基础
    0x000000018f209b34 0x18f1dc000 + 187188 7 UIKit
    0x000000019530a5f8 0x19490b000 + 10483192 8基金会     0x000000018f2e62c8 0x18f1dc000 + 1090248 9 libsystem_pthread.dylib     0x000000018d8b575c 0x18d8b2000 + 14172 10 libsystem_pthread.dylib
    0x000000018d8b566c 0x18d8b2000 + 13932 11 libsystem_pthread.dylib
    0x000000018d8b2d84 0x18d8b2000 + 3460

     

线程0与ARM线程状态(64位)崩溃:       x0:0x0000000100813e40 x1:0x00000001954fdaa9 x2:0x0000000000000000 x3:0x0000000000000001       x4:0x0000000000000001 x5:0x0000000000000001 x6:0x0000000000000007 x7:0x0000000000000570       x8:0x00000001740efe00 x9:0x0000000000000000 x10:0x0000000000000006 x11:0x0000000000000000 x12:0x0000000101897a90   x13:0x000005a100075d3f x14:0x0000000000b27800 x15:   0x0000000000b277c0 x16:0x0000000100075d38 x17:0x0000000195190d68   x18:0x0000000000000000 x19:0x0000000101838c00 x20:   0x0000000100813e40 x21:0x0000000000000000 x22:0x0000000195458c72   x23:0x0000000100074000 x24:0x0000000100074000 x25:   0x0000000100074000 x26:0x0000000100074000 x27:0x00000000000002f8
  x28:0x0000000000000358 fp:0x000000016fdd0df0 lr:   0x000000010003af68       sp:0x000000016fdd0da0 pc:0x000000010003b160 cpsr:0x60000000

func updateSong() {
        if suggestionsSwitch.isOn && similarSongsArray.count > 0 {

            let randIndex = Int(arc4random_uniform(UInt32((similarSongsArray.count))))
            currentIndex = randIndex

            let song = similarSongsArray[currentIndex]

            showingSimilarSong = true
            AlbumImgView.image = #imageLiteral(resourceName: "noAlbumArt")
            songTitleLbl.text = song.title
            albumTitleLbl.text = song.artist
        } else {
        let randIndex = Int(arc4random_uniform(UInt32((songsArr.count))))

        currentIndex = randIndex

        showingSimilarSong = false
        AlbumImgView.image = songsArr[currentIndex].artwork
        songTitleLbl.text = songsArr[currentIndex].title
        albumTitleLbl.text = songsArr[currentIndex].album

        }
    }

1 个答案:

答案 0 :(得分:-1)

我不确定,但我认为根据您的崩溃日志,您需要在播放列表创建期间检查拖动的位置以及 pan-gesture < / strong>已被使用。请尝试将该内容拖到边界和代码片段。