我已经在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 旧版为 1.0.0,新版为 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*]' …Run Code Online (Sandbox Code Playgroud) 我有 2 个清单:
List<String> authorizedList ; // ["11","22","33"]
List<MySerial> serials; // [Myserial1,Myserial2,Myserial3] =>
Run Code Online (Sandbox Code Playgroud)
MySerial 是具有 2 个参数的对象,Myserial(String serial, String name)
我想使用流检查序列中的所有序列是否都在授权列表中,但我是新使用它的。
if (!serials.stream().map(MySerial::getSerial).anyMatch(authorizedList::equals)) {
throw new UnauthorizedException();
}
Run Code Online (Sandbox Code Playgroud)
但它总是抛出异常。