Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "IPA processing failed" error in xcode 11?

Tags:

ipa

ios13

xcode11

When I tried to create IPA file using Distribute APP option. It gave "IPA processing failed" error.

I have checked logs file: IDEDistribution.standard.log file.

2019-08-06 18:36:52 +0000 warning: Configuration issue: platform iPhoneSimulator.platform doesn't have any non-simulator SDKs; ignoring it Scanning IPA... 2019-08-06 18:36:52 +0000 Assertion failed: Expected 4 archs in otool output: /var/folders/4t/rpjk7pd55t16jfrd32y98gf0lb2t68/T/IDEDistributionOptionThinning.~~~a4cZJc/Payload/demo.app/Frameworks/AppAuth.framework/AppAuth: Mach header magic cputype cpusubtype caps filetype ncmds sizeofcmds flags MH_MAGIC_64 X86_64 ALL 0x00 DYLIB 23
3680 NOUNDEFS DYLDLINK TWOLEVEL NO_REEXPORTED_DYLIBS Load command 0

like image 632
R.B Niranjan Avatar asked Aug 06 '19 18:08

R.B Niranjan


People also ask

How do I get IPA from Xcarchive?

Now you have to do below steps: Go to Window->Organiser->Archives Here, select your archive fine and click on "Distribute App" button on right side Then Instead of upload, select Export option, and continue selecting default options, it will end you up with generating ipa file.

Can Xcode open IPA?

Using Xcode without source code.It will open the Devices and Simulators window. Select the Devices section and select the device from the left pane. Drag and drop the app/IPA on to the 'INSTALLED APPS' section. Wait for Xcode to finish the installation.


2 Answers

I faced same issue.I have fix this issue used this script.
Please follow the same steps.

enter image description here

Build Phases -> plus button -> to create New Run Script Phase

 APP_PATH="${TARGET_BUILD_DIR}/${WRAPPER_NAME}"  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" echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH")  FRAMEWORK_TMP_PATH="$FRAMEWORK_EXECUTABLE_PATH-tmp"  case "${TARGET_BUILD_DIR}" in *"iphonesimulator")     echo "No need to remove archs"     ;; *)     if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "i386") ; then     lipo -output "$FRAMEWORK_TMP_PATH" -remove "i386" "$FRAMEWORK_EXECUTABLE_PATH"     echo "i386 architecture removed"     rm "$FRAMEWORK_EXECUTABLE_PATH"     mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH"     fi     if $(lipo "$FRAMEWORK_EXECUTABLE_PATH" -verify_arch "x86_64") ; then     lipo -output "$FRAMEWORK_TMP_PATH" -remove "x86_64" "$FRAMEWORK_EXECUTABLE_PATH"     echo "x86_64 architecture removed"     rm "$FRAMEWORK_EXECUTABLE_PATH"     mv "$FRAMEWORK_TMP_PATH" "$FRAMEWORK_EXECUTABLE_PATH"     fi     ;; esac  echo "Completed for executable $FRAMEWORK_EXECUTABLE_PATH" echo $(lipo -info "$FRAMEWORK_EXECUTABLE_PATH")  done 
like image 54
Dilip Mishra Avatar answered Oct 12 '22 01:10

Dilip Mishra


1.uncheck "Rebuild from bitcode", 2.click next fast fast fast. (speed is also important.)

enter image description here

if not , it will show IPA processing failed. enter image description here

like image 22
Zgpeace Avatar answered Oct 12 '22 00:10

Zgpeace