驗證Xcode真偽的方法,來自蘋果官網

大學霸發表於2015-09-23
驗證Xcode真偽的方法,來自蘋果官網

Xcode的驗證你的版本 2015年9月22日

 注意:中文為有道翻譯,看下驗證方法即可。

我們最近將應用程式從應用程式商店,還建有Xcode的假冒版本有可能對消費者造成傷害。你應該直接從Mac App Store下載Xcode,或從蘋果開發者網站,離開看門人上啟用你的系統,以防止篡改軟體。

當你從Mac App Store下載Xcode,OS X自動檢查Xcode的程式碼簽名和驗證程式碼由蘋果簽署。當你從蘋果開發者網站上下載Xcode,簽名的程式碼會自動檢查和驗證預設情況下只要你沒有殘疾的看門人。

你是否下載Xcode Xcode從蘋果或接收從另一個來源,如USB或雷電磁碟,或者在一個本地網路,你可以很容易地驗證的完整性Xcode的副本。

來驗證你的身份Xcode的副本在終端系統上執行以下命令啟用了看門人的:

spctl --assess --verbose /Applications/Xcode.app/

應用程式/在哪裡Xcode安裝的目錄。

看門人使用這個工具執行相同的檢查來驗證簽名的應用程式的程式碼。該工具需要幾分鐘來完成Xcode的評估。

工具應該返回以下結果Xcode的版本從Mac App Store下載:

/Applications/Xcode.app: acceptedsource=Mac 
App Store和從蘋果開發者網站下載一個版本,結果應該閱讀
/Applications/Xcode.app: acceptedsource=Apple
/Applications/Xcode.app: acceptedsource=Apple System
“接受”以外的任何結果或任何來源除了“Mac App Store”,“蘋果系統”或“蘋果”表明,
Xcode的應用程式簽名是無效的。

你應該下載一個乾淨的副本提交之前Xcode並重新編譯你的應用程式進行審查。

本文由大學霸整理,轉載請註明出處,尊重IT人!

原文:https://developer.apple.com/news/?id=09222015aValidating Your Version of XcodeSeptember 22, 2015We recently removed apps from the App Store that were built with a counterfeit version of Xcode which had the potential to cause harm to customers. You should always download Xcode directly from the Mac App Store, or from the Apple Developer website, and leave Gatekeeper enabled on all your systems to protect against tampered software.

When you download Xcode from the Mac App Store, OS X automatically checks the code signature for Xcode and validates that it is code signed by Apple. When you download Xcode from the Apple Developer website, the code signature is also automatically checked and validated by default as long as you have not disabled Gatekeeper.

Whether you downloaded Xcode from Apple or received Xcode from another source, such as a USB or Thunderbolt disk, or over a local network, you can easily verify the integrity of your copy of Xcode.

To verify the identity of your copy of Xcode run the following command in Terminal on a system with Gatekeeper enabled:

spctl --assess --verbose /Applications/Xcode.appwhere /Applications/ is the directory where Xcode is installed. This tool performs the same checks that Gatekeeper uses to validate the code signatures of applications. The tool can take up to several minutes to complete the assessment for Xcode.

The tool should return the following result for a version of Xcode downloaded from the Mac App Store:

/Applications/Xcode.app: acceptedsource=Mac App Storeand for a version downloaded from the Apple Developer web site, the result should read either/Applications/Xcode.app: acceptedsource=Appleor/Applications/Xcode.app: acceptedsource=Apple SystemAny result other than ‘accepted’ or any source other than ‘Mac App Store’, ‘Apple System’ or ‘Apple’ indicates that the application signature is not valid for Xcode. You should download a clean copy of Xcode and recompile your apps before submitting them for review.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29597077/viewspace-1806922/,如需轉載,請註明出處,否則將追究法律責任。

相關文章