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

The use of Swift 3 @objc inference in Swift 4 mode is deprecated. #28

Closed
nicolasjon opened this issue Jul 5, 2018 · 4 comments · Fixed by #29
Closed

The use of Swift 3 @objc inference in Swift 4 mode is deprecated. #28

nicolasjon opened this issue Jul 5, 2018 · 4 comments · Fixed by #29
Assignees
Labels
type: enhancement New feature or request
Milestone

Comments

@nicolasjon
Copy link

Steps to reproduce 📜

When compiling for iOS release

Expected behaviour 🤔

Clean build.

Actual behaviour ⚠️

The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Runner" target.

Thanks

@mvanbeusekom
Copy link
Member

Hi @nicolasjon, thanks for reaching out, your feedback is very appreciated.

I am trying to reproduce this issue but am unfortunately failing to do so. Based on your description I am taking the following steps:

  • Clone the repo: git clone https://github.com/baseflowit/flutter-geolocator;
  • On the terminal change into the example folder;
  • Build the iOS version (in release mode): flutter build ios --release

Doing so results in the following output:

Building com.baseflow.geolocatorExample for device (ios-release)...
Signing iOS app for device deployment using developer identity: "iPhone Developer: Maurits Beusekom (SUMZR2RT3D)"
Starting Xcode build...
 ├─Building Dart code...                              1.8s
 ├─Assembling Flutter resources...                    1.0s
 └─Compiling, linking and signing...                  4.6s
Xcode build done.                                            8.3s

There is no mention of the error or warning you described above. Could you please elaborate?

@nicolasjon
Copy link
Author

nicolasjon commented Jul 5, 2018 via email

@nicolasjon
Copy link
Author

nicolasjon commented Jul 5, 2018 via email

@nicolasjon
Copy link
Author

Seems a more general issue. I have found it occurs in another flutter project of mine.

"Selecting “Build Settings”. Searching for “Inference” then changing the setting for “Swift 3 @objc Inference” from “On” to “Default”. If you have multiple targets in your project you may have to do this for each target."

mvanbeusekom added a commit that referenced this issue Jul 6, 2018
Fixes issue #28 (warning objc inference)
@martijn00 martijn00 added the type: enhancement New feature or request label Jul 19, 2018
@martijn00 martijn00 added this to the 1.2 milestone Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants