HomeiOS Developmentios - MyFramework `vendored_frameworks` sample didn't match any file

ios – MyFramework `vendored_frameworks` sample didn’t match any file


I’ve a pod library that embody an xcframework. That is definition of podspec:

Pod::Spec.new do |s|
  s.title="MySDK"
  s.model               = '1.0.0'
  s.abstract               = 'Abstract'
  s.description           = 'Description'
  s.homepage="homepage_url"
  s.license               = { :sort => 'MIT', :file => 'LICENSE' }
  s.writer                = { 'xxxxx' => 'xxxxxx' }
  s.supply                = { :git => 'xxxxxx' }
  s.ios.deployment_target="15.0"

  s.source_files="MySDK/**/*.{swift,xcframework}"'
  s.vendored_frameworks="MySDK/Frameworks/MyFramework.xcframework"
  s.preserve_paths="MySDK/Frameworks/MyFramework.xcframework"
  s.xcconfig              = { 'OTHER_LDFLAGS' => '-framework MyFramework' }
  s.frameworks="UIKit", 'SwiftUI', 'XCTest', 'MyFramework'
  
  s.dependency 'iOSDFULibrary', '~> 4.13.0'

finish

After I validate pod with pod lib lint –allow-warnings –no-clean the result’s effective:

MySDK handed validation.

However after I validate pod with pod spec lint I obtain this error:

-> MySDK (1.0.0)
    - ERROR | file patterns: The `preserve_paths` sample didn't match any file.
    - ERROR | [iOS] file patterns: The `vendored_frameworks` sample didn't match any file.
    - WARN  | [iOS] license: Unable to discover a license file
    - WARN  | [iOS] swift: The validator used Swift `4.0` by default as a result of no Swift model was specified. To specify a Swift model throughout validation, add the `swift_versions` attribute in your podspec. Word that utilization of a `.swift-version` file is now deprecated.
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You should use `--verbose` for extra data.
    - NOTE  | xcodebuild:  be aware: Utilizing codesigning id override: -
    - NOTE  | [iOS] xcodebuild:  be aware: Constructing targets in dependency order
    - NOTE  | [iOS] xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 9.0, however the vary of supported deployment goal variations is 11.0 to 16.2.99. (in goal 'iOSDFULibrary' from mission 'Pods')
    - NOTE  | [iOS] xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment goal 'IPHONEOS_DEPLOYMENT_TARGET' is ready to 9.0, however the vary of supported deployment goal variations is 11.0 to 16.2.99. (in goal 'ZIPFoundation' from mission 'Pods')
    - NOTE  | [iOS] xcodebuild:  be aware: Metadata extraction skipped. No AppIntents.framework dependency discovered. (in goal 'ZIPFoundation' from mission 'Pods')
    - ERROR | [iOS] xcodebuild:  MySDK/MySDK/MySDK/Lessons/Managers/BluetoothStatusManager.swift:11:8: error: no such module 'MyFramework'
    - NOTE  | [iOS] xcodebuild:  be aware: Metadata extraction skipped. No AppIntents.framework dependency discovered. (in goal 'iOSDFULibrary' from mission 'Pods')

Analyzed 1 podspec.

[!] The spec didn't move validation, because of 4 errors and a pair of warnings.

Thanks prematurely to all response!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments