I'm trying to export the ipa file for Ad-hoc Distribution. Here I'm getting the following issue
ipatool failed with an exception
I tried many times it getting same error only. Finally, I just clicked fast next before below red error comes. I get the ipa file, but this ipa is not working.
I installed this ipa from Xcode it showing
App installation failed An unknown error has occurred
I checked with my distribution certificate & Provisioning Profile too. I created new Provisioning profile but it not working
Accepted answer
For whole day I too struck by this issue I did many solutions but not working..... I did very small mistake one of the solution is
restart the Xcode & try. I tried this by wrongly that is close all projects finally close the Xcode (it works ), but I quit Xcode shortly
Final solution is close Xcode clearly (by closing every projects) and archive it...
I thing it’s helps you
ipatool failed with an exception in xcode 9
ipatool failed with an exception
Xcode 12 archive failed: ipatool failed with an exception: #<CmdSpec::NonZeroExitException
Xcode 10, Command CodeSign failed with a nonzero exit code
Xcode Command /usr/bin/codesign failed with exit code 1 : errSecInternalComponent
Xcode 10.2 Failed to Run App on Simulator with iOS < 10
Xcode 6.0.1 Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
How to permanently fix Xcode 5 SpringBoard failed to launch application with error: -3
Xcode unittest build failed with error "Undefined symbols for architecture x86_64"
Xcode 8 can't archive "Command /usr/bin/codesign failed with exit code 1"
score:-1
If unchecking option of
Rebuild from Bitcode
is not an available option. Then updating Xcode to the latest version might help. Reason being the third party framework that you are using might be build with Xcode version greater than your Xcode version.
Usually, this could happen due to the problem in the External library or framework used in your project.
To trace which framework is causing the issue, you could remove the framework from the project. Comment those lines which use that framework and start Archiving the iOS build. If that works, you could replace that faulty framework with the latest stable release.
Similar Question and Answer
xcode 6 upload app with error: iTunes Store operation failed Error Description not available
Xcode 8.0 Command /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1
“File not found”, “linker command failed with exit code 1” in Xcode 4.5.1
Checksum Validation Failed when submitting with Xcode 5
xcode 6 app submission failed with itunes store operation issue
NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) in iOS 9 with Xcode 7.1
Xcode : */swiftc failed with exit code 11, what can I do?
Xcode - Sharing app - PackageApplication failed with exit code 1
xcode archive build fails with error Copy .strings file Error : Failed to remove
Xcode 10 command-line building: Archive failed with Fabric Info.plist Error
score:0
I too struck by this issue!
I solved this problems after removing 'Asset/Unity Technologies/Recorder' in my unity project.
If you happen to be the one making the framework like i did and your framework causing those ipatool failed issue. you can check on these:
Remove all dependency in your project and try adding it one by one, make sure which framework causing the build error, check for newest stable version or report to the framework owner to fix the issue.
Disable everything related to code coverage in your Project Scheme Test Section before building your framework for others to use.
code coverage disabled
In my case the framework was built without error, but it will generate ipatool error on .ipa archive on Project that using my framework. Been trying to solve this issue and found out that there's a line of code which causing the ipatool failed:
if (@available(iOS 10.0, *)) {
changed to this code solve the issue for me:
if(([[[UIDevice currentDevice] systemVersion] floatValue] >= 10.0)) {
Note: I'm using Xcode 11.3.1 with debug SDK 13.2 and build target iOS 9.0 with Bitcode Enabled
Got same error, uncheck option Rebuild from Bitcode
resolves the problem.
Able to generate archive successfully
Make sure you have stripped simulator architecture's( x86_64, i386) while generating archive. You can add script to remove unwanted architecture's in Post Action section under Archive tab in Edit schema.
Build failed with xcode 10 beta
Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode 13.3 build fails: Command EmitSwiftModule failed with a nonzero exit code
What causes "clang failed with exit code 255" in Xcode IDE?
Xcode 7: linker command failed with exit code 1 (use -v to see invocation) again
Can't archive with Xcode (error - PhaseScriptExecution failed with a non zero exit code), but the build is successful
Xcode Data Model Compiler - MOMC Error: Command momc failed with exit code 1
Using Swift 3 in Xcode 10.2 - Command /Library/Developer/Toolchains/swift-3.0-RELEASE.xctoolchain/usr/bin/swiftc failed with exit code 1
Xcode failed with exit code 254
Could not download IOS Simulator Xcode 12.4. Failed to download package from ADC. No valid accounts registered with Xcode
Xcode 9 - linker command failed with exit code 1
Getting this error command /usr/bin/codesign failed with exit code 1 with xcode 9.1?
Xcode 11.2.1 error: Command CompileSwiftSources failed with a nonzero exit code
Command /bin/sh failed with exit code 64 Xcode 8
Xcode 9 - Alamofire Pods. Command /bin/sh failed with exit code 1
Xcode build error linker command failed with exit code 1
xCode 7: linker command failed with exit code 1 (use -v to see invocation)
Xcode 11 Beta 7 Command PhaseScriptExecution failed with a nonzero exit code ([CP] Copy Pods Resources)
Xcode Archive upload failed with errors
Xcode 12.4 React native build failed in IOS Showing All Messages Command PhaseScriptExecution failed with a nonzero exit code
xcode 6.1 Command /usr/bin/codesign failed with exit code 1
Archive failed with XCode 10, Cocoapods and New Build System
Getting Command /bin/sh failed with exit code 65 Error with Xcode 5.1 .
ipatool failed with an exception: #<NoMethodError: undefined method `toolsPath' for nil:NillClass>
Xcode 5 - clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode 7, Swift 2.0 conversion: "duplicate symbol" and linker command failed with exit code 1
Xcode 10 beta error: linker command failed with exit code 1
Xcode - clang failed with exit code 1. Plugin cause?
Command PhaseScriptExecution failed with a nonzero exit code Xcode v12.0.1
Xcode 11.1 -no identity found Command PhaseScriptExecution failed with a nonzero exit code
More questions with similar tag
StoreKit and LinkShare
Navigating to and from a Split View controller
Creating a framework for iOS in XCode 4.2
NMSSH for iOS - listening and parsing data from a channel
How to get range of substring in swift3?
In Phonegap, HTML does not resize with app is rotated
Apple iphone app transfer or app replacement
iOS 8 UITableViewController separator scrolling render
iOS UITableView dynamic width
Particle Animation, cocos2d Warnings/Errors
iOS Bluetooth thermal receipt printers, which to support?
UINavigationBar without UINavigationController
Why does image in xcode takes up 50x more space during runtime than the actual size
When click on button (button in cell) that particular cell should be changed?
Search Realm objects with UITextField
UIActivityIndicatorView+AFNetworking or UIProgressView+AFNetworking
iPhone How to present photos from my documents directory?
Adding underline attribute to partial text UILabel in storyboard
iOS test App Receipt Validation
iOS asihttp nslog request
Issues upgrading ios13.1 to 13.2 - NavigationLink - tried to pop to a view controller that doesn't exist
Flutter Error: no such module 'GoogleMaps'
TextureAtlas tool not reading Texture atlas - SpriteKit Texture Atlas Generator Error
CollectionView with images inside a TableViewCell
Is it possible to let airdrop send files to multiple devices at the same time?
Perform selector or animation after view transition animation is finished
IOS: rotate an uiimageview
How to locate the entitlements plist file in an XCode 6.3 iOS project
The simulator runtime in not available
"Plain Style unsupported in a Navigation Item" warning with my customized Bar Button Item
SwiftUI: Add refreshable to LazyVStack?
Failed to load optimized model - GoogleMaps SDK IOS
Anything similar to XNA for Android or IOS?
How to handle app URLs in a UIWebView?
Issue with resuing the cell on UItableViewEditingStyleDelete
Swift: 'attempt to delete row 0 from section 0 which only contains 0 rows before the update'
SpriteKit- How to zoom-in and zoom-out of an SKScene?
Text in UITextView Auto-Scrolled to Bottom
Swift 3. AVPlayerViewController issue when exit from fullscreen
Synchronizing Animations in keyboardWillShow keyboardWillHide -- Hardware Keyboard & Virtual Keyboard Simultaneously
AVMutableComposition Video Creation Issue
Add new attribute to existing Core Data Entity Relationship
ios 8.2 and above settings bundle is not showing selected item but Default
Is it possible to alter the letter-spacing/kerning of a font with Cocoa Touch?
Google Analytics SDK creates SQLite errors
Defining a "generic" segue in Interface Builder
iOS simulator: how to do a 2 finger single tap on a mac laptop?