My App Is Rejected with Exception Exc_Breakpoint (Sigtrap)

EXC_BREAKPOINT when starting iPhone app

I had the exact same problem. Solution: Weak link UIKit.framework

Apple reject my app due to crashed on iPhone and iPad running iOS 12.2 on WiFi

I have Resolved my issue I was getting crash on my another screen and latitude and longitude values going nil when I am set Never on GPS location.

Apple rejected my app due to crash on load and I can't reproduce it. What should I do?

From CFRelease docs:

If cf is NULL, this will cause a runtime error and your application
will crash.

You need to check addressBook and allPeople to make sure they're not coming back as NULL. Apple is probably testing your app on a device with an empty address book, which is returning NULL, and is then getting passed to CFRelease, making your app crash.

How to deal with NSData contentsOfURL EXC_BREAKPOINT error

Is there a requirement to use NSData's contentsOfURL? Why not make an async web request using NSURLSession?

NSURLSession.sharedSession().dataTaskWithURL(NSURL(string: urlToRequest)!) { (data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in
// if data && !error, do the thing
}.resume()

App crashing when launching from AppStore or TestFlight but working fine elseways

I found the solution of my problem.

As expected it was coming from func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool

Inside the function I had let userInfo = launchOpts[UIApplicationLaunchOptionsRemoteNotificationKey] as! NSDictionary.

I changed it to let userInfo = launchOpts[UIApplicationLaunchOptionsRemoteNotificationKey] as? NSDictionary and then checked if userInfo != nil to make all the code running userInfointo the bracket.

If it helps anyone or if anyone is struggling with this issue, check all yours ! and swap these to ? if needed (on didFinishLaunchingWithOptions) since launching from TestFlight/AppStore seems to have different options than from installed application (just a guess, not pro enough to claim it).



Related Topics



Leave a reply



Submit