Swift Compiler issue Type ‘int’ does not conform to protocol ‘RealmCollectionView’ RealmCollection.swift


One day at work, when I upgraded my Xcode to version 11, Realm swift stopped working and several errors occurred. These are one of them. I realized that in my existing project I have imported realm swift classes inside the project and was directly it and thus I didn't need to import import "realmSwift". Step … Continue reading Swift Compiler issue Type ‘int’ does not conform to protocol ‘RealmCollectionView’ RealmCollection.swift

Fatal Error found nil IBOutlets


Fatal error: Unexpectedly found nil while unwrapping an Optional value First, make sure all the IBOutlets are connected in the xib or storyboard file. If it is already connected, try one of these. If you are creating and populating your cell using nib file, use this collectionView.register(UINib(nibName: "CustomCell", bundle: nil), forCellWithReuseIdentifier: "CustomCellId") If you are … Continue reading Fatal Error found nil IBOutlets

Xcode Missing Support Files iOS 12.2 (16E227)


This means that your system might not have any support files for iOS version 12.2. Solution 1: Upgrade Xcode and MacOSx You can upgrade your Xcode as well as MacOS version if there is any incompatibility Solution 2: Skip upgrading Xcode and MacOSx Download support files: https://github.com/iGhibli/iOS-DeviceSupport/blob/master/DeviceSupport/12.2%20(16E226).zipExtract the zip file.Copy to "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport".Rename 16E266 folder to … Continue reading Xcode Missing Support Files iOS 12.2 (16E227)

Retain cycle – deinit is not called when the view controller is popped / dismissed


Looking for retain cycle Sometimes, even when the view controller disappears and is removed from the parent navigation controller, it still is occupying memory and is present like a zombie. This is due to retain cycle in the view controller. There are many ways to hunt for the culprit responsible for retaining it. How can … Continue reading Retain cycle – deinit is not called when the view controller is popped / dismissed

Build input file cannot be found “/Users/{path_to_project}/R.generated.swift


The black bar before R.generated.swift is the name of the project folder. Solution: Clean the project and clear Derived Data directory. Next build and run the project again. Where is Derived Data directory? Go to Xcode's preference (=> I am using v10.1 | April, 2019). Click on Location tab.Next to Derived Data heading, there is … Continue reading Build input file cannot be found “/Users/{path_to_project}/R.generated.swift

linker command failed with exit code 1 (use -v to see invocation)


The black bar before R.generated.swift is the name of the project folder. Thank you apple for such self-explaining error message (Sarcasm!). one or more of the pods showing this error. The first time I came across this error I had no idea what the Xcode is talking about. Surprisingly many of us developers or first … Continue reading linker command failed with exit code 1 (use -v to see invocation)

Application installation failed through Xcode


This application's application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed. If you are trying to install an application which is already present in your phone which was downloaded from a different source, then this error will occur. An example could be as follows: … Continue reading Application installation failed through Xcode