当前位置:   article > 正文

升级 xcode15后,firebase 库提示出错的解决方案_sdk version issue. this app was built with the ios

sdk version issue. this app was built with the ios 16.2 sdk. starting april

最新的苹果上架提示:

  1. Hello,
  2. We noticed one or more issues with a recent delivery for the following app:
  3. *********
  4. Version 1.7.4
  5. Build 1060239
  6. Although delivery was successful, you may want to correct the following issues in your next delivery. Once you've corrected the issues, upload a new binary to App Store Connect.
  7. ITMS-90725: SDK version issue - This app was built with the iOS 16.2 SDK. Starting April 29, 2024, all iOS and iPadOS apps must be built with the iOS 17 SDK or later, included in Xcode 15 or later, in order to be uploaded to App Store Connect or submitted for distribution.
  8. Apple Developer Relations

于是升级了到 xcode15,更新 pod 后,firebase 库提示出错:

A function declaration without a prototype is deprecated in all versions of C

一、方案一

在 pod 库脚本中添加如下代码:

  1. # Make it work with GoogleDataTransport
  2. if target.name.start_with? "GoogleDataTransport"
  3. target.build_configurations.each do |config|
  4. config.build_settings['CLANG_WARN_STRICT_PROTOTYPES'] = 'NO'
  5. end
  6. end
  7. end

重新运行 pod install

二、方案二:

在 pod 的设置中

Pods => Build settings => Strict Prototypes => set to NO

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/603286
推荐阅读
相关标签
  

闽ICP备14008679号