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

SWIFT_VERSION attribute error on iOS #319

Closed
jt274 opened this issue May 23, 2024 · 5 comments
Closed

SWIFT_VERSION attribute error on iOS #319

jt274 opened this issue May 23, 2024 · 5 comments

Comments

@jt274
Copy link

jt274 commented May 23, 2024

Package version
5.1.0

Environment

  • OS: iOS

Describe the bug

When running pod install in the project, the following error is given:

- `record_darwin` does not specify a Swift version and none of the targets (`Runner`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrates this pod.

As a result, pod install fails and the app will not build.

Seems like something that should be set within the plugin?

@llfbandit
Copy link
Owner

Is cocoapod is up to date?
I use myself version 1.15.2.
Searching on web gives me old answers on this error.

@jt274
Copy link
Author

jt274 commented May 23, 2024

Yes, this was cocoapods 1.15.2

To fix this I had to add this to the project PodFile. I have not had this issue with any other plugin before.

ENV['SWIFT_VERSION'] = '5.10'

after target.build_configurations.each do |config|

config.build_settings['SWIFT_VERSION'] = '5.10'

@llfbandit
Copy link
Owner

I'll check again. I just upgraded XCode to latest version. As you reference swift 5.10 I guess you're on latest too. So maybe...

@llfbandit
Copy link
Owner

Checked again on two different projects. No issue on my side.
Can you check with a new project or the example project?

@llfbandit
Copy link
Owner

Fixed with 8e86c76

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

No branches or pull requests

2 participants