4

我已经在 cocoapod 中有我的框架,使用 xcframework,里面有几个框架: ios-arm64 ios-arm64_x86_64-maccatalyst ios-arm64_x86_64-simulator tvos-arm64 tvos-arm64_x86_64-simulator

在我第一次推送时,我只将 s.ios.deployment_target 放在了我的 podspec 中,但忘记了 s.tvos.deployment_target。我编辑 podspec 文件(更新 s.version old 是 1.0.0,new 是 1.0.0-tvOS ,添加 s.tvos.deployment_target),提交并推送到 github,并创建一个与版本同名的标签。

Pod::Spec.new do |s|
s.name             = 'projectSwift'
s.version          = '1.0.0-tvOS'
s.summary          = 'summ'
s.description      = 'descri'
s.homepage         = 'http://homepage.com'
s.license          = { :type => 'MIT', :file => 'LICENSE' }
s.author           = { 'author' => 'author@mmmail.com' }
s.source           = { :git => 'linktogit', :tag => s.version  }
s.vendored_frameworks = "projectSwift.xcframework"
s.ios.deployment_target = '10.2'
s.tvos.deployment_target = '9.0'
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
end

当我尝试使用 pod spec lint 时,它失败并出现以下错误:

pod spec lint --no-clean

Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1

 -> projectSwift (1.0.0-tvOS)
    - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
    - NOTE  | xcodebuild:  note: Using new build system
    - NOTE  | xcodebuild:  note: Building targets in parallel
    - NOTE  | xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | [iOS] xcodebuild:  note: Planning build
    - NOTE  | [iOS] xcodebuild:  note: Constructing build description
    - NOTE  | [iOS] xcodebuild:  warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
    - NOTE  | [iOS] xcodebuild:  warning: [CP] Unable to find matching .xcframework slice in 'projectSwift/projectSwift.xcframework projectSwift framework ios-arm64 ios-arm64_x86_64-maccatalyst ios-arm64_x86_64-simulator' for the current build architectures (x86_64 i386).
    - NOTE  | xcodebuild:  ld: warning: directory not found for option '-F/Users/adminlocal/Library/Developer/Xcode/DerivedData/App-bmhifwqmbbcfjnftngtmnjgbwkek/Build/Products/Release-iphonesimulator/XCFrameworkIntermediates/projectSwift'
    - NOTE  | xcodebuild:  clang: error: linker command failed with exit code 1 (use -v to see invocation)

Pods workspace available at `/var/folders/_b/5v6y69j55cs0c_3fcw0cf5m80000gp/T/CocoaPods-Lint-20210316-13156-1ipai8f-projectSwift/App.xcworkspace` for inspection.

Analyzed 1 podspec.

[!] The spec did not pass validation, due to 1 error.

除了 podspec,我没有修改任何其他内容。

4

0 回答 0