iakta / flutter_flavors

A flutter app to show flavors in flutter
80 stars 12 forks source link

Issue on iOS build #5

Closed sestegra closed 5 years ago

sestegra commented 5 years ago

With flutter 1.0.0, when launching flutter build ios --flavor development, I got following errors:

Xcode's output:
↳
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release-development ===
    development.xcconfig line 8: Unable to find included file "Generated.xcconfig"
    development.xcconfig line 8: Unable to find included file "Generated.xcconfig"
    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.
    === BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Release-development ===
    Building AOT snapshot in release mode (ios-release)...
    Building App.framework for arm64...
    25.3s
    Built to build/aot/.
    Command /bin/sh failed with exit code 255

In order to reproduce the issue, delete ios//Flutter/Generated.xcconfig file.

sestegra commented 5 years ago

The issue is located on the path. Flavor configuration file should be located in ios/Flutter directory.