Getting Error while uploading XCFramework in cocoapods

Hi
I have created a custom XCframework and now i am trying to upload it on cocoapods so that my clients can use it on thier projects. However i am unable to push on pods due to the following error ERROR | [iOS] file patterns: The

source_files
pattern did not match any file. My XCFramework heirarchy looks like this
XCFramework
----- info.plist,

ios-armv7_arm64 ,

----------------------myCustomFramework

----------------------Headers

-----------------Source Files

ios-i386_x86_64-simulator
----------------------myCustomFramework

----------------------Headers

-----------------Source Files
I have tried with this podspec file

Pod::Spec.new do |spec|

spec.name = 'CustomFramework'

spec.version = '1.0.0-beta1'

spec.license = {:type => 'MIT', :file => 'License.md'}

spec.homepage = ''

spec.authors = { 'ABC DEF' => 'abc.def@gamil.in'}

spec.summary = ''

spec.source = { :http => 'Link of my file'}

spec.source_files = 'CustomFramework.xcframework/ios-armv7_arm64/CustomFramework.framework/Headers/.{h,m,swift}', 'CustomFramework.xcframework/ios-i386_x86_64-simulator/CustomFramework.framework/Headers/.{h,m,swift}'

spec.library = 'z', 'sqlite3', 'xml2.2'

spec.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' } spec.documentation_url = '' spec.framework = 'CustomFramework'

spec.exclude_files = "Classes/Exclude"

spec.platform = :ios, "10.0"

end

Replies

Would probably be best to ask the CocoaPods folks on the CocoaPods lists. Probably more people around to discuss you question.