Skip to content

iOS build fails after cap add ios with StatusBar 8.0.0 (PluginConfig/getString) #2469

@echogit

Description

@echogit

Bug Report

Plugin(s)

Statusbarplugin - 8.0.0

Capacitor Version

npx cap doctor
💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 8.0.1
  @capacitor/core: 8.0.1
  @capacitor/android: 8.0.1
  @capacitor/ios: 8.0.1

Installed Dependencies:

  @capacitor/android: 8.0.1
  @capacitor/ios: 8.0.1
  @capacitor/core: 8.0.1
  @capacitor/cli: 8.0.1

[success] iOS looking great! 👌
[success] Android looking great! 👌

Platform(s)

iOS - Iphone

Current Behavior

After regenerate iOS project with:

rm -rf ios
npx cap add ios
npx cap sync ios

XCode shows the following errors:

App 5 issues
StatusBarPlugin
Value of type 'PluginConfig' has no member 'getString'
Incorrect argument label in call (have 'fromHex:', expected 'argb:')
Value of type 'PluginConfig' has no member 'getString'
Incorrect argument label in call (have 'fromHex:', expected 'argb:')
Cannot convert value of type 'String' to expected argument type 'UInt32'.

Expected Behavior

Code Reproduction

Any project with the StatusBarPlugin
My package.json dependencies:
"dependencies": {
"@capacitor-community/safe-area": "^8.0.1",
"@capacitor/android": "^8.0.0",
"@capacitor/cli": "^8.0.0",
"@capacitor/core": "^8.0.0",
"@capacitor/haptics": "^8.0.0",
"@capacitor/ios": "^8.0.0",
"@capacitor/status-bar": "^8.0.0",
"clean-css": "^5.3.3"
}

and in package-lock.json:
"node_modules/@capacitor/android": {
"version": "8.0.1",
"resolved": "https://registry.npmjs.org/@capacitor/android/-/android-8.0.1.tgz",
"integrity": "sha512-Mrk2MFKSg9YA4BPLKm03wwFnGKcvzNBERUTcxjW1NkLrF6YhJwygAT69f/YGopFvOhhqdnDPsuZuASUfmpkSpw==",
"license": "MIT",
"peerDependencies": {
"@capacitor/core": "^8.0.0"
}
},
"node_modules/@capacitor/status-bar": {
"version": "8.0.0",
"resolved": "https://registry.npmjs.org/@capacitor/status-bar/-/status-bar-8.0.0.tgz",
"integrity": "sha512-aIj3bc7z8lfPgOen8HlrBrkfnxpFnh21OCx6jCUx4Mvv+B6eEkUQ49b32DOddgVfr+igRHLX2SYi7duqIsNDXg==",
"license": "MIT",
"peerDependencies": {
"@capacitor/core": ">=8.0.0"
}
},

Other Technical Details

Works fine on Android
CODEX concluded that:
After regenerating the iOS project, the StatusBar plugin still fails to compile. The underlying issue appears to be an API mismatch between the plugin source and the Capacitor binary delivered via SwiftPM (different Swift interface/flags), so methods expected by the plugin are not available in the linked framework. This looks like a version/compatibility problem rather than a cache issue.”

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions