Xcode 10警告:跳过代码签名,因为目标没有Info.plist文件

Sah*_*oor 16 xcode ios firebase

获取以下Xcode 10GM版本内置警告

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

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

如何摆脱这些警告?

Ash*_*kad 3

在 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
Run Code Online (Sandbox Code Playgroud)

它会解决这个问题。由于“IBDesignable 不适用于与 CocoaPods 链接的框架”,我们在 Podfile 中使用了以上几行

IBDesignable 的问题已在 Xcode 10 中修复

文档

我已经删除了这些行,警告也消失了。

希望对你有帮助 :)

  • 如果 pod 文件中没有注释掉以上几行怎么办? (2认同)