gpt4 book ai didi

ios - Xcode项目中的禁止所有警告选项在构建时不会隐藏警告

转载 作者:技术小花猫 更新时间:2023-10-29 10:53:05 43 4
gpt4 key购买 nike

  1. Cocoapods inhibit_all_warnings!没有将 Pods 项目“禁止所有警告”设置为"is"

  2. 将 Pod 项目和单个 Pod 的“禁止所有警告”选项设置为"is"后,Xcode 仍然显示 Pod 警告

Cocoapods 版本:0.39.0Xcode 版本:7.2

我的播客在这里:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

# ignore all warnings from all pods
inhibit_all_warnings!

pod 'SnapKit', '~> 0.15.0'
pod 'Crashlytics'
pod 'YLGIFImage'
pod 'Fabric'
pod "AFNetworking", "~> 2.0"
pod 'SDWebImage', '~>3.7'

# Changes build active architecture only
post_install do |installer_representation|
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end

最佳答案

检查build设置中的“抑制警告”。

关于ios - Xcode项目中的禁止所有警告选项在构建时不会隐藏警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34849841/

43 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com