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 userInfo
into 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
Issue with Observing Wkwebview Url Changes via JavaScript Events
Uisearchbar Out of Screen Bounds When Navigation Bar Translucent = False
API to Capture Live Photos in iOS9
How to Implement a Payment App with Braintree in iOS
Struggling to Convert Objective C Selector and Target Signature to Swift
How to Rotate an Uiimageview Using Touchesmoved
Hidden Property Cannot Be Changed Within an Animation Block
App Crashes When User Starts Typing in Uisearchbar
Present Specific View Controller in Didreceiveremotenotification with Swift
iOS Pod Install Gcm and Pnchartswift
Uibutton Subclass @Ibaction Not Working
Code Coverage Result Is Not Accurate to Real Coverage in Xcode 7
Fill Uiview with Color Based on Percentage
Swift: Have Searchbar Search Through Both Sections and Not Combine Them
Add Gps Metadata Dictionary to Image Taken with Avfoundation in Swift
Using Static Libraries with Cocoapods 1.5 No Such Module at Import