yao.h yao
yao.h yao

Reputation: 171

How to fix "IPA processing failed" in Xcode 12.2 with MAC M1

When I tried to create Ad Hoc IPA file. It gave "IPA processing failed" error.

Xcode version is 12.2. Mac mini (M1, 2020)

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

Assertion failed: Expected 2 archs in otool output:
/var/folders/kd/kb03k1ks33sb33gnl9fz95yr0000gn/T/IDEDistributionOptionThinning.~~~qlv6NP/Payload/xxx.app/xxx:
Mach header
      magic  cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
MH_MAGIC_64    ARM64        ALL  0x00     EXECUTE    47       5672   NOUNDEFS DYLDLINK TWOLEVEL BINDS_TO_WEAK PIE
Load command 0
      cmd LC_SEGMENT_64

How to fix it?

Upvotes: 16

Views: 11273

Answers (7)

LiveRock
LiveRock

Reputation: 1033

There are 2 solutions:

  1. Run Xcode in Rosetta mode
  • Quit Xcode completely
  • Go to finder -> Applications
  • Right Click on Xcode and select "Get Info"
  • Check Rosetta
  • Try again
  1. Upgrade Xcode to 12.5

Upvotes: 1

utena inaba
utena inaba

Reputation: 121

Xcode -->Build Settings -->iOS Deployment Target-->iOS 13.0 or later

or

  1. Press Window > Organizer
  2. Right-click on your app > Show in Finder
  3. Right-click on first .xcarchive file > Show package contents
  4. Right-click on /Products/Applications > Show package contents
  5. Remove all lib*.dylib
  6. Re-distribute app

This worked for me.

However,I don't know why this solves the problem.

enter image description here

Upvotes: 12

Mutaeb Alqahtani
Mutaeb Alqahtani

Reputation: 354

  1. Go to the Application Folder
  2. Select an Xcode and press Command+I (This will open the info for Xcode)
  3. Under the General select (Open using Rosetta)
  4. Make sure you close your projects and quit Xcode then open Xcode and now you can generate the .ipa file

Upvotes: 11

Siddhesh Bhide
Siddhesh Bhide

Reputation: 424

Set your minimum deployment target iOS 13.0 or later.

Upvotes: 2

ruby109
ruby109

Reputation: 41

Just use Rosetta to open your Xcode. There is no relationship with the deployment target

Upvotes: 4

chun li
chun li

Reputation: 211

1 open Finder--> Application

2 select Xcode----> show Info

3 use Rosetta

This worked for me

Xcode -->Build Settings -->iOS Deployment Target-->iOS 13.0 or later

This method is also possible, but I must be compatible with the lower ios version, so i use Rosetta

Upvotes: 21

Hao Liang
Hao Liang

Reputation: 141

"Xcode -->Build Settings -->iOS Deployment Target-->iOS 13.0 or later". This method can solve the problem, but the minimum support system of my application is lower than 13。

-->Before the error “IPA processing failed” is prompted, during the loading process of Display “Analyzing signnature”, click the “Next” button quickly and continuously to skip the error. I don't know the reason. I hope Apple can fix the problem.

Upvotes: 3

Related Questions