Xcode 7 ValidateEmbeddedBinary error Failed to read data in foo-WatchKit-App.app file

I am trying to complete a complete build in an iOS app using the WatchKit app.

When compiling a complete project for Archive, I see the following

ValidateEmbeddedBinary DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/BuildProductsPath/Release-iphoneos/lifa93.app/Watch/lifa93-WatchKit-App.app cd /Users/lordandrei/Projects/git/X7/lifa93 export PATH="/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-embeddedBinaryValidationUtility /Users/lordandrei/Projects/git/X7/lifa93/DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/BuildProductsPath/Release-iphoneos/lifa93.app/Watch/lifa93-WatchKit-App.app -signing-cert *9F…FB* -info-plist-path /Users/lordandrei/Projects/git/X7/lifa93/DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/InstallationBuildProductsLocation/Applications/lifa93.app/Info.plist error: warning: Could not read data in /Users/lordandrei/Projects/git/X7/lifa93/DerivedData/lifa93/Build/Intermediates/ArchiveIntermediates/lifa93Dev/BuildProductsPath/Release-iphoneos/lifa93.app/Watch/lifa93-WatchKit-App.app 

I tried:

  • Switch between Debug and Release
  • toggling No Install and No Validate.
  • cancellation and replacement of all profiles (Signing, adhoc, dist)

So far, nothing has been dented.

Suggestions are welcome as I try to create a storage template.

 Xcode: Version 7.0 beta 3 (7A152u) iOS: 9.0 beta 3 (13A4293g) Radar: 21975256 
+7
ios xcode xcode7 watchkit compiler-errors
source share
2 answers

I had this problem when I tried to create my iPhone 6+ and Watch. I just reinstalled Xcode 7 Beta because I accidentally deleted one of the required frameworks. I tried to build several times and got the same error "Could not read data ...". I finally successfully mounted the simulator, AND THEN built on both devices, and it worked.

My problem now is that the assemblies for the Apple Watch seem forever to run or transmit "Attaching ...".

+1
source share

I don’t know the exact cause of your problem, but I created a new project that also includes the WatchKit App. And it works great, no problems with the construction process.
I am using Xcode 7 beta (7A120f).

This is why I suggest 3 possible ways to solve the problem:
1. Create a new new project from scratch and transfer the source and resource files from your current project to a new one. I had similar problems (previously this was not related to the WatchKit app) and this trick helped me.
2. Install the latest version of Xcode. Xcode 7 beta 4 will be released on July 21.
3. Install Xcode (7A120f). This is the version I'm using, you are using a different one. I do not think this will help, but who knows.

0
source share

All Articles