-
Notifications
You must be signed in to change notification settings - Fork 87
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
justin-fiedler
pushed a commit
that referenced
this issue
Feb 19, 2025
# [4.0.0](v3.16.1...v4.0.0) (2025-02-19) ### Bug Fixes * Adding underlying library version to library field ([#192](#192)) ([9afeaa1](9afeaa1)) * Adding underlying library version to library field ([#195](#195)) ([bd72e9d](bd72e9d)) * capitalize serverZone before passing to browser SDK ([#219](#219)) ([3e46e78](3e46e78)) * don't set namespace via package attribute in AndroidManifest.xml ([#225](#225)) ([a56915a](a56915a)) * eventType should be required positional param ([#186](#186)) ([1cb1f9b](1cb1f9b)) ### Features * add subset of Browser SDK autocapture configuration to flutter web ([#221](#221)) ([ff53638](ff53638)) * add support for macOS ([#217](#217)) ([eb66de8](eb66de8)), closes [#156](#156) [#211](#211) [#46](#46) * enable app installed & updated events for iOS ([#183](#183)) ([2d4cfe2](2d4cfe2)) * update to the latests native SDKs ([#179](#179)) ([fa0b4b9](fa0b4b9)) * use latest Amplitude Browser 2 SDK (2.11.10) for flutter SDK web ([#216](#216)) ([3ba2a54](3ba2a54)) ### BREAKING CHANGES * Update to the latest native SDKs
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: