Repository navigation
Building iOS flutter Error, Cycle inside Runner #61777
Copy link
Copy link
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
I recently upgrade my flutter app to v1.17.5 and getting the below error when trying to run or build the iOS flutter application. I'm not sure whether I should switch the order of some script in the build phase. Any help is appreciated! Thanks
error: Cycle inside Runner; building could produce unreliable results. This usually can be resolved by moving the target's Headers build phase before Compile Sources.
Cycle details:
→ Target 'Runner': LinkStoryboards
○ Target 'Runner' has compile command with input '/Users/ivanchau/AndroidStudioProjects/fella/ios/Runner/Base.lproj/LaunchScreen.storyboard'
○ Target 'Runner': Ditto /Users/ivanchau/AndroidStudioProjects/fella/build/ios/Debug-development-iphonesimulator/Runner.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo /Users/ivanchau/Library/Developer/Xcode/DerivedData/Runner-gsqfvskdiydqcdftydqhgqbekwhx/Build/Intermediates.noindex/Runner.build/Debug-development-iphonesimulator/Runner.build/Objects-normal/x86_64/Runner.swiftsourceinfo
○ Target 'Runner' has compile command for Swift source files
○ That command depends on command in Target 'Runner': script phase “Flutter”
○ Target 'Runner' has process command with output '/Users/ivanchau/AndroidStudioProjects/fella/build/ios/Debug-development-iphonesimulator/Runner.app/Info.plist'
○ Target 'Runner' has compile command with input '/Users/ivanchau/AndroidStudioProjects/fella/ios/Runner/Base.lproj/LaunchScreen.storyboard'
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: Mapping architecture armv7 to i386. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
warning: Mapping architecture arm64 to x86_64. Ensure that this target's Architectures and Valid Architectures build settings are configured correctly for the iOS Simulator platform. (in target 'image_picker' from project 'Pods')
Logs
info • Unused import: 'package:font_awesome_flutter/font_awesome_flutter.dart' • lib/components/RoundTextField.dart:2:8 • unused_import
info • 'title' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is headline6. This feature was deprecated after v1.13.8. •
lib/components/backdrop.dart:166:39 • deprecated_member_use
info • The member 'lerp' can only be used within instance members of subclasses of 'package:flutter/src/animation/tween.dart' • lib/components/backdrop.dart:304:59 •
invalid_use_of_protected_member
info • Unused import: 'package:fella/style.dart' • lib/components/button/roundButton.dart:2:8 • unused_import
info • Unused import: 'package:fella/constants.dart' • lib/components/card/showSurveyCard.dart:2:8 • unused_import
info • Unused import: 'package:fella/layouts/survey/surveyVote.dart' • lib/components/card/showSurveyCard.dart:4:8 • unused_import
info • Unused import: 'package:fella/layouts/survey/surveyVote.dart' • lib/components/card/surveyCard.dart:4:8 • unused_import
info • Unused import: 'package:fella/components/imageBox.dart' • lib/components/card/systemAnnouncementCard.dart:3:8 • unused_import
info • Unused import: 'package:fella/components/button/roundButton.dart' • lib/components/card/systemAnnouncementCard.dart:4:8 • unused_import
info • Unused import: 'package:fella/data/viewmodels/groupModel.dart' • lib/components/card/systemAnnouncementCard.dart:6:8 • unused_import
info • Unused import: 'package:provider/provider.dart' • lib/components/card/systemAnnouncementCard.dart:8:8 • unused_import
info • Don't import implementation files from another package • lib/components/charts/baseCharts/customCircleSymbolRenderer.dart:11:8 • implementation_imports
info • Don't import implementation files from another package • lib/components/charts/baseCharts/customCircleSymbolRenderer.dart:12:8 • implementation_imports
info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: NumberRow.title, NumberRow.value, NumberRow.min,
NumberRow.updateVal • lib/components/form/NumberRow.dart:6:7 • must_be_immutable
info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: LoginTextField.label, LoginTextField.icon,
LoginTextField.obscure, LoginTextField.textInputType, LoginTextField.controller • lib/components/loginTextField.dart:3:7 • must_be_immutable
info • 'YearPicker' is deprecated and shouldn't be used. Use CalendarDatePicker instead. This feature was deprecated after v1.15.3. • lib/components/picker.dart:90:21 • deprecated_member_use
info • 'body1' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is bodyText2. This feature was deprecated after v1.13.8. •
lib/components/picker.dart:183:56 • deprecated_member_use
info • 'subhead' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is subtitle1. This feature was deprecated after v1.13.8. •
lib/components/row/titleRow.dart:41:56 • deprecated_member_use
info • Name non-constant identifiers using lowerCamelCase • lib/constants.dart:95:22 • non_constant_identifier_names
info • Name non-constant identifiers using lowerCamelCase • lib/constants.dart:104:35 • non_constant_identifier_names
info • Unused import: 'package:flutter/material.dart' • lib/customClass/userListItem.dart:2:8 • unused_import
info • The exception variable 'e' isn't used, so the 'catch' clause can be removed • lib/data/calendar.dart:19:33 • unused_catch_clause
info • Unused import: 'package:fella/data/firebaseObj/survey.dart' • lib/data/services/api.dart:9:8 • unused_import
info • Unused import: 'dart:collection' • lib/data/services/api/statistics.dart:2:8 • unused_import
info • Cancel instances of dart.async.StreamSubscription • lib/data/viewmodels/eventModel.dart:17:22 • cancel_subscriptions
info • Avoid empty statements • lib/data/viewmodels/groupModel.dart:292:5 • empty_statements
info • Dead code • lib/data/viewmodels/groupModel.dart:292:5 • dead_code
info • Unused import: 'package:fella/constants.dart' • lib/data/viewmodels/userModel.dart:5:8 • unused_import
info • Unused import: 'package:firebase_storage/firebase_storage.dart' • lib/data/viewmodels/userModel.dart:13:8 • unused_import
info • Unused import: 'package:fella/constants.dart' • lib/layoutBase/baseListGroupSelectLayout.dart:2:8 • unused_import
info • This method overrides a method annotated as '@mustCallSuper' in 'AutomaticKeepAliveClientMixin', but doesn't invoke the overridden method • lib/layouts/dashboard/dashboard.dart:232:10 •
must_call_super
info • 'subhead' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is subtitle1. This feature was deprecated after v1.13.8. •
lib/layouts/dashboard/leaderPage.dart:116:58 • deprecated_member_use
info • This method overrides a method annotated as '@mustCallSuper' in 'AutomaticKeepAliveClientMixin', but doesn't invoke the overridden method • lib/layouts/dashboard/leaderPage.dart:534:10 •
must_call_super
info • Unused import: 'package:fella/style.dart' • lib/layouts/dashboard/submit.dart:25:8 • unused_import
info • The target expression uses '?.', so its value can be null • lib/layouts/dashboard/tablePage.dart:168:17 • can_be_null_after_null_aware
info • Unused import: 'package:fella/data/viewmodels/groupModel.dart' • lib/layouts/event/eventMgt.dart:7:8 • unused_import
info • Unused import: 'package:cached_network_image/cached_network_image.dart' • lib/layouts/event/eventMgt.dart:10:8 • unused_import
info • Unused import: 'package:fella/layoutBase/baseListLayout.dart' • lib/layouts/event/eventMgt.dart:13:8 • unused_import
info • Unused import: 'package:transparent_image/transparent_image.dart' • lib/layouts/event/eventMgt.dart:16:8 • unused_import
info • Unused import: 'package:flutter_linkify/flutter_linkify.dart' • lib/layouts/event/eventPage.dart:24:8 • unused_import
info • 'subhead' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is subtitle1. This feature was deprecated after v1.13.8. •
lib/layouts/group/formEdit.dart:62:52 • deprecated_member_use
info • Unused import: 'package:fella/components/row/customListTile.dart' • lib/layouts/group/groupEdit.dart:7:8 • unused_import
info • Unused import: 'package:fella/layouts/group/formEdit.dart' • lib/layouts/group/groupEdit.dart:14:8 • unused_import
info • Unused import: 'package:fella/layouts/group/roleEdit.dart' • lib/layouts/group/groupEdit.dart:15:8 • unused_import
info • 'subhead' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is subtitle1. This feature was deprecated after v1.13.8. •
lib/layouts/group/roleEdit.dart:94:56 • deprecated_member_use
info • This method overrides a method annotated as '@mustCallSuper' in 'AutomaticKeepAliveClientMixin', but doesn't invoke the overridden method • lib/layouts/home/homePage.dart:177:10 •
must_call_super
info • Unused import: 'package:firebase_storage/firebase_storage.dart' • lib/layouts/home/infoPage.dart:6:8 • unused_import
info • This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: ActivatePage.email, ActivatePage.password •
lib/layouts/login/activatePage.dart:12:7 • must_be_immutable
info • This method overrides a method annotated as '@mustCallSuper' in 'AutomaticKeepAliveClientMixin', but doesn't invoke the overridden method • lib/layouts/profile/profile.dart:370:10 •
must_call_super
info • Unused import: 'package:fella/layouts/group/roleEdit.dart' • lib/layouts/survey/surveyEdit.dart:15:8 • unused_import
info • Unused import: 'package:fella/components/statText.dart' • lib/layouts/survey/surveyManagement.dart:7:8 • unused_import
info • Unused import: 'dart:collection' • lib/layouts/survey/surveyResults.dart:1:8 • unused_import
info • Unused import: 'dart:math' • lib/layouts/survey/surveyResults.dart:3:8 • unused_import
info • Unused import: 'package:fella/components/button/roundButton.dart' • lib/layouts/survey/surveyResults.dart:5:8 • unused_import
info • Unused import: 'package:fella/components/row/userRow.dart' • lib/layouts/survey/surveyResults.dart:9:8 • unused_import
info • Unused import: 'package:fella/data/firebaseObj/user.dart' • lib/layouts/survey/surveyResults.dart:14:8 • unused_import
info • Unused import: 'package:fella/data/viewmodels/userModel.dart' • lib/layouts/survey/surveyResults.dart:17:8 • unused_import
info • Unused import: 'package:fella/util.dart' • lib/layouts/survey/surveyResults.dart:19:8 • unused_import
info • 'subhead' is deprecated and shouldn't be used. This is the term used in the 2014 version of material design. The modern term is subtitle1. This feature was deprecated after v1.13.8. •
lib/layouts/userForm/contactComponents.dart:40:50 • deprecated_member_use
info • This method overrides a method annotated as '@mustCallSuper' in 'AutomaticKeepAliveClientMixin', but doesn't invoke the overridden method • lib/layouts/userForm/userPermission.dart:329:10
• must_call_super
info • This method overrides a method annotated as '@mustCallSuper' in 'AutomaticKeepAliveClientMixin', but doesn't invoke the overridden method • lib/layouts/userForm/userStatistics.dart:78:10
• must_call_super
info • Unused import: 'dart:math' • lib/layouts/userMgt/adminPage.dart:1:8 • unused_import
info • Unused import: 'package:fella/style.dart' • lib/layouts/userMgt/adminPage.dart:41:8 • unused_import
info • Unused import: 'package:fella/data/viewmodels/userModel.dart' • lib/layouts/userMgt/emailSettings.dart:2:8 • unused_import
info • Unused import: 'dart:io' • lib/layouts/userMgt/newGroup.dart:1:8 • unused_import
info • Unused import: 'dart:math' • lib/layouts/userMgt/roleManagement.dart:2:8 • unused_import
info • Unused import: 'dart:io' • lib/layouts/userMgt/selectMembers.dart:1:8 • unused_import
info • Unused import: 'package:fella/style.dart' • lib/layouts/userMgt/selectMembers.dart:11:8 • unused_import
[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.4 19E287, locale en-CA)
• Flutter version 1.17.5 at /Users/ivanchau/Documents/flutter
• Framework revision 8af6b2f038 (2 weeks ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/ivanchau/Library/Android/sdk
• Platform android-29, build-tools 28.0.3
• ANDROID_HOME = /Users/ivanchau/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.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.4.1, Build version 11E503a
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.6)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 47.1.1
• Dart plugin version 192.8052
• Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
[✓] VS Code (version 1.46.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.12.1
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.

Activity
[-]Building iOS flutter Error, Cycle inside Runnere[/-][+]Building iOS flutter Error, Cycle inside Runner[/+]jmagman commentedon Jul 21, 2020
What is the script the
Flutterbuild phase? Did you add that? It's not in a newly created project. The one in a newly created project doesn't have any input or output dependencies.ivanchaukn commentedon Jul 21, 2020
That's just the regular "Run Script". I just rename it to Flutter

jmagman commentedon Jul 21, 2020
It's complaining about the Info.plist input, which isn't in a default Flutter create template. Why did you add that?
Additionally, it means Flutter will never re-compile your dart code unless you touch the Info.plist, or clean your workspace...
ivanchaukn commentedon Jul 21, 2020
That is one of the instruction in the flutter_crashlytics package: https://pub.dev/packages/flutter_crashlytics
I no longer use that package anymore so I just removed and ran flutter clean then flutter run. I'm still getting a similar error message.
jmagman commentedon Jul 22, 2020
The instructions at https://pub.dev/packages/flutter_crashlytics says to add that input for the fabric build phase, not Flutter.
Okay now it's complaining about your "Frabic" build phase having a
LaunchScreen.storyboardinput and aInfo.plistoutput.You added a bunch of stuff to your Xcode project which it's now unhappy about, this isn't related to Flutter.
ivanchaukn commentedon Jul 22, 2020
But I did not add LaunchScreen as an input in any of the build phase scripts. Does the order of the script matters?
jmagman commentedon Jul 22, 2020
You can upload your
ios/Runner.xcodeproj/project.pbxprojand I can take a look.github-actions commentedon Aug 18, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.