Skip to content

fix(ios): silence the protocol property synthesis warnings in Keyboard.m - #83

Merged
OS-ruimoreiramendes merged 1 commit into
ionic-team:mainfrom
shivapoudel:fix/ios-protocol-property-synthesis-warning
Sep 28, 2026
Merged

OS-ruimoreiramendes merged 1 commit into
ionic-team:mainfrom
shivapoudel:fix/ios-protocol-property-synthesis-warning

Conversation

@shivapoudel

Copy link
Copy Markdown
Contributor

Summary

Building an app that uses the plugin (Xcode, SPM) shows three warnings from Keyboard.m:

auto property synthesis will not synthesize property 'identifier' declared in protocol 'CAPBridgedPlugin'
auto property synthesis will not synthesize property 'jsName' declared in protocol 'CAPBridgedPlugin'
auto property synthesis will not synthesize property 'pluginMethods' declared in protocol 'CAPBridgedPlugin'

The conformance is provided by the CAP_PLUGIN macro, which is why the file already ignores -Wprotocol. Those properties hit a separate diagnostic, -Wobjc-protocol-property-synthesis, so this adds it to the same push/pop block. No behaviour change.

Testing

Built an app on 8.0.5 with the change applied (as a local patch) for the iOS simulator and a device: the three warnings are gone, and the keyboard events and setAccessoryBarVisible still work.

🤖 Generated with Claude Code

KeyboardPlugin's CAPBridgedPlugin conformance comes from the
CAP_PLUGIN macro, so clang also warns that it will not auto-synthesize
the protocol's identifier, jsName and pluginMethods properties. Ignore
-Wobjc-protocol-property-synthesis next to the existing -Wprotocol
suppression.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@OS-ruimoreiramendes OS-ruimoreiramendes self-assigned this Sep 28, 2026
@OS-ruimoreiramendes
OS-ruimoreiramendes merged commit f28aef4 into ionic-team:main Sep 28, 2026
8 checks passed
@shivapoudel
shivapoudel deleted the fix/ios-protocol-property-synthesis-warning branch September 28, 2026 16:24
capacitor-bot pushed a commit that referenced this pull request Oct 2, 2026
## [8.0.6](v8.0.5...v8.0.6) (2026-10-02)

### Bug Fixes

* **ios:** silence the protocol property synthesis warnings in Keyboard.m ([#83](#83)) ([f28aef4](f28aef4))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants