Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7197

App store Build is crash on ios 13.2 and 13.3 , but when i am try to debug mode (xcode) app is not crash Swift , Error is (.init(coder:))

$
0
0

My app store and testflight app crash on ios 13.3 and 13.2, when I am trying to install the app from Xcode is working that time app is not crash, then I have added crashlytics, and it returns me the error like this, I am cant able to understand how to solve this error, enter image description here

on this screen, I have used UIMapView and UISearchBar here is my mapview controller code Please give me the solution

import UIKit
import MapKit

class MapViewController: UIViewController,MKMapViewDelegate,UISearchBarDelegate,RedeemProtocol,UIGestureRecognizerDelegate {

    @IBOutlet weak var revealButton: UIButton!
        @IBOutlet weak var mapView: MKMapView!
    @IBOutlet weak var collectionDocument:UICollectionView!

    @IBOutlet weak var segmentedControl: ScrollableSegmentedControl!
    var aryScrollableTitle:NSArray = NSArray()
    var aryData:NSMutableArray = NSMutableArray()
    var getselectedIndex:Int = 0


    @IBOutlet weak var searchBar: UISearchBar!

    @IBOutlet weak var viwBottomDetail: UIView!
    @IBOutlet weak var btnBack: UIButton!

    var pin: MapPin!

    var lastRedeemProductID:String = ""
    var lastRedeemIndex:Int = 0
    var pageno:Int = 1

    override func viewDidLoad() {
        super.viewDidLoad()
        fn_revel_update()
        self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true

        let getBacktitle:String = "" + NSLocalizedString("Back")
        btnBack.setTitle(getBacktitle, for: .normal)
        self.searchBar.tintColor = UIColor.black

        self.searchBar.setValue(NSLocalizedString("Cancel"), forKey: "cancelButtonText")
        self.searchBar.placeholder = NSLocalizedString("Search")

        let attributes = [
            NSAttributedString.Key.foregroundColor : UIColor.white,
            NSAttributedString.Key.font : UIFont.systemFont(ofSize: 17)
        ]
        UIBarButtonItem.appearance(whenContainedInInstancesOf: [UISearchBar.self]).setTitleTextAttributes(attributes, for: .normal)
        self.tabBarController?.tabBar.isHidden = true


        self.navigationController?.interactivePopGestureRecognizer?.isEnabled = true
        self.navigationController?.interactivePopGestureRecognizer?.delegate = self

        if(ApplicationManager.instance.homeCategory.count > 0)
        {

            aryScrollableTitle = ApplicationManager.instance.homeCategory

            fn_AddTitleScrollable()
            let getobj:NSDictionary = ApplicationManager.instance.homeCategory.object(at: getselectedIndex) as? NSDictionary ?? NSDictionary()
            let getID:String = getobj.value(forKey: "id") as? String ?? ""
            connection_getProduct(getcategoryid: getID)
        }

    }

Viewing all articles
Browse latest Browse all 7197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>