diff --git a/Sources/RemoteActionPositionController.swift b/Sources/RemoteActionPositionController.swift index 391fe96..84ecfa6 100644 --- a/Sources/RemoteActionPositionController.swift +++ b/Sources/RemoteActionPositionController.swift @@ -30,7 +30,10 @@ class RemoteActionPositionController: NSObject, PositionController { case fastForward, rewind, jumpForward, jumpBackward, reset, pause var images: (left: UIImage?, right: UIImage?) { - let bundle = Bundle(identifier: "org.cocoapods.TVVLCPlayer") + guard let url = Bundle.main.url(forResource: "TVVLCPlayer", withExtension: "bundle"), + let bundle = Bundle(url: url) else { + fatalError() + } switch self { case .fastForward: diff --git a/TVVLCPlayer.podspec b/TVVLCPlayer.podspec index 2d994c9..80ef2b7 100755 --- a/TVVLCPlayer.podspec +++ b/TVVLCPlayer.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "TVVLCPlayer" - s.version = "1.0.1" + s.version = "1.0.2" s.summary = "A powerfull video player" s.description = <<-DESC @@ -24,5 +24,7 @@ Pod::Spec.new do |s| s.pod_target_xcconfig = { 'SWIFT_OBJC_BRIDGING_HEADER' => "${PODS_TARGET_SRCROOT}/Sources/TVVLCPlayer-Bridging-Header.h" } - s.resources = ["Resources/*.{storyboard,xcassets}"] + s.resources = ["Resources/*.storyboard"] + s.resource_bundle = { 'TVVLCPlayer' => [ 'Resources/*.xcassets' ] } + end