Flutter with flavors not building to iOS

126 views
Skip to first unread message

Jean Engelbrecht

unread,
Apr 6, 2020, 3:46:17 AM4/6/20
to Flutter Development (flutter-dev)

Goody day,


When building to android I have no issues with using the flavors.


This is not the case for iOS, I receive the following error:


Finished with error: Exception: Source directory "/Users/[HOME]/[PROJECT]/build/ios/Release-iphonesimulator/Runner.app" does not exist, nothing to copy




Please see flutter doctor -v:


[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Mac OS X 10.15.4 19E266, locale en-ZA) • Flutter version 1.12.13+hotfix.9 at /Users/[HOME]/flutter • Framework revision f139b11009 (4 days ago), 2020-03-30 13:57:30 -0700 • Engine revision af51afceb8 • Dart version 2.7.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at /Users/[HOME]/Library/Android/sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.3 • ANDROID_HOME = /Users/[HOME]/Library/Android/sdk • ANDROID_SDK_ROOT = /Users/[HOME]/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.4) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 11.4, Build version 11E146 • CocoaPods version 1.9.1

[✓] Android Studio (version 3.6) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 44.0.2 • Dart plugin version 192.7761 • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (2 available) • Android SDK built for x86 • emulator-5554 • android-x86 • Android 5.1.1 (API 22) (emulator) • iPhone 11 Pro Max • 96D35F20-F138-40BA-BC95-0DF38DFCA21E • ios • com.apple.CoreSimulator.SimRuntime.iOS-13-4 (simulator)

• No issues found!

Igor Karelin

unread,
Apr 6, 2020, 5:29:10 AM4/6/20
to Flutter Development (flutter-dev), Jean Engelbrecht

Best regards, Igor Karelin
Flutter Developer on freelance
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/eeb8146b-0277-4844-a194-649384421cda%40googlegroups.com.

Jean Engelbrecht

unread,
Apr 6, 2020, 7:39:42 AM4/6/20
to Flutter Development (flutter-dev)
Hi Igor,

I have already done the migration.  For projects without flavors it works perfectly.
Unfortunately not for projects with flavors.

I am going to try to rollback my xCode version.

Will let you know if this fixed the issue.

Souvik Dutta

unread,
Apr 6, 2020, 9:26:01 AM4/6/20
to Jean Engelbrecht, Flutter Development (flutter-dev)
Is there the mentioned source directory in your project? The one mentioned in the error.

Souvik flutter dev

--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.

balaji ks

unread,
Apr 23, 2020, 7:31:19 AM4/23/20
to Flutter Development (flutter-dev)
In IOS it should make separate flavors in XCode for your project. It won't work flavor which is added in Android Studio or VSCode. You can check as flavor in XCode Swift.
Please let me know if you face any issues.

Attaullah Khan

unread,
Apr 23, 2020, 7:52:23 AM4/23/20
to Flutter Development (flutter-dev)
Hello anwsered my question please it's has been two day and no one anwser
Reply all
Reply to author
Forward
0 new messages