Developer tools could not be found.

Update on 20161112:

download ApplicationLoader_3.1.dmg

and use it to upload, in the fail log, it successfully recorgnizes the XCode.app.


update on 20161111:

uninstalled XCode 7 and deleted XCode 8.1

I even deleted com.apple.dt.Xcode.plist in the preferences folder, both system and user's

Then reboot and install from Mac App Store.

Anyhow it does not work, the path in xcode-info is not valid yet, error 21023.


--------- original description ----------

Recently I failed to upload binaries to AppStore/Testflight.

My Environment: macOS 10.12.1 + XCode 8.1 + Application Loader 3.6

Use organizer to upload directly: failure

Export ipa then upload by Application Loader 3.6: failure. and I got log which says in summary:

1 package(s) were not uploaded because they had problems:

/var/folders/10/knwm1bfn4q9g8l_rsr2697fw0000gq/T/E31A5B4E-CC42-4165-8748-CA3B00992787/532081550.itmsp - Error Messages:

ERROR ITMS-90168: "The binary you uploaded was invalid."

Check some threads in this forum and stackoverflow, yet can not solve the problem.


While I check the log, there is a strange error inside:

the xcode path is strange and caused an -21023 error


<key>search-method-string</key>
  <string>Enclosing Xcode</string>
  <key>xcode-info</key>
  <dict>
  <key>path</key>
  <string>/Users/bluekurk/Contents/Developer</string>
  <key>code</key>
  <integer>-21023</integer>
  <key>message</key>
  <string>Developer tools could not be found. Be sure Xcode is installed and try again.</string>


But, I just install XCode 8.1 to

xcode-select -p 
/Applications/Xcode.app/Contents/Developer

and a copy of XCode 7.3 in

/Applications/Xcode7.app/Contents/Developer


The problem lasts for a time. Before I upgrade to macOS 10.12, When I failed to upload binary with XCode 7, I can use the Application Loader 3.0 to upload.

But now I have to find another Mac to do the job.


So, could anyone be help?

Thanks in advance.






full version:


[2016-11-02 19:41:15 CST] <main> DBG-X: Asset description: <?xml version="1.1" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>dev-tools-info</key>
  <dict>
  <key>platforms</key>
  <dict>
  <key>AppleTVOS.platform</key>
  <dict>
  <key>paths</key>
  <array/>
  </dict>
  <key>MacOSX.platform</key>
  <dict>
  <key>paths</key>
  <array/>
  </dict>
  <key>WatchOS.platform</key>
  <dict>
  <key>paths</key>
  <array/>
  </dict>
  <key>iPhoneOS.platform</key>
  <dict>
  <key>paths</key>
  <array/>
  </dict>
  </dict>
  <key>search-method</key>
  <integer>1</integer>
  <key>search-method-string</key>
  <string>Enclosing Xcode</string>
  <key>xcode-info</key>
  <dict>
  <key>path</key>
  <string>/Users/bluekurk/Contents/Developer</string>
  </dict>
  </dict>
  <key>os-version</key>
  <string>10.12.1</string>
  <key>product-errors</key>
  <array>
  <dict>
  <key>code</key>
  <integer>-21023</integer>
  <key>message</key>
  <string>Developer tools could not be found. Be sure Xcode is installed and try again.</string>
  <key>userInfo</key>
  <dict>
  <key>NSLocalizedDescription</key>
  <string>Developer tools could not be found. Be sure Xcode is installed and try again.</string>
  <key>NSLocalizedFailureReason</key>
  <string>Unable to validate your application.</string>
  </dict>
  </dict>
  </array>
  <key>product-metadata</key>
  <dict/>
  <key>tool-path</key>
  <string>/Users/bluekurk/.itmstransporter/softwaresupport/bin/Frameworks/ITunesSoftwareService.framework</string>
  <key>tool-version</key>
  <string>1.9.784</string>
</dict>
</plist>

update: after I upgraded to XCode 8.3.1 and delete simulator 8.1, I suddenly could upload binary to testflight again.

Developer tools could not be found.
 
 
Q