美文网首页
ASDK文档(安装)

ASDK文档(安装)

作者: 梦想家家家 | 来源:发表于2017-09-22 09:29 被阅读19次

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

相关文章

  • ASDK文档(安装)

    Texture may be added to your project via CocoaPods or Car...

  • ASDK文档翻译(资源,例子)

    Resources Slack Join 700+ Texture developers and the Text...

  • ASDK (Texture) 简介

    一 、ASDK简介 ASDK是AsyncDisplayKit的简称,是最初由Facebook的Paper应用程序开...

  • iOS进阶

    PPAsyncDrawingKit - 实现了一系列基础 UI 控件的轻量级 ASDK 一款轻量级的 ASDK,实...

  • ASDK

    ASDK demohttps://github.com/texturegroup/texture/tree/mas...

  • asdk

    https://www.jianshu.com/p/089faff572fc

  • Ant Design Pro 框架使用篇(持续更新)

    文档 官网地址官网使用文档 正文 1. 安装 & 使用 安装官网文档参考地址 - 安装 使用官网文档参考地址 -...

  • Postgres-xl集群部署文档

    Postgres-xl集群部署文档 文档介绍 文档结构划分 系统和安装流程图 安装规划 安装环境介绍 安装准备 安...

  • [Memo] CentOS 安装 Docker

    官方安装文档参见官方安装文档指定章节即可。官方安装文档中的安装源访问速度较慢,可能引起安装失败。可以采用国内镜像进...

  • IOS 预加载与智能预加载

    本篇小结 这篇文章是 ASDK 系列中的最后一篇,文章会介绍 iOS 中几种预加载的方案,以及 ASDK 中是如何...

网友评论

      本文标题:ASDK文档(安装)

      本文链接:https://www.haomeiwen.com/subject/ofvxextx.html