DanTheMan827 / ios-app-signer

This is an app for OS X that can (re)sign apps and bundle them into ipa files that are ready to be installed on an iOS device.
https://dantheman827.github.io/ios-app-signer
GNU General Public License v3.0
5.58k stars 1.05k forks source link

fatal error: does not contain a matching architecture for specified '-a arm64 51072' option #45

Open victor1342 opened 7 years ago

victor1342 commented 7 years ago

I continue to get this same error... I am using XCODE 8, and I'm experimenting by resigning an IPA pulled from my iPhone 5 running iOS 8.4.1. The weird thing is that if I actually build an IPA in XCODE and then resign it, everything works perfectly. I am totally lost, any suggestion would be really appreciated. Here's the output from the console: fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: input file: /private/var/folders/n8/b1qvh2_54cqb16bgj_pzwgq80000gn/T/com.DanTheMan827.AppSigner.Rbn6rBFQ/out/Payload/MyApp.app/MyApp does not contain a matching architecture for specified '-a arm64 51072' option /var/folders/n8/b1qvh2_54cqb16bgj_pzwgq80000gn/T/com.DanTheMan827.AppSigner.Rbn6rBFQ/out/Payload/MyApp.app: the codesign_allocate helper tool cannot be found or used

michaeldong commented 7 years ago

you can change Makefile and dumpdecrypted.c

//MakeFile GCC_UNIVERSAL=$(GCC_BASE) -arch armv7 -arch armv7s -arch arm64

to.

GCC_UNIVERSAL=$(GCC_BASE) -arch armv7 -arch armv7s

remove arch aram64

//dumpdecrypted.c

if (lc->cmd ==LC_ENCRYPTION_INFO || lc->cmd == LC_ENCRYPTION_INFO_64)

to

if(lc->cmd == LC_ENCRYPTION_INFO)

remove LC_ENCRYPTION_INFO_64

good luck!