Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: #7427

Closed
1 of 3 tasks
jakubjenis opened this issue Apr 23, 2024 · 3 comments
Closed
1 of 3 tasks

[Bug]: #7427

jakubjenis opened this issue Apr 23, 2024 · 3 comments
Labels

Comments

@jakubjenis
Copy link

Capacitor Version

Latest Dependencies:

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

Installed Dependencies:

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

Other API Details

npm --version
10.5.0

node --version
v21.7.3

pod --version
1.15.2

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

After upgrading from Capacitor v5 to v6 and running npx cap sync I am getting a build error on ios:

...@capacitor/ios/Capacitor/Capacitor/Codable/JSValueEncoder.swift:103:5 Missing return in getter expected to return 'String'

It seems the JSValueEncoder is missing the default return here:

Expected Behavior

iOS builds without error

Project Reproduction

none

Additional Information

No response

@Steven0351
Copy link
Member

Steven0351 commented Apr 23, 2024

What version of Xcode are you using? Switch statements as expressions were introduced in Swift 5.9 which is shipped in Xcode 15 which Capacitor now requires

@jakubjenis
Copy link
Author

You are absolutely right, I was on XCode 14. Updating to 15 fixes the problem. Thanks!

Copy link

ionitron-bot bot commented May 24, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants