-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
Comments
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:
Doing so results in the following output:
There is no mention of the error or warning you described above. Could you please elaborate? |
Hi,
I am using the package from another project, I will try building the
release version from your package
Nicolas
…On 5 July 2018 at 16:11, Maurits van Beusekom ***@***.***> wrote:
Hi @nicolasjon <https://github.com/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?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGPEpX6WuqIQhDoaGtEnWyu6JCQsGFa7ks5uDiyYgaJpZM4VD8Sx>
.
|
![screen shot 2018-07-05 at 16 37 38](https://user-images.githubusercontent.com/6538405/42334148-7a6b129c-8074-11e8-8cbd-a71d5bebf46b.png)
Hi,
Building com.baseflow.geolocatorExample for device (ios-release)...
Automatically signing iOS for device deployment using specified development
team in Xcode project: LK5496HQGV
Running pod install... 1.2s
Starting Xcode build...
├─Building Dart code... 22.1s
├─Assembling Flutter resources... 1.2s
└─Compiling, linking and signing... 18.7s
Xcode build done. 46.7s
You have a faster machine than mine...
Then when I go to Archive the project I get the attached screenshot
This is the same warning as I get when building the archive for a project
that uses the location package in the standard way - i.e with pubspec.yaml
etc.
Nicolas
…On 5 July 2018 at 16:30, Nicolas ***@***.***> wrote:
Hi,
I am using the package from another project, I will try building the
release version from your package
Nicolas
On 5 July 2018 at 16:11, Maurits van Beusekom ***@***.***>
wrote:
> Hi @nicolasjon <https://github.com/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?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/BaseflowIT/flutter-geolocator/
issues/28#issuecomment-402755644>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/
AGPEpX6WuqIQhDoaGtEnWyu6JCQsGFa7ks5uDiyYgaJpZM4VD8Sx>
> .
>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGPEpa-tBXN7ajLJhr4ZHb6UXhriY1y5ks5uDjEMgaJpZM4VD8Sx>
.
|
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." |
Fixes issue #28 (warning objc inference)
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
The text was updated successfully, but these errors were encountered: