-
Notifications
You must be signed in to change notification settings - Fork 81
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
(iOS)(add-to-app): SWIFT_VERSION missing when compiling the iOS app #211
Labels
bug
Something isn't working
Comments
Fixed with #210 |
Actually will leave open until build goes out :) |
@martin-headspace 3.16.6 including the fix has been released! |
chungdaniel
added a commit
that referenced
this issue
Jan 14, 2025
Primary changes: - Move iOS code `sharedDarwinSource` to reuse for macOS according to https://docs.flutter.dev/packages-and-plugins/developing-packages#shared-ios-and-macos-implementations - thanks to @jointhejourney for their work in #156 for the idea - Added support for macOS in example app Extra: - Added swift_version to `amplitude_flutter.podspec`, follow-up to #211 for v4 - Bumped flutter depdendency to 3.7.0+ to support `sharedDarwinSource` Note: - PR should probably be focused mostly on non-example files Addresses #46 Jira: [[SDK - Flutter] Flutter macOS Support](https://amplitude.atlassian.net/browse/AMP-35292)
justin-fiedler
pushed a commit
that referenced
this issue
Jan 15, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
On an add-to-app build, the app using this plugin should compile successfully and without a hitch.
Current Behavior
Developers get the following 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.
Developers can fix this by setting the SWIFT_VERSION environment variable to Swift 5.0 or above.
ENV['SWIFT_VERSION'] = '5'
Which, on most Flutter apps is a one time fix, but add-to-app developers have to either set this environment variable on their generated projects every time they compile OR they have to set it elsewhere that can be accessed.
Possible Solution
#210
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: