Software⏱️ 2 min read📅 2026-05-31

How to Fix: Fatal error: use of unimplemented initializer 'init(coder:)' for class

Learn how to fix: Fatal error: use of unimplemented initializer 'init(coder:)' for class.

Quick Answer: Try checking your system settings or restarting.

To resolve the issue of 'fatal error: use of unimplemented initializer 'init(coder:)' for class', you need to implement the 'init(nibName:nibNameOrNil,bundle:nibBundleOrNil)' initializer in your custom view controller subclass.

⚠️ Common Causes

  • Using a custom nib for your view controller without implementing the required initializer.

🚀 How to Resolve This Issue

Method 1: Implementing the Required initializer

  1. Step 1: In your custom view controller subclass, implement the 'init(nibName:nibNameOrNil,bundle:nibBundleOrNil)' initializer.

Method 2: Using a Storyboard

  1. Step 1: Create a new view controller in your storyboard and set the custom class to your subclass.

💡 Conclusion

By following these steps, you can resolve the issue of 'fatal error: use of unimplemented initializer 'init(coder:)' for class' and successfully load your project.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions