【问题标题】:Xcode 10 Warning: Skipping code signing because the target does not have an Info.plist fileXcode 10 警告:跳过代码签名,因为目标没有 Info.plist 文件
【发布时间】:2019-02-19 06:44:24
【问题描述】:

Xcode 10 GM 版本中收到以下警告

跳过代码签名,因为目标没有 Info.plist 文件。 (在目标“FirebaseCore”中)

跳过代码签名,因为目标没有 Info.plist 文件。 (在目标“FirebaseCore”中)

如何摆脱这些警告?

【问题讨论】:

  • FirebaseCore 目标中是否有 Info.plist 文件?
  • 是的。它已经存在 2 年了。如前所述,此错误开始出现在 Xcode 10 GM 中。
  • Podfile 是什么样的?
  • 我有同样的问题,但是我在 FirebaseCore 的支持目录中没有看到 plist。这可能是 Google 的问题。

标签: ios xcode firebase


【解决方案1】:

在 Xcode 10 中:注释 Podfile 中的以下行

# Workaround for Cocoapods issue #7606
#post_install do |installer|
#    installer.pods_project.build_configurations.each do |config|
#        config.build_settings.delete('CODE_SIGNING_ALLOWED')
#        config.build_settings.delete('CODE_SIGNING_REQUIRED')
#    end
#end

它将解决问题。由于“IBDesignable 不适用于与 CocoaPods 链接的框架”

,我们在 Podfile 中使用了上述行

IBDesignable 的问题在 Xcode 10 中得到修复

我已删除此行,警告消失了。

希望对你有帮助:)

【讨论】:

  • 如果 pod 文件中没有上述行要注释掉怎么办?
【解决方案2】:

这里的 Paul Beusterien 说:Is it harmful to have warning: Skipping code signing because the target does not have an Info.plist file?

您必须至少更新到 CocoaPods 版本 1.6.0.rc.1,出现此问题时我使用的是 1.5.3 版本。

这是我为删除此警告所做的操作:

  1. 删除派生数据
  2. 在终端中,使用以下命令删除当前的 cocoapods:sudo gem uninstall cocoapods
  3. 安装最新的cocoapod版本:sudo gem install cocoapods -v 1.6.0.rc.1
  4. 将目录更改为您的项目,然后
  5. pod deintegrate
  6. pod install
  7. 在 Xcode 中清理并重建项目。

【讨论】:

    【解决方案3】:

    一般的方法是制作一个 info.plist 并将其添加到您的项目中。还记得将它添加到目标的构建设置中。这样警告就会消失。

    【讨论】:

      猜你喜欢
      • 2019-06-22
      • 2022-09-27
      • 1970-01-01
      • 2019-09-22
      • 2012-10-07
      • 1970-01-01
      • 1970-01-01
      • 2023-03-20
      • 1970-01-01
      相关资源
      最近更新 更多