Skip to content

Commit

Permalink
fix(app-check): fix 'Semantic Issue (Xcode): new is unavailable' on…
Browse files Browse the repository at this point in the history
… XCode 14.3 (#10734)
  • Loading branch information
Lyokone authored Apr 12, 2023
1 parent f367857 commit cc6d1c2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,13 @@ post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end

installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
end
end
end
end

Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ - (id)initWithApp:app {

- (void)configure:(FIRApp *)app providerName:(NSString *)providerName {
if ([providerName isEqualToString:@"debug"]) {
self.delegateProvider = [[FIRAppCheckDebugProvider new] initWithApp:app];
self.delegateProvider = [[FIRAppCheckDebugProvider alloc] initWithApp:app];
}

if ([providerName isEqualToString:@"deviceCheck"]) {
self.delegateProvider = [[FIRDeviceCheckProvider new] initWithApp:app];
self.delegateProvider = [[FIRDeviceCheckProvider alloc] initWithApp:app];
}

if ([providerName isEqualToString:@"appAttest"]) {
if (@available(iOS 14.0, macCatalyst 14.0, tvOS 15.0, watchOS 9.0, *)) {
self.delegateProvider = [[FIRAppAttestProvider alloc] initWithApp:app];
} else {
// This is not a valid environment, setup debug provider.
self.delegateProvider = [[FIRAppCheckDebugProvider new] initWithApp:app];
self.delegateProvider = [[FIRAppCheckDebugProvider alloc] initWithApp:app];
}
}

Expand Down

0 comments on commit cc6d1c2

Please sign in to comment.