Manos Chorianopoulos

new podspec for dublicate files error

......@@ -21,19 +21,29 @@ Pod::Spec.new do |spec|
# spec.public_header_files = "SwiftWarplyFramework.framework/Headers/*.h"
# ==> OLD
spec.source_files = 'SwiftWarplyFramework/*.xcassets', 'SwiftWarplyFramework/SwiftWarplyFramework/*.xcassets', "SwiftWarplyFramework/*.png", "SwiftWarplyFramework/*.xcassets", "SwiftWarplyFramework/SwiftWarplyFramework/*.xcassets","SwiftWarplyFramework/*.xib", "SwiftWarplyFramework/SwiftWarplyFramework/*.xib", "SwiftWarplyFramework/*.{h,m}", "SwiftWarplyFramework/*.{h,m}", "SwiftWarplyFramework/**/*.{h,m}", "SwiftWarplyFramework/**/**/*.{h,m}", "SwiftWarplyFramework/**/**/**/*.{h,m}", "SwiftWarplyFramework/*.swift", "*.swift", "SwiftWarplyFramework/SwiftWarplyFramework/*.swift", "SwiftWarplyFramework/SwiftWarplyFramework/SwiftWarplyFramework/*.swift", "SwiftWarplyFramework/**/*.{swift,storyboard,xib,otf,ttf,xcassets}"
# spec.source_files = 'SwiftWarplyFramework/*.xcassets', 'SwiftWarplyFramework/SwiftWarplyFramework/*.xcassets', "SwiftWarplyFramework/*.png", "SwiftWarplyFramework/*.xcassets", "SwiftWarplyFramework/SwiftWarplyFramework/*.xcassets","SwiftWarplyFramework/*.xib", "SwiftWarplyFramework/SwiftWarplyFramework/*.xib", "SwiftWarplyFramework/*.{h,m}", "SwiftWarplyFramework/*.{h,m}", "SwiftWarplyFramework/**/*.{h,m}", "SwiftWarplyFramework/**/**/*.{h,m}", "SwiftWarplyFramework/**/**/**/*.{h,m}", "SwiftWarplyFramework/*.swift", "*.swift", "SwiftWarplyFramework/SwiftWarplyFramework/*.swift", "SwiftWarplyFramework/SwiftWarplyFramework/SwiftWarplyFramework/*.swift", "SwiftWarplyFramework/**/*.{swift,storyboard,xib,otf,ttf,xcassets}"
# <== OLD
# ==> NEW
# ONLY include code files in source_files
# spec.source_files = "SwiftWarplyFramework/**/*.{h,m,swift}"
spec.source_files = "SwiftWarplyFramework/SwiftWarplyFramework/**/*.{h,m,swift}"
# <== NEW
# 'SwiftWarplyFramework/**/*',
# , "SwiftWarplyFramework/**/*.{png,jpeg,jpg,json,xcassets,imageset,strings}", "SwiftWarplyFramework/Classes/**/*"
# spec.vendored_frameworks = "SwiftWarplyFramework.framework"
spec.exclude_files = "Classes/Exclude"
# ==> OLD
# spec.exclude_files = "Classes/Exclude"
# <== OLD
# ==> NEW
spec.exclude_files = [
"SwiftWarplyFramework/build/**/*",
"SwiftWarplyFramework/**/*.xcodeproj/**/*"
]
# <== NEW
spec.dependency 'RSBarcodes_Swift', '~> 5.2.0'
# spec.dependency 'RSBarcodes_Swift', '~> 5.1.1'
......@@ -42,12 +52,18 @@ Pod::Spec.new do |spec|
# spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,json,ttf,imageset,strings}'] }
# ==> OLD
spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{storyboard,xib,otf,ttf,xcassets}'] }
# spec.resource_bundles = { 'ResourcesBundle' => ['SwiftWarplyFramework/**/*.{storyboard,xib,otf,ttf,xcassets}'] }
# <== OLD
# ==> NEW
# Include all resource files in resources
# spec.resources = "SwiftWarplyFramework/**/*.{storyboard,xib,otf,ttf,xcassets,png}"
spec.resource_bundles = {
'ResourcesBundle' => [
'SwiftWarplyFramework/SwiftWarplyFramework/**/*.{storyboard,xib,xcassets}',
'SwiftWarplyFramework/SwiftWarplyFramework/fonts/*.{otf,ttf}'
]
}
# <== NEW
# Add explicit Swift version
......
......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......