iOS16适配

Q1:

The status bar window cannot be accessed from within an application

A:
iOS16中,将无法再通过_statusBarWindow获取到状态栏window,注释或切换其他方式实现需求

// [[UIApplication sharedApplication] valueForKey:@"_statusBarWindow"]

Q2:

/Users/XXX/Pods/Pods.xcodeproj error project: Signing for "XXX" requires a development team. Select a development team in the Signing & Capabilities editor.

pod选择好证书即可

Q3:
iOS快捷最低版本升级至11.0

Podfile


post_install do |installer|
  installer.pods_project.targets.each do |target|
    puts "#{target.name}"
    target.build_configurations.each do |config|
      if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 11.0
         config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
      end
    end
  end
end

Q4:
新增特性:URLComponents会基于是否传入了参数、即使传入空字典也会自动拼接上一个"?"

你可能感兴趣的:(iOS16适配)