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

chore: add swift version in podspec #210

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

martin-headspace
Copy link

What's Changed

Added the swift_version to the Podspec to help developers with an add-to-app setup not run into the missing SWIFT_VERSION error when compiling.

Rationale

When using this plugin on a project that is being compiled for the add-to-app approach in Flutter, developers will usually get this error:

 - amplitude_flutter 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 integrate this pod.

To fix this, developers have to go into their generated Podspec and add the SWIFT_VERSION environment variable for the build to work. This is not an ideal workflow.

By adding the Swift Version to the Podspec, builds compile without a hitch.

Adds the Swift Version to the Podspec to help developers with an add-to-app setup not run into the missing SWIFT_VERSION error when compiling.
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.

1 participant