For days I'm looking for solution to this problem. I have tried many different answers from Stack Overflow and other sites, but still problem is the same.
When I try to validate my app, I have tried with other apps also, the problem is the same, it gives me this error:
An error occurred during validation:
Codesign failed.
Archive validation failed duo to issues listed below.
! Unable to validate your application.
The archive is invalid. /var/folders/26/rk825_6d2178gmwjt_6rtgw0000gn/T/XcodeDistPipeline.G1G/Packages/myApp.ipa does not exist.
I have tried answers like:
Logged out from my developer account in Xcode preferences. Turn off bitCode from build settings. Removed unwanted libraries from build phases -> Link binary with libraries
Tried to export the app and upload it through application loader, and got this error:
An error occurred during validation:
Codesign failed.
I also added this piece of code to my plist:
"
<dict>
<key>method</key>
<string>app-store</string>
</dict>
"
I have also tried to execute "xattr -rc" on my project directory.
I also upgraded my Xcode from 8.0 to 8.2.1.
I have also tried to export app as Ad Hoc distribution, and It worked, but when I submitted through the application loader, I got this e-mail from app store team:
Dear developer,
We have discovered one or more issues with your recent delivery for “myApp!”. To process your delivery, the following issues must be corrected:
Invalid Swift Support - The SwiftSupport folder is missing. Rebuild your app using the current public (GM) version of Xcode and resubmit it.
Once these issues have been corrected, you can then redeliver the corrected binary.
Regards,
The App Store team
And also I tried to remove Xcode completely from my mac and re-installed it, but problem remains.