<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Himanshu Gupta on Medium]]></title>
        <description><![CDATA[Stories by Himanshu Gupta on Medium]]></description>
        <link>https://medium.com/@himanshu_gupta?source=rss-dd30d62f1601------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UkKZxLfvkup2EjDJ17p1bQ.jpeg</url>
            <title>Stories by Himanshu Gupta on Medium</title>
            <link>https://medium.com/@himanshu_gupta?source=rss-dd30d62f1601------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 15:25:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@himanshu_gupta/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How performance monitoring is done right for iOS App]]></title>
            <link>https://medium.com/naukri-engineering/how-performance-monitoring-is-done-right-for-ios-app-d10e7eb99c1c?source=rss-dd30d62f1601------2</link>
            <guid isPermaLink="false">https://medium.com/p/d10e7eb99c1c</guid>
            <category><![CDATA[cpu-utilization]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[instruments]]></category>
            <category><![CDATA[time-profiler]]></category>
            <category><![CDATA[xcode]]></category>
            <dc:creator><![CDATA[Himanshu Gupta]]></dc:creator>
            <pubDate>Fri, 14 Aug 2020 07:47:35 GMT</pubDate>
            <atom:updated>2020-08-14T07:47:35.712Z</atom:updated>
            <content:encoded><![CDATA[<h3>How performance monitoring is done right for iOS Apps</h3><h4>A detailed look at how Xcode time profiler tool works and how to improve the CPU usage &amp; thermal state of an iOS App</h4><p>It is always a good practice to check your app’s performance before making it available to larger audience. Naukri’s iOS app is no different. We have millions of users and we have to keep monitoring the App performance to avoid any bad experience to our users.</p><p>In this blog post, we’ll describe how we’ve improved the performance in a crucial part of the our Naukri App by using Xcode Time Profiler.</p><h4>What is Xcode Instruments?</h4><p>Xcode Instruments is a powerful performance monitoring tool of iOS/mac app. It measures the CPU usage, memory usage, battery usage, network usage, memory leaks etc. in the app.</p><p>It also gives a detailed stack trace of the impacting code for quick investigation. You can open instruments by going to <strong>Product ➔ Profile</strong> submenu option of Xcode or alternatively use <strong>⌘ + I</strong> shortcut. It will rebuild the product and open the tool as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nUQFp95z475_8LExry7pDg.png" /><figcaption>Preview of Xcode Instruments Tool</figcaption></figure><blockquote><strong><em>Tips</em></strong>: It is recommended to use the profiler on real device rather than simulator as it will give you more real insights of the app.</blockquote><p>The Time profiler instrument gives the time-based CPU usage of various threads in app along with the thermal condition of device. After choosing the time profiler instrument, you will see the window, something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMLEuIbXkAZJt8Jotxf6rg.png" /></figure><p>Press the red button present on top left corner to start recording the app performance measurement. It will open you app on simulator or device (if you have selected) and start recording the CPU usage, threads usage &amp; thermal state of the app. You can run the investigating flow of the app and check its performance simultaneously.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lUksUStyMR4OAkiMyUBRMw.png" /><figcaption>Recording CPU usage &amp; thermal state of iOS app using Time profiler</figcaption></figure><p>You can see the CPU usage with respect to time spent on various flows of the app. After you’ve finished the flow you want to improve you can stop recording and start to analyze the results.</p><p>In our case, CPU usage were getting up by almost 100% for one of the flows. You can see the use case in following gif:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ERpBfpKBvPQDDW2CTpsNoA.gif" /><figcaption>CPU usage are getting fired up on rendering the animated success logo</figcaption></figure><h4>Apply thread filter for more granular level of insights</h4><p>The filter bar can be used to narrow down the overview and get a better insight into the used threads by selecting the <em>Threads</em> tab. You can use time line scroller to select the particular CPU usage timeline area as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l52epax29ziYTcQATore8A.png" /></figure><p>Once you select the area of defect, you would see the half bottom area of information also get filtered out to provide more specific insights of that thread.</p><p>If you see the information area, it still has many low level symbols that are hard to understand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jXyfflUKqfhIvEJ38m9hZA.png" /></figure><p>Bottom right panel of heaviest stack trace contains few readable symbols but still has some low level system related symbols that we rarely understand. You can use <strong><em>Call Tree Input Filter </em></strong>by checking the<strong><em> </em></strong>option<strong><em> Hide System libraries </em></strong>as below<strong><em>:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ceiS-Gcl_XckU9uFwT_Zmw.png" /></figure><p>Now if you see the heaviest stack trace area, it contains much readable thread names which you can easily check in your code.</p><p>In our case, the success logo contained a simple circular animating logo which kept on animating even if we de-init it’s holder view. Stopping the animating logo released its thread and the CPU usage came back to normal.</p><h4>Validating the results</h4><p>After you’ve improved your code it’s time to re-run the Time Profiler and validate results to make sure it has actually improved.</p><h4>Conclusion</h4><p>Xcode Instruments contains a lot of valuable tools to improve the performance of your app. For e.g. memory leak, zombies etc. which can be used to run the app, improve the piece of code and validate right after it.</p><blockquote>Hit the 👏 (claps) button to make it reachable to more audience.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d10e7eb99c1c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/naukri-engineering/how-performance-monitoring-is-done-right-for-ios-app-d10e7eb99c1c">How performance monitoring is done right for iOS App</a> was originally published in <a href="https://medium.com/naukri-engineering">Naukri Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XCode 11 & iOS 13 : Migration, Issues & their fixes]]></title>
            <link>https://medium.com/naukri-engineering/xcode-11-ios-13-migration-issues-their-fixes-a7045fe9d038?source=rss-dd30d62f1601------2</link>
            <guid isPermaLink="false">https://medium.com/p/a7045fe9d038</guid>
            <category><![CDATA[xcode11]]></category>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[ios-13]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Himanshu Gupta]]></dc:creator>
            <pubDate>Tue, 31 Dec 2019 07:09:48 GMT</pubDate>
            <atom:updated>2020-06-22T11:59:02.039Z</atom:updated>
            <content:encoded><![CDATA[<h3>XCode 11 &amp; iOS 13 : Migration, Issues &amp; their fixes</h3><p>With the release of new xcode version 11 &amp; iOS 13, developers are facing many challenges in migrating their application codebase to it. Here I am sharing some challenges faced during it’s migration along with the fixes.</p><p><strong>Dark Mode support:</strong> With iOS 13, Apple releases Dark Mode feature which is like providing your app multiple variants of look and feel changes. If user has enabled the Dark mode in his/her device, the app should also change it’s look &amp; feel accordingly. Although it may be the case that your app might not need to have that much drastic changes in it’s UI but it’s desirable to have the look and feel according to user’s choice. You can find the Dark mode settings in your iPhone by opening the Control centre and long press the Brightness Indicator until it becomes bigger. On it’s bottom you should have the Dark Mode settings toggle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*1xwco-gogMGOGsGY.png" /></figure><p>If you run your app using XCode 11 on iOS 13 version’s devices which has the Dark Mode toggled On, your app might end up with occasional black spots on many screens as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*UVrFMoHqN_sTwYJ9.jpeg" /></figure><p>This is because the system assumes that apps linked against the iOS 13 or later SDK support both light and dark appearances. In iOS, you specify the specific appearance you want by assigning a specific interface style to your window, view, or view controller. You can also disable support for Dark Mode entirely using an Info.plist key.</p><p>Supporting both light and dark appearances is a good practice, but you might have good reasons to opt out of appearance changes wholly or partially in your app.</p><p>To Opt out single Viewcontroller for Dark mode theme you should add following code in it’s ViewDidLoad method:</p><pre>override func viewDidLoad() {<br>        super.viewDidLoad()</pre><pre>        // Always adopt a light interface style.    <br>        overrideUserInterfaceStyle = .light<br>    }</pre><p>If you want to disable the dark mode in your app completely then add following key in your Info.plist file:</p><pre><strong>&lt;key&gt;</strong>UIUserInterfaceStyle<strong>&lt;/key&gt;<br>&lt;string&gt;</strong>Light<strong>&lt;/string&gt;</strong></pre><p><strong>ViewController Presentation Style in iOS 13:</strong></p><p>With iOS 13, the model presentational style is changed. Now it will look something like as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/0*Wcvt8OQ3lkNMCrO3.png" /></figure><p>Differences presentation styles with iOS 13. Right is the automatic style, left is the fullScreen style which is also usual on iOS 12 or lower</p><p>The new presentation style can be helpful for your users, allowing them to always close the detail flow without pressing multiple times on the back button. Closing a detail page with iOS 13 is possible with a simple ‘<em>pull-to-dismiss</em>‘ gesture.</p><p>Another improvement that the new presentation style provides, is that the user better understands where in the app he is. The view controller that opened the detail view controller, is always visible behind the screen. When the user uses the ‘<em>pull-to-dismiss</em>‘ gesture, all view controllers in the detail flow will be closed and deinit.</p><p><strong>Accessing Status Bar colour property might crash the app</strong></p><p>Your app might be using status bar colour property to change it’s colour somewhere in your iOS 12 &amp; below version of code. Accessing this private property will crash your app. The workaround for changing the statusbar colour is adding a custom view as below:</p><pre><strong>func</strong> setStatusBarBackgroundColor(color: UIColor?) {<strong>if</strong> <strong>#available</strong>(<strong>iOS</strong> 13.0, *) {<br>    <strong>let</strong> app = UIApplication.shared<br>    <strong>let</strong> statusBarHeight: CGFloat = app.statusBarFrame.size.height<br>    <strong>let</strong> statusbarView = UIView()<br>    statusbarView.backgroundColor = color<br>    view.addSubview(statusbarView)<br>    statusbarView.translatesAutoresizingMaskIntoConstraints = <strong>false<br>    </strong>statusbarView.heightAnchor<br>.constraint(equalToConstant: statusBarHeight).isActive = <strong>true<br>    </strong>statusbarView.widthAnchor<br>.constraint(equalTo: view.widthAnchor, multiplier: 1.0).isActive = <strong>true<br>    </strong>statusbarView.topAnchor.constraint(equalTo: view.topAnchor).isActive = <strong>true<br>    </strong>statusbarView.centerXAnchor.constraint(equalTo:   view.centerXAnchor).isActive = <strong>true<br></strong>} <strong>else</strong> {<br>     <strong>guard</strong> <strong>let</strong> statusBar = UIApplication.shared.value(forKeyPath:        &quot;statusBarWindow.statusBar&quot;) <strong>as</strong>? UIView <strong>else</strong> { <strong>return</strong> }<br>     statusBar.backgroundColor = color<br>}</pre><p><strong>Google Sign In Method issue</strong>:</p><p>While using Google SignIn method in iOS 13, you might face the issue that the signIn page of Google opens up modally and then automatically closes down. This weird issue is due to non iOS 13 supportive build of Google oAuth library. The workaround for this issue is that you should call the GSignIn method after some delay on main thread in your viewDidLoad method as below:</p><pre><strong>let</strong> when = DispatchTime.now() + 0.1 //0.1, 0.2..etcDispatchQueue.main.asyncAfter(deadline: when) {<br>      <strong>let</strong> signIn = GIDSignIn.sharedInstance()<br>      signIn?.delegate = <strong>self<br></strong>      signIn?.presentingViewController = <strong>self<br></strong>      signIn?.clientID = GoogleClientId.Google_Client_id<br>      signIn?.scopes = [kGTLRAuthScopeDrive]<br><strong>      self</strong>.driveService = GTLRDriveService.init()  <br><strong>      self</strong>.showSignIn()<br>}</pre><p><strong>Attempted to access the table view’s visibleCells while they were in the process of being updated, which is not allowed in iOS 13</strong></p><p>This is a new exception in iOS 13 that UITableView will raise in order to prevent and proactively alert you of a situation that would previously cause undefined behavior and a variety of strange, unrelated issues.</p><p>What is happening here is that UITableView is in the middle of asking its dataSource to return a cell for each visible row and is configuring the properties of the returned cells so they can be displayed. And in the middle of this updating — most likely inside a callback from the table view itself about a specific row such as tableView(_:cellForRowAt:) tableView(_:canEditRowAt:), etc — your code is asking the table view to return the visibleCells. This is obviously problematic, because UITableView is right in the middle of preparing those cells, so it cannot possibly return a meaningful answer.</p><p>The fix for this is to look at where you are calling visibleCells in the backtrace when this exception is raised, and then do one of two things:</p><p>Option 1: Move the usage of visibleCells to a better place, so that you aren’t asking for the visibleCells from some place that is called during the process of creating/configuring/updating those same cells. A great place to ask for the visible cells is after the table view lays out, so for example if the table view is the view of a view controller you can use viewDidLayoutSubviews(), or in a subclass of UITableView do it after calling super.layoutSubviews().</p><p>Option 2: Depending on what you’re actually trying to do, you might be able to skip using visibleCells altogether. For example, you might be able to leverage the callbacks tableView(_:willDisplay:forRowAt:) and tableView(_:didEndDisplaying:forRowAt:) to track when cells are visible instead.</p><p><strong>Issue with the URLSession api calling: “ NSPOSIXErrorDomain Code=53: Software caused connection abort”</strong></p><p>The issue is not particaluarly related to iOS 13, but this is still an open bug on Apple side. Issue is that, if you are using shared instance of URLSession and your app become active after being suspended by System in background , the socket connection get closed which was earlier used by shared instance of URLSession for calling api. This led to connection abort once your app try again for api calling on becoming active. As the socket resource is claimed by System , it won’t be available for establishing a proper http connection.</p><p>For more info of the above issue and its work around , you can take a view on below thread <a href="https://github.com/AFNetworking/AFNetworking/issues/4279#issuecomment-447108981">https://github.com/AFNetworking/AFNetworking/issues/4279#issuecomment-447108981</a></p><blockquote>Hit the 👏 (claps) button to make it reachable to more audience.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a7045fe9d038" width="1" height="1" alt=""><hr><p><a href="https://medium.com/naukri-engineering/xcode-11-ios-13-migration-issues-their-fixes-a7045fe9d038">XCode 11 &amp; iOS 13 : Migration, Issues &amp; their fixes</a> was originally published in <a href="https://medium.com/naukri-engineering">Naukri Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[XCode 11 & iOS 13 : Migration, Issues & their fixes]]></title>
            <link>https://medium.com/@himanshu_gupta/xcode-11-ios-13-migration-issues-their-fixes-a208a6f20890?source=rss-dd30d62f1601------2</link>
            <guid isPermaLink="false">https://medium.com/p/a208a6f20890</guid>
            <category><![CDATA[swift]]></category>
            <category><![CDATA[xcode11]]></category>
            <category><![CDATA[ios-13]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Himanshu Gupta]]></dc:creator>
            <pubDate>Mon, 23 Dec 2019 10:55:30 GMT</pubDate>
            <atom:updated>2019-12-27T10:00:44.773Z</atom:updated>
            <content:encoded><![CDATA[<h3>XCode 11 &amp; iOS 13 : Migration, Issues &amp; their fixes</h3><p>With the release of new xcode version 11 &amp; iOS 13, developers are facing many challenges in migrating their application codebase to it. Here I am sharing some challenges faced during it’s migration along with the fixes.</p><p><strong>Dark Mode support:</strong> With iOS 13, Apple releases Dark Mode feature which is like providing your app multiple variants of look and feel changes. If user has enabled the Dark mode in his/her device, the app should also change it’s look &amp; feel accordingly. Although it may be the case that your app might not need to have that much drastic changes in it’s UI but it’s desirable to have the look and feel according to user’s choice. You can find the Dark mode settings in your iPhone by opening the Control centre and long press the Brightness Indicator until it becomes bigger. On it’s bottom you should have the Dark Mode settings toggle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*fd8jrluK9eITwl9nOPv0YA.png" /></figure><p>If you run your app using XCode 11 on iOS 13 version’s devices which has the Dark Mode toggled On, your app might end up with occasional black spots on many screens as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/1*ynYZQuq7NxTrusyxWCH29A.jpeg" /></figure><p>This is because the system assumes that apps linked against the iOS 13 or later SDK support both light and dark appearances. In iOS, you specify the specific appearance you want by assigning a specific interface style to your window, view, or view controller. You can also disable support for Dark Mode entirely using an Info.plist key.</p><p>Supporting both light and dark appearances is a good practice, but you might have good reasons to opt out of appearance changes wholly or partially in your app.</p><p>To Opt out single Viewcontroller for Dark mode theme you should add following code in it’s ViewDidLoad method:</p><pre>override func viewDidLoad() {<br>        super.viewDidLoad()<br><br>        // Always adopt a light interface style.    <br>        overrideUserInterfaceStyle = .light<br>    }</pre><p>If you want to disable the dark mode in your app completely then add following key in your Info.plist file:</p><pre><strong>&lt;key&gt;</strong>UIUserInterfaceStyle<strong>&lt;/key&gt;<br>&lt;string&gt;</strong>Light<strong>&lt;/string&gt;</strong></pre><p><strong>ViewController Presentation Style in iOS 13:</strong></p><p>With iOS 13, the model presentational style is changed. Now it will look something like as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*e0ICAlYj3QiC6vpCoBo62A.png" /><figcaption>Differences presentation styles with iOS 13. Right is the automatic style, left is the fullScreen style which is also usual on iOS 12 or lower</figcaption></figure><p>The new presentation style can be helpful for your users, allowing them to always close the detail flow without pressing multiple times on the back button. Closing a detail page with iOS 13 is possible with a simple ‘<em>pull-to-dismiss</em>‘ gesture.</p><p>Another improvement that the new presentation style provides, is that the user better understands where in the app he is. The view controller that opened the detail view controller, is always visible behind the screen. When the user uses the ‘<em>pull-to-dismiss</em>‘ gesture, all view controllers in the detail flow will be closed and deinit.</p><p><strong>Accessing Status Bar colour property might crash the app</strong></p><p>Your app might be using status bar colour property to change it’s colour somewhere in your iOS 12 &amp; below version of code. Accessing this private property will crash your app. The workaround for changing the statusbar colour is adding a custom view as below:</p><pre><strong>func</strong> setStatusBarBackgroundColor(color: UIColor?) {</pre><pre><strong>if</strong> <strong>#available</strong>(<strong>iOS</strong> 13.0, *) {<br>    <strong>let</strong> app = UIApplication.shared<br>    <strong>let</strong> statusBarHeight: CGFloat = app.statusBarFrame.size.height<br>    <strong>let</strong> statusbarView = UIView()<br>    statusbarView.backgroundColor = color<br>    view.addSubview(statusbarView)<br>    statusbarView.translatesAutoresizingMaskIntoConstraints = <strong>false<br>    </strong>statusbarView.heightAnchor<br>.constraint(equalToConstant: statusBarHeight).isActive = <strong>true<br>    </strong>statusbarView.widthAnchor<br>.constraint(equalTo: view.widthAnchor, multiplier: 1.0).isActive = <strong>true<br>    </strong>statusbarView.topAnchor.constraint(equalTo: view.topAnchor).isActive = <strong>true<br>    </strong>statusbarView.centerXAnchor.constraint(equalTo:   view.centerXAnchor).isActive = <strong>true<br></strong>} <strong>else</strong> {<br>     <strong>guard</strong> <strong>let</strong> statusBar = UIApplication.shared.value(forKeyPath:        &quot;statusBarWindow.statusBar&quot;) <strong>as</strong>? UIView <strong>else</strong> { <strong>return</strong> }<br>     statusBar.backgroundColor = color<br>}</pre><p><strong>Google Sign In Method issue</strong>:</p><p>While using Google SignIn method in iOS 13, you might face the issue that the signIn page of Google opens up modally and then automatically closes down. This weird issue is due to non iOS 13 supportive build of Google oAuth library. The workaround for this issue is that you should call the GSignIn method after some delay on main thread in your viewDidLoad method as below:</p><pre><strong>let</strong> when = DispatchTime.now() + 0.1 //0.1, 0.2..etc</pre><pre>DispatchQueue.main.asyncAfter(deadline: when) {<br>      <strong>let</strong> signIn = GIDSignIn.sharedInstance()<br>      signIn?.delegate = <strong>self<br></strong>      signIn?.presentingViewController = <strong>self<br></strong>      signIn?.clientID = GoogleClientId.Google_Client_id<br>      signIn?.scopes = [kGTLRAuthScopeDrive]<br><strong>      self</strong>.driveService = GTLRDriveService.init()  <br><strong>      self</strong>.showSignIn()<br>}</pre><p><strong>Attempted to access the table view’s visibleCells while they were in the process of being updated, which is not allowed in iOS 13</strong></p><p>This is a new exception in iOS 13 that UITableView will raise in order to prevent and proactively alert you of a situation that would previously cause undefined behavior and a variety of strange, unrelated issues.</p><p>What is happening here is that UITableView is in the middle of asking its dataSource to return a cell for each visible row and is configuring the properties of the returned cells so they can be displayed. And in the middle of this updating — most likely inside a callback from the table view itself about a specific row such as tableView(_:cellForRowAt:) tableView(_:canEditRowAt:), etc — your code is asking the table view to return the visibleCells. This is obviously problematic, because UITableView is right in the middle of preparing those cells, so it cannot possibly return a meaningful answer.</p><p>The fix for this is to look at where you are calling visibleCells in the backtrace when this exception is raised, and then do one of two things:</p><p>Option 1: Move the usage of visibleCells to a better place, so that you aren’t asking for the visibleCells from some place that is called during the process of creating/configuring/updating those same cells. A great place to ask for the visible cells is after the table view lays out, so for example if the table view is the view of a view controller you can use viewDidLayoutSubviews(), or in a subclass of UITableView do it after calling super.layoutSubviews().</p><p>Option 2: Depending on what you’re actually trying to do, you might be able to skip using visibleCells altogether. For example, you might be able to leverage the callbacks tableView(_:willDisplay:forRowAt:) and tableView(_:didEndDisplaying:forRowAt:) to track when cells are visible instead.</p><p><strong>Issue with the URLSession api calling: “ NSPOSIXErrorDomain Code=53: Software caused connection abort”</strong></p><p>The issue is not particaluarly related to iOS 13, but this is still an open bug on Apple side. Issue is that, if you are using shared instance of URLSession and your app become active after being suspended by System in background , the socket connection get closed which was earlier used by shared instance of URLSession for calling api. This led to connection abort once your app try again for api calling on becoming active. As the socket resource is claimed by System , it won’t be available for establishing a proper http connection.</p><p>For more info of the above issue and its work around , you can take a view on below thread <a href="https://github.com/AFNetworking/AFNetworking/issues/4279#issuecomment-447108981">https://github.com/AFNetworking/AFNetworking/issues/4279#issuecomment-447108981</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a208a6f20890" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>