Why my Xcode failed to validate swift iOS project

10,187

Solution 1

I was able to resolve it by the following operations in Xcode.

I want to select a target on TARGETS.

I select the Build Phases.

I want to expand the Copy Bundle Resources.

To remove unnecessary files and libraries of the plug-in if it has been registered.

Solution 2

I was having a similar problem - assumed it was a profile/sign issue with XCode 6.0.1 - however, your note to uncheck the 'Include app symbols' fixed the problem for me.

Solution 3

uncheck "Include app symbols for your application to receive symbolicated crash logs from Apple". Organizer -> Submit...

Solution 4

In my case I accidentally had a static library in "Build Settings" -> "Embed Framework". Removing the static library from there helped. There is also a similar question: Client.ipa does not contain a file

Solution 5

If the cleanup of "Copy Bundle Resources" didn't work for you, check if Link time Optimisation is switched on for your release build. Set it to NO.

Share:
10,187
morphinewan
Author by

morphinewan

Updated on June 03, 2022

Comments

  • morphinewan
    morphinewan almost 2 years

    enter image description here

    I am trying to archive my app and submit it to iTunes store. But I can't pass the validation.

    Xcode always reported "Symbols tool failed."

    I tried to archive and validate it by using Xcode 6.0 on 10.9 and Xcode 6.1 beta on 10.10 beta. Both are not working.

    I will be appreciated for any help.

    And IDEDistribution.stardard.log reported error like below:

    2014-09-21 01:53:14 +0000 [MT] Validation failed for archive Europa with issues:
    (
        "<IDEDistributionIssue: severity(error), error(Error Domain=ITunesSoftwareServiceErrorDomain Code=-21013 \"The archive is invalid.  /var/folders/dm/gps585zj4kvg0_9hlty6y8b00000gn/T/XCodeDistPipeline.FfM/Europa.ipa does not exist.\" UserInfo=0x7ff35a93a810 {NSLocalizedDescription=The archive is invalid.  /var/folders/dm/gps585zj4kvg0_9hlty6y8b00000gn/T/XCodeDistPipeline.FfM/Europa.ipa does not exist., NSLocalizedFailureReason=Unable to validate your application.})>"
    )
    2014-09-21 01:53:14 +0000 [MT] Canceled distribution assistant
    

    UPDATE: I find out that it can pass the validation when I uncheck "Include app symbols for your application to receive symbolicated crash logs from Apple" options. Does swift framework not support this feature?

  • morphinewan
    morphinewan over 9 years
    XCode 6.1 beta also has this issue, so weird.
  • cwgso
    cwgso over 9 years
    Thought it might have been I'd made the build without the dSym, but tried again with that build option and got the same result...
  • morphinewan
    morphinewan over 9 years
    Are you using swift too or just objective-c?
  • cwgso
    cwgso over 9 years
    Obj C/C -- it was a Unity3D project I was submitting.
  • morphinewan
    morphinewan over 9 years
    So I think it may be a bug of Xcode, not something like swift compiler.
  • mreynol
    mreynol over 9 years
    I am getting this same problem. But i don't understand this answer. How do you know if you have unnecessary files and libraries and remove them if the plug in is registered?
  • nuclearnova
    nuclearnova over 9 years
    This solution fixed my error uploading an app with four signed frameworks in Xcode 6
  • Arnaud
    Arnaud about 9 years
    Indeed, I had a framework in resources. Basically, you have to remove all files from resources that are not xibs, storyboards, .xcassets, images, sounds, fonts, .strings, .plist. Unchecking the checkbox IN NOT the right solution.
  • msimons
    msimons over 8 years
    How is this a solution? You'll obviously spot receiving symbolicated crash logs.
  • Webdevotion
    Webdevotion over 8 years
    I recently started using Urban Airship and somehow there was an urban airship folder in my copy bundle resources. Removed that folder and the problem was fixed.
  • julianwyz
    julianwyz about 8 years
    Urban Airship was the problem for me too. I removed the Airship and AirshipKit folders and it worked fine!