1仆救、在線安裝
2抒和、網(wǎng)頁下載再安裝
如果你直接在Xcode中下載太慢了,那可以試試第二種方法彤蔽。
第一步:下載文檔
打開瀏覽器輸入一下網(wǎng)址:
https://developer.apple.com/library/downloads/docset-index.dvtdownloadableindex
<!-- START Xcode 8.3 FCS -->
<!-- START conceptual doc set -->
<dict>
<key>fileSize</key>
<integer>1176127378</integer>
<key>identifier</key>
<string>com.apple.adc.documentation</string>
<key>name</key>
<string>Guides and Sample Code</string>
<key>source</key>
<string>https://devimages-cdn.apple.com/docsets/20170327/091-04694-A.dmg</string>
<key>userInfo</key>
<dict>
<key>ActivationPredicate</key>
<string>$XCODE_VERSION >= '8.3'</string>
<key>Category</key>
<string>Documentation</string>
<key>IconType</key>
<string>IDEDownloadablesTypeDocSet</string>
<key>InstallPrefix</key>
<string>$(HOME)/Library/Developer/Shared/Documentation/DocSets</string>
<key>InstalledIfAllReceiptsArePresentOrNewer</key>
<dict>
<key>com.apple.pkg.1.0.ConceptualDocset</key>
<string>10.9.0.0.1.1490382108</string>
</dict>
<key>RequiresADCAuthentication</key>
<false/>
<key>Summary</key>
<string>My description of content</string>
</dict>
<key>version</key>
<string>5.27</string>
</dict>
<!-- END conceptual doc set -->
<!-- END Xcode 8.3 FCS -->
下載好的文檔拷貝到到xcode文檔安裝路徑中
Xcode文檔安裝的位置1:
/Applications/Xcode.app/Contents/Developer/Documentation/DocSets
注意: 拷貝之前最好將默認(rèn)的文檔刪除, 因?yàn)槿绻瑫r(shí)存在高版本和低版本的文檔, 那么低版本的不會(huì)顯示
Xcode文檔安裝的位置2:
/Users/你的用戶名/Library/Developer/Shared/Documentation/DocSets
如果沒有該文件夾可以自己創(chuàng)建一個(gè)
3摧莽、查看文檔
4、一些iOS 的書籍