You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue caused by Flutter.framework contained x86, and Xcode 11 could not support this architecture.
These two ways could make it success.
I have succeeded by Xcode 10 yesterday.
I just succeed by the script. Put it after the flutter script. I put it at the end of the Build Phases.
# Type a script or drag a script file from your workspace to insert its path.
APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"
# This script loops through the frameworks embedded in the application and
# removes unused architectures.
find "$APP_PATH" -name '*.framework' -type d | while read -r FRAMEWORK
do
FRAMEWORK_EXECUTABLE_NAME=$(defaults read "$FRAMEWORK/Info.plist" CFBundleExecutable)
FRAMEWORK_EXECUTABLE_PATH="$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME"
echo "Executable is $FRAMEWORK_EXECUTABLE_PATH"
EXTRACTED_ARCHS=()
for ARCH in $ARCHS
do
echo "Extracting $ARCH from $FRAMEWORK_EXECUTABLE_NAME"
lipo -extract "$ARCH" "$FRAMEWORK_EXECUTABLE_PATH" -o "$FRAMEWORK_EXECUTABLE_PATH-$ARCH"
EXTRACTED_ARCHS+=("$FRAMEWORK_EXECUTABLE_PATH-$ARCH")
done
echo "Merging extracted architectures: ${ARCHS}"
lipo -o "$FRAMEWORK_EXECUTABLE_PATH-merged" -create "${EXTRACTED_ARCHS[@]}"
rm "${EXTRACTED_ARCHS[@]}"
echo "Replacing original executable with thinned version"
rm "$FRAMEWORK_EXECUTABLE_PATH"
mv "$FRAMEWORK_EXECUTABLE_PATH-merged" "$FRAMEWORK_EXECUTABLE_PATH"
done
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
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 -v and a minimal reproduction of the issue.
Activity
Darren-chenchen commentedon Nov 6, 2019
https://www.darrenblog.cn/#/detail/5dbf9a8a7bb725236692b6d4
marrynerv commentedon Nov 25, 2019
When you remove the x86 from Flutter.framework and rebuild the project, it will generate a new Flutter.framework contains x86.
marrynerv commentedon Nov 25, 2019
This issue caused by Flutter.framework contained x86, and Xcode 11 could not support this architecture.
These two ways could make it success.
fero2004 commentedon Nov 26, 2019
I found the way to solve this problem
2.cd your architecture floder like this
/Users/luozugen/Library/Developer/Xcode/Archives/2019-10-17/Portal 2019-10-17, 11.06 AM.xcarchive/Products/Applications/Utrack.app/Frameworks/Flutter.framework
3.lipo -remove x86_64 Flutter -o Flutter
4.back to 'organizer window' to do next
jmagman commentedon Apr 7, 2020
Did you running
flutter build ios
on the command line before archiving?https://flutter.dev/docs/deployment/ios#create-a-build-archive
Looks like some form of #37850. Hopefully this was fixed by #42029. If you're still seeing this, can we get the output of
flutter doctor -v
?jmagman commentedon Apr 29, 2020
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
github-actions commentedon Aug 21, 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 -v
and a minimal reproduction of the issue.