malloc: *** error: incorrect checksum for freed object – object was probably modified after being freed

I have a big problem with my iOS App: it crashes sometimes without detailed debug error. The stack trace is empty. These are the only two lines in the stack trace: crash start in UIApplicationMain at “symbol stub for: -[_UIHostedTextServiceSession dismissTextServiceAnimated:]”. and report “libsystem_c.dylib`malloc_error_break”. in com.apple.main-thread. The error on Xcode debugger (with connected device): I … Read more

Where is the variable “code” in SKError defined?

I am seeing examples of code using SKError “code” property or variable. I cannot seem to define any definition for this property. How is xcode / Swift able to access this property? I am using SwiftyStoreKit with this issue. Thanks Tried looking in the documentation for SKError, nothing there. Tried debugging in xcode, live, cannot … Read more

CFNetwork SSLHandshake failed (-9824) NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9824)

From NSURLConnection to NSURLSession worked for me I was able to solve as following( NSURLConnection is deprecated and you need to use NSURLSession) : converted to: From NSURLConnection to NSURLSession Also included in Info.plist see documentation: Info.plist reference And ultimately Announcement: CFNetwork SSLHandshake failed (-9824) while integrating Login with Amazon SDK for iOS Back to … Read more

CFNetwork SSLHandshake failed iOS 9

iOS 9 and OSX 10.11 require TLSv1.2 SSL for all hosts you plan to request data from unless you specify exception domains in your app’s Info.plist file. The syntax for the Info.plist configuration looks like this: If your application (a third-party web browser, for instance) needs to connect to arbitrary hosts, you can configure it … Read more

UIStackView before iOS 9.0

Check inProject Targets-> Deployment info -> Deployment Target.If it’s not 9.0 change it to 9.0. You need to change the deployment target of your application’s target to iOS 9. Otherwise the app supports down to whatever OS that your deployment target is set to. Not solved?? Check out for other reason??? Check this: If your … Read more

Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy

Where are you calling this method from? I had an issue where I was attempting to present a modal view controller within the viewDidLoad method. The solution for me was to move this call to the viewDidAppear: method. My presumption is that the view controller’s view is not in the window’s view hierarchy at the point that it has been loaded … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)