Skip to content

xcode11 Archive and remind a error "IPA processing failed" #42917

Closed
@fero2004

Description

@fero2004

3251C86D-113C-44B9-A599-2EDDF4D10C1E

And I Found the log
8E08E8C1-6659-4DB2-B762-991C4B528164

it seems like Flutter.framework include x86_64

My project is swift mixed flutter

Activity

added
t: xcode"xcodebuild" on iOS and general Xcode project management
toolAffects the "flutter" command-line tool. See also t: labels.
on Oct 17, 2019
marrynerv

marrynerv commented on Nov 25, 2019

@marrynerv

https://www.darrenblog.cn/#/detail/5dbf9a8a7bb725236692b6d4

When you remove the x86 from Flutter.framework and rebuild the project, it will generate a new Flutter.framework contains x86.

marrynerv

marrynerv commented on Nov 25, 2019

@marrynerv

This issue caused by Flutter.framework contained x86, and Xcode 11 could not support this architecture.

These two ways could make it success.

  1. I have succeeded by Xcode 10 yesterday.
  2. 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
fero2004

fero2004 commented on Nov 26, 2019

@fero2004
Author

I found the way to solve this problem

D575F056-0733-4BAE-AE92-EEFFDA6A8D53

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

jmagman commented on Apr 7, 2020

@jmagman
Member

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?

added
waiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds
on Apr 7, 2020
jmagman

jmagman commented on Apr 29, 2020

@jmagman
Member

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

github-actions commented on Aug 21, 2021

@github-actions

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.

locked as resolved and limited conversation to collaborators on Aug 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    t: xcode"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.waiting for customer responseThe Flutter team cannot make further progress on this issue until the original reporter responds

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jmagman@fero2004@marrynerv@Darren-chenchen@BondarenkoStas

        Issue actions

          xcode11 Archive and remind a error "IPA processing failed" · Issue #42917 · flutter/flutter