Skip to content

Commit e3bdf89

Browse files
authored
Remove AssetsLibrary dependency for tvOS (#2034)
- The framework isn't available on tvOS. This causes CocoaPods linting to fail which prevented me from pushing the new release out. - One way to fix this is to have a different `default_subspecs` for tvOS that doesn't have AssetsLibrary subspec, but per-platform `default_subspecs` doesn't seem to be supported by CocoaPods. So I updated the subspec itself to only depend on the framework for iOS. This means the subspec is empty/useless for tvOS (and other platforms FWIW). - Tested with `pod spec lint Texture.podspec`. - Fixes #1992 and part of #1549. Also unblocks 3.1.0 release. - For the long term, we can remove the subspec entirely when iOS 9 is deprecated (#1828).
1 parent eba2a53 commit e3bdf89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Texture.podspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ Pod::Spec.new do |spec|
8383
end
8484

8585
spec.subspec 'AssetsLibrary' do |assetslib|
86-
assetslib.frameworks = 'AssetsLibrary'
87-
assetslib.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_ASSETS_LIBRARY=1' }
86+
assetslib.ios.frameworks = 'AssetsLibrary'
87+
assetslib.ios.xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) AS_USE_ASSETS_LIBRARY=1' }
8888
assetslib.dependency 'Texture/Core'
8989
end
9090

0 commit comments

Comments
 (0)