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

7

16

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?

Koerlin answered 19/11, 2020 at 17:0 Comment(1)
https://mcmap.net/q/358108/-quot-ipa-processing-failed-quot-when-trying-to-export-project-as-ad-hoc-build-with-m1-macbook-air Open XCODE with compatibility mode, this worked for meKatlaps
E
21

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

Emperor answered 25/12, 2020 at 9:43 Comment(6)
Superb!! Thanks a ttton!! You saved my another day wasting to resolve this issue..:)Statued
Hey, as I selected to use Rosetta, my all storyboards showing errors. did you also face this error? If yes, how did you resolved it?Statued
I has no this error, are you install Rosetta?Emperor
It works for me! I did not think enable rosetta options. Thanks.Yamada
@Statued I faced this error too and I answered here: https://mcmap.net/q/358109/-xcode-storyboard-is-black-an-internal-error-occurredSnowber
This is ridiculous apple!!Groark
B
12

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

Bowse answered 20/11, 2020 at 15:52 Comment(2)
Today I had the same problem with the same setup as yao.h. Just as an additional info: My project was on deployment target iOS 10.0 (developed originally with an older Mac). Only switching to iOS 13.0 solved the problem for me. -.- Also I updated the project format to Xcode 12.0-compatible. After switching to iOS 13 I don't have a folder with *.dylib files anymore.Addieaddiego
The problem some of us (me) are encountering is use of cocopods. That's where the error seems to show up, in the pods framework(s). The .dylib trick didn't work for me, but the iOS 13 target looks promising and I will try that. I have posted to the apple message boards to see if I can solicit a response from the Apple support team. This is enormously disruptive as I try to make use of the M1 based laptop for an old project.Margaretemargaretha
C
11
  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
Croup answered 17/2, 2021 at 8:13 Comment(3)
I have the same problem with an Intel Mac. This is a real pain.Seabrooke
im using chip M1 Apple, and i face this error. this save my time, thank you!Thermosphere
Thanks! I have M1 too.Coppinger
N
4

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

Nickell answered 4/1, 2021 at 3:22 Comment(3)
On a more complex build with multiple cocopods associated, I am seeing the build just hang at about 90% complete. Stuck. So while the Rosetta approach might work for some projects, it isn't working in all cases.Margaretemargaretha
So the build hang is related to some other xcode/rosetta issue, solved by a reboot. It was getting stuck on indexing text.Margaretemargaretha
@Margaretemargaretha When you build your app, you don't need to use Rosetta. When your app builds complete, you can close your Xcode and reopen it in Rosetta, then your can export your IPA successfully.Nickell
C
3

"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.

Cythera answered 18/12, 2020 at 9:16 Comment(5)
There seems to be no way to unclick the bitcode checkbox when the screen pops up, but it is possible to quickly click next as described.Margaretemargaretha
You can set this XCode to open with Rosetta,this method can solve this problem. But I feel that even if this setting is restored, the Xcode build speed becomes slower.Cythera
Ahhh , very good. So the Rosetta problem I hit was it got stuck Indexing Text (or Indexing | Paused) forever. The fix for that was a reboot. Then I tried your explanation here. This was a grind to figure out. Thank you for the tip to uncheck "Rebuild from Bitcode". Agreed this will be slower each time. My app is somewhat large with all the storyboards and cocoapods.Margaretemargaretha
Noting for the record, I did not set my project version to target iOS 13 but was able to keep it on iOS10 with the Rosetta approach + uncheck "Rebuild from Bitcode"Margaretemargaretha
BTW this problem seems to have fixed itself in more recent XCode versions.Margaretemargaretha
S
2

Set your minimum deployment target iOS 13.0 or later.

Stormi answered 6/2, 2021 at 19:24 Comment(0)
G
1

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
Gamopetalous answered 30/4, 2021 at 11:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.