diff --git a/Gridicons.podspec b/Gridicons.podspec index 931f92b..d3864e1 100644 --- a/Gridicons.podspec +++ b/Gridicons.podspec @@ -21,9 +21,9 @@ Pod::Spec.new do |s| s.source = { git: 'https://github.com/Automattic/Gridicons-iOS.git', tag: s.version.to_s } s.source_files = 'Gridicons/Gridicons/**/*.swift' s.resource_bundles = { - Gridicons: [ + GridiconsAssets: [ 'Gridicons/Gridicons/*.{xcassets}' ] } - s.resources = 'Gridicons/Gridicons/*.{xcassets}' + #s.resources = 'Gridicons/Gridicons/*.{xcassets}' end diff --git a/Gridicons.stencil b/Gridicons.stencil index 4bb80e7..cd849f2 100644 --- a/Gridicons.stencil +++ b/Gridicons.stencil @@ -35,7 +35,7 @@ extension {{enumName}} { var icon: UIImage { var bundle = Bundle(for: BundleToken.self) - if let url = bundle.url(forResource: "Gridicons", withExtension: "bundle"), + if let url = bundle.url(forResource: "GridiconsAssets", withExtension: "bundle"), let assetBundle = Bundle(url: url) { // When loaded through CocoaPods, assets reside in a separate resource bundle bundle = assetBundle diff --git a/Gridicons/Gridicons/GridiconsGenerated.swift b/Gridicons/Gridicons/GridiconsGenerated.swift index 23262c1..74b2fcf 100644 --- a/Gridicons/Gridicons/GridiconsGenerated.swift +++ b/Gridicons/Gridicons/GridiconsGenerated.swift @@ -412,7 +412,7 @@ extension GridiconType { var icon: UIImage { var bundle = Bundle(for: BundleToken.self) - if let url = bundle.url(forResource: "Gridicons", withExtension: "bundle"), + if let url = bundle.url(forResource: "GridiconsAssets", withExtension: "bundle"), let assetBundle = Bundle(url: url) { // When loaded through CocoaPods, assets reside in a separate resource bundle bundle = assetBundle