Repository navigation
Error creating IOS version to upload to Testflight. #24239
Copy link
Copy link
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Hi, I want to upload a flutter app to apple store but when I go to Xcode and I make: Product -> Archive
After some minutes of Xcode process I get this error:
Could not find an option named "track-widget-creation".
Run 'flutter -h' (or 'flutter <command> -h') for available flutter commands and options.
Failed to build /Users/{"myUser"}/IdeaProjects/{"myProjectName"}.
Command /bin/sh failed with exit code 255
Here is my flutter doctor -v:
[✓] Flutter (Channel dev, v0.11.3, on Mac OS X 10.14.1 18B75, locale en-AR)
• Flutter version 0.11.3 at /Users/{"myUser"}/flutter
• Framework revision 72bf075e8d (2 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /Users/{"myUser"}/Library/Android/sdk
• Android NDK at /Users/{"myUser"}/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1136-b06)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.2
• CocoaPods version 1.5.2
[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 29.0.2
• Dart plugin version 181.5616
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1136-b06)
[✓] IntelliJ IDEA Community Edition (version 2018.2.5)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 30.0.2
• Dart plugin version 182.5124
[✓] Connected device (1 available)
• {"myUser"} Phone • af7486d829711c96bebd0ccdd8e2d281ebd4825b • ios • iOS 12.0
• No issues found!
Can someone help me?
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleplatform-iosiOS applications specificallyiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Activity
xster commentedon Nov 12, 2018
cc @jacob314
FViscardi commentedon Nov 15, 2018
@foosionsapps
In the meantime (in XCode), you can try and go to Runner (Poject) -> Build Settings (Tab), scroll down and set "TRACK_WIDGET_CREATION" = false under "User-Defined"
I'm currently trying that approach myself, as I ran into the same issue today.
zoechi commentedon Nov 15, 2018
seems to work as well
#20260 (comment)
alann-maulana commentedon Nov 17, 2018
I got this Could not find an option named "track-widget-creation" error too when executing
Here is my
flutter doctorfreezestudio commentedon Nov 17, 2018
me too.
wenerme commentedon Nov 18, 2018
Not works.
wenerme commentedon Nov 18, 2018
Work around
code $FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.shkleyos commentedon Nov 20, 2018
how to create archive build with it?
kleyos commentedon Nov 20, 2018
Permission denied for saving xcode_backend.sh
wenerme commentedon Nov 21, 2018
Then
sudo nano $FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.shcalebisstupid commentedon Nov 21, 2018
This is a weird one that I have been facing for the past few days since updating Flutter.
For me, the solution is to run
flutter build ios --releasein the project directory, which now fails with several pod errors, but I just ignore those and re-archive in Xcode and it works.I do not know enough about iOS build tools to know why these things fail. Just that before the newest beta branch version
flutter build ios --releaseworked, now it fails but doesn't mean anything serious, and despite the flutter documentation, I still have to run this command before archiving in Xcode or I get strange errors like this one.12 remaining items
Klauzt commentedon Feb 5, 2019
While doing this I lost all hot reload capabilities on iOS, so instead of removing completely the flag I tried to just use it on release mode
It seems to work so far
zoechi commentedon Feb 8, 2019
@Klauzt #24239 (comment) should do as well
IAmKio commentedon Feb 12, 2019
XCode > Runner Target > Build Settings > Scroll down to
User-Definedand deleted all three entries forTRACK_WIDGET_CREATION. Solved it (for me).campioncino commentedon Apr 15, 2019
@IAmKio Great!
It works for me too!
moadqassem commentedon Apr 21, 2019
Well, I have encountered this issue and I didn't have to do anything either in
shscripts nor Xcode. The only thing I tried was:From the flutter project root directory, executed the following:
flutter cleanflutter build iosSo in other words don't build your flutter project using Xcode directly because your project might need some commands to be executed(preprocessing) which flutter is doing for you and then it uses Xcode build.
After the build is done go to Xcode and try to Archive your project once again.
P.S: Flutter Version that I am running v1.4.8
iamgamelover commentedon May 21, 2019
XCode > Runner Target > Build Settings > Scroll down to User-Defined and deleted all three entries for TRACK_WIDGET_CREATION. Solved it (for me).
@IAmKio Thank you, It works for me too!
BRLOKESH commentedon Jul 8, 2019
iOS build Archiving but display white screen.
How to resolve this issue.
iamgamelover commentedon Jul 8, 2019
@BRLOKESH Archiving for Generic iOS Device.
MightyRai90 commentedon Jul 17, 2019
Any success about fixing the white screen?
BRLOKESH commentedon Jul 18, 2019
No Success ..

iamgamelover commentedon Jul 21, 2019
@BRLOKESH Try running 'flutter build ios --release' before Archiving with XCode.
BRLOKESH commentedon Jul 22, 2019
Now Working **Thanks @mobilecheng **
LOKESH:~ LOKESH$ touch
/.bash_profileLOKESH$ open -eLOKESH:
/.bash_profileLOKESH$ source $HOME/.bash_profileLOKESH:
LOKESH:~ LOKESH$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/Users/apple/Desktop/flutter V1.5.4/flutter/bin:/Users/apple/Desktop/flutter V1.5.4/bin
LOKESH:~ LOKESH$
github-actions commentedon Aug 14, 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.