Skip to content

Commit 10b939f

Browse files
committed
Update the README about aom on CocoaPods
1 parent 715df4a commit 10b939f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,25 @@ You can choose the codec and use `libavif` CocoaPods subspec to choose the one y
3131

3232
### aom
3333

34-
By default, libavif is built with [aom](https://aomedia.googlesource.com/aom/) codec support. aom is the first AV1 codec during the standard draft implementation. The aom support both decodinng and encoding
34+
+ For Carthage/SwifftPM
35+
36+
libavif is built with [aom](https://aomedia.googlesource.com/aom/) codec support. aom is the first AV1 codec during the standard draft implementation. The aom support both decodinng and encoding
37+
38+
+ For CocoaPods
39+
40+
Because of strange design of **subspec dependencies resolution algorithm**, we can not make aom by default (or all the subspecs will always link aom, which means not optional). So libavif is built with nothing codec (`libavif/core`). You need to choose the actual AV1 codec using one or more of below.
41+
42+
If you want to use aom, use:
43+
44+
```ruby
45+
pod 'libavif/liaom'
46+
```
47+
48+
or other AV1 codec, like dav1d:
49+
50+
```ruby
51+
pod 'libavif/libdav1d'
52+
```
3553

3654
### dav1d (Decoding)
3755

0 commit comments

Comments
 (0)