Skip to content

Podspec file does not validate when added resource_bundle for localization in 'BinaryFramework' #61

@Swapnil1794

Description

@Swapnil1794

Issue

ℹ Please provide a quick description for this issue.

Xcode - 11.5
MacOS - 10.15.3
Swift - 5

Localize Config

Pod::Spec.new do |s|

s.platform = :ios
s.ios.deployment_target = '11.1'
s.name = "*"
s.summary = "
for customer."
s.requires_arc = true

s.version = "0.1.2"

s.license = { :type => "MIT", :file => "LICENSE" }

s.author = { "Swapnil G" => "**" }

s.homepage = "***"

s.source = { :git => "***",
:tag => "#{s.version}" }

s.ios.framework = "UIKit"
s.framework = "WebKit"
s.ios.framework = "HealthKit"

s.dependency 'SQLite.swift','> 0.12.2'
s.dependency 'Alamofire', '
> 4.9.1'
s.dependency 'Charts', '> 3.4.0'
s.dependency 'CryptoSwift', '
> 1.3.0'
s.dependency 'NVActivityIndicatorView', '> 4.8.0'
s.dependency 'SwiftSoup', '
> 2.3.0'
s.dependency 'SwiftyJSON', '> 5.0.0'
s.dependency 'DropDown', '
> 2.3.13'
s.dependency 'HGCircularSlider', '> 2.2.0'
s.dependency 'RealmSwift', '
> 4.3.2'

s.dependency 'HGCircularSlider', '> 2.2.0'
s.dependency 'DropDown', '
> 2.3.13'

s.source_files = ".framework/Headers/*.h"
s.public_header_files = "
.framework/Headers/*.h"
s.vendored_frameworks = "**.framework"

s.resource_bundle = { "**" => ["Localize/.lproj/.strings"] }

s.swift_version = "5.0"

end

What did you do?

Added strings file for hindi and english language checked with normal framework (not binary framework), it works as expected but not with the binaryframework

What did you expect to happen?

Localization should work for binaryframework also.

What happened instead?

Validation failed with error - [iOS] file patterns: The resource_bundles pattern for Framework_Bundle did not match any file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions