Hi Every 1,
This is my first app on IOS , my app has been rejected for 3 times with the reson of IPV6 connectivity .
finally i have get the symbolicated Crach report but i can't find the main reason of the crash
any help will be much appreciated
my code when its crash :
import UIKit
import SDWebImage
class Codingtbl: UITableViewController {
@IBOutlet var imgtbl: UITableView!
var imgarray = [Images]()
let backendless = Backendless()
override func viewDidLoad() {
super.viewDidLoad()
imgtbl.delegate=self
imgtbl.dataSource=self
}
override func viewDidAppear(_ animated: Bool) {
loaddatawithquery()
}
override func numberOfSections(in tableView: UITableView) -> Int {
/
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
/
return imgarray.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if let cell = self.imgtbl.dequeueReusableCell(withIdentifier: "csmcell") as? csmcell{
let imgurl = URL(string : self.imgarray [(indexPath as NSIndexPath).row].imgurl)
cell.imgiv.sd_setImage(with: imgurl)
return cell
}else{
let cell = csmcell()
let imgurl = URL(string : self.imgarray [(indexPath as NSIndexPath).row].imgurl)
cell.imgiv.sd_setImage(with: imgurl)
return cell
}
}
func loaddatawithquery(){
let whereClause = "catogary ='telecom'"
let dataQuery = BackendlessDataQuery()
dataQuery.queryOptions.pageSize=50
dataQuery.whereClause = whereClause
backendless.data.of(Images.ofClass()).find(dataQuery,response: {(result: BackendlessCollection?) -> Void in
let data = result?.getCurrentPage()
for obj in data! as! [Images] {
self.imgarray.append(obj)
self.imgtbl.reloadData()
}
},
error: { (fault: Fault?) -> Void in
let alert = UIAlertController(title: "info", message:"please connect to internet", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default) { _ in
})
self.present(alert, animated: true){}
})
}
}
Crash Report :
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0 Application Specific Information: abort() called
Filtered syslog: None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ibsystem_kernel.dylib 0x0000000190f0a014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000190fd1460 pthread_kill + 112
2 libsystem_c.dylib 0x0000000190e7e3f4 abort + 140
3 libswiftCore.dylib 0x00000001003e7570 swift_deletedMethodError (__hidden#17462_:282)
4 libswiftCore.dylib 0x00000001003ccfdc _hidden#16819_ (__hidden#16861_:392)
5 libswiftCore.dylib 0x00000001003cd06c swift_dynamicCastClass (__hidden#16861_:478)
6 libswiftCore.dylib 0x00000001003cdbd0 swift_dynamicCastUnknownClassUnconditional (__hidden#16793_:49)
7 libswiftCore.dylib 0x00000001003d00a4 _hidden#16825_ (__hidden#16861_:1637)
8 libswiftCore.dylib 0x00000001003cec6c swift_dynamicCast (__hidden#16861_:1676)
9 libswiftCore.dylib 0x00000001003cefb8 swift_dynamicCast (__hidden#16861_:1684)
10 Horizon Wave 0x000000010003963c _hidden#1084_ (__hidden#1140_:0)
11 Horizon Wave 0x0000000100039d98 _hidden#1088_ (__hidden#1140_:0)
12 Horizon Wave 0x000000010003a260 _hidden#1091_ (__hidden#1140_:0)
13 Horizon Wave 0x000000010003a918 _hidden#1095_ (__hidden#1140_:0)
14 Horizon Wave 0x0000000100067964 _hidden#3408_ (__hidden#3439_:302)
15 Horizon Wave 0x0000000100067404 _hidden#3398_ (__hidden#3439_:208)
16 Horizon Wave 0x0000000100067428 _hidden#3398_ (__hidden#3439_:214)
17 Horizon Wave 0x000000010003cc54 _hidden#1404_ (__hidden#1447_:290)
18 libdispatch.dylib 0x0000000190dc5200 _dispatch_call_block_and_release + 24
19 libdispatch.dylib 0x0000000190dc51c0 _dispatch_client_callout + 16 2
0 libdispatch.dylib 0x0000000190dc9d6c _dispatch_main_queue_callback_4CF + 1000
21 CoreFoundation 0x0000000191ee9f2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
22 CoreFoundation 0x0000000191ee7b18 __CFRunLoopRun + 1660
23 CoreFoundation 0x0000000191e16048 CFRunLoopRunSpecific + 444
24 GraphicsServices 0x0000000193899198 GSEventRunModal + 180
25 UIKit 0x0000000197df0628 -[UIApplication _run] + 684
26 UIKit 0x0000000197deb360 UIApplicationMain + 208
27 Horizon Wave 0x000000010002efd8 main (__hidden#367_:12)
28 libdyld.dylib 0x0000000190df85b8 start + 4