We have a relatively simple iOS app which we have migrated from Capacitor 3 → 4, however when we try to build/run the project we get the following error: “Cannot find type PluginConfig in scope”, and highlights the following line of code in CAPInstanceConfiguration:
@objc public func getPluginConfig(_ pluginId: String) → PluginConfig {
if let cfg = (pluginConfigurations as? JSObject)?[keyPath: KeyPath(“(pluginId)”)] as? JSObject {
return PluginConfig(config: cfg)
}
return PluginConfig(config: JSObject())
}
How did you go about doing the migration? Was it using the migrate CLI command, VS Code extension, or manually following the guide? What versions of Capacitor do you have installed in your project (core, android, iOS, any plugins)?
This is the first time I’ve seen this error, so just trying to gather some additional information.
Thanks for the quick response. First we tried using the CLI upgrade command (which gave that error), and then tried following the manual instructions (same error).