ASDK文檔(安裝)

Texture may be added to your project via CocoaPods or Carthage. Do not forget to import the framework header:

#import <AsyncDisplayKit/AsyncDisplayKit.h>

or create a Objective-C bridging header (Swift). If you have any problems installing Texture, please contact us on Github or Slack!

CocoaPods

Texture is available on CocoaPods. Add the following to your Podfile:

target 'MyApp' do   
pod "Texture"end

Quit Xcode completely before running

> pod install

in the project directory in Terminal.
To update your version of Texture, run

> pod update Texture

in the project directory in Terminal.
Don’t forget to use the workspace .xcworkspace
file, not the project .xcodeproj
file.

Carthage (standard build)

The standard way to use Carthage is to have a Cartfile list the dependencies, and then run carthage update to download the dependenices into the Cathage/Checkouts folder and build each of those into frameworks located in the Carthage/Build folder, and finally the developer has to manually integrate in the project.
Texture is also available through Carthage.
Add the following to your Cartfile to get the latest release branch:

github "texturegroup/texture"

Or, to get the master branch:

github "texturegroup/texture" "master"

Texture has its own Cartfile which lists its dependencies, so this is the only line you will need to include in your Cartfile.
Run

> carthage update

in Terminal. This will fetch dependencies into a Carthage/Checkouts
folder, then build each one.
Look for terminal output confirming Texture
, PINRemoteImage (3.0.0-beta.2)
and PINCache
are all fetched and built. The Texture framework Cartfile should handle the dependencies correctly.
In Xcode, on your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, drag and drop each framework you want to use from the Carthage/Build
folder on disk.
Carthage (light)
Texture does not yet support the lighter way of using Carthage, in which you manually add the project files. This is because one of its dependencies, PINCache
(a nested dependency of PINRemoteImage
) does not yet have a project file.
Without including PINRemoteImage
and PINCache
, you will not get Texture’s full image feature set.

Texture可以通過CocoaPods或者Carthage的添加到你的項目中去,不要忘記導入項目

#import <AsyncDisplayKit/AsyncDisplayKit.h>

或者創建一個Swift頭文件,如果安裝上面有什么問題,請聯系我們

下面的不想翻譯了,太簡單0

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容