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

Error while building the (iOS Swift) project #12

Closed
pdefuns opened this issue Apr 17, 2019 · 5 comments
Closed

Error while building the (iOS Swift) project #12

pdefuns opened this issue Apr 17, 2019 · 5 comments

Comments

@pdefuns
Copy link

pdefuns commented Apr 17, 2019

Launching lib/main.dart on Device in debug mode...
Automatically signing iOS for device deployment using specified development team in Xcode project: QP4YDP277L
Xcode build done.                                            5.5s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
Xcode's output:
↳
    === BUILD TARGET firebase_messaging OF PROJECT Pods WITH CONFIGURATION Debug ===
    /Users/x/Development/Tools/flutter/.pub-cache/hosted/pub.dartlang.org/app_settings-1.0.6/ios/Classes/AppSettingsPlugin.m:2:9: fatal error: 'app_settings/app_settings-Swift.h' file not found
    #import <app_settings/app_settings-Swift.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.
Could not build the precompiled application for the device.
Error launching application on Device.
Exited (sigterm)
@spencerccf
Copy link
Owner

Is your flutter project using Objective-C for the native iOS code? This plugin currently only supports Swift.

@pdefuns
Copy link
Author

pdefuns commented Jun 6, 2019

We're using Objective-C. Can you maybe write that in the plugin description as well?
Are you planning to support Objective-C as well?

@pdefuns
Copy link
Author

pdefuns commented Jun 25, 2019

Sorry. Update: this project I tried to use it is Swift..
So I wonder why it cannot build it for iOS

@plinkos
Copy link
Collaborator

plinkos commented Jul 4, 2019

We are currently using this plugin in a production app using Swift 4. What version of Swift are you using?

Sent with GitHawk

@pdefuns
Copy link
Author

pdefuns commented Aug 9, 2019

With the newest version, you should use Swift 4.2
I also get a lot of errors if I switch to 4.2 (newest version 1.0.6)

@davidAg9 davidAg9 mentioned this issue Oct 26, 2020
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

No branches or pull requests

3 participants