Swift文件 - 如何禁用所有警告?

时间:2015-10-01 09:44:53

标签: ios swift swift2 xcode7

我想在-w文件中禁用所有警告(标有黄色) 我已尝试将Build Phases标记添加到Objective-C,但它无法正常工作。
Swift它可行,但如何在import QtQuick 2.5 import QtQuick.Controls 1.4 import QtQuick.Layouts 1.1 Item { id: root width: 250 property alias id: id.text property alias name: name.text property alias status: status.text property alias statusReason: statusReason.text property alias comments: comments.text ColumnLayout { id: mainLayout RowLayout { id: first Label { text: "المُعرِّف : " } Label { id: id text: "N/A" } } RowLayout { id: second Label { text: "القاعة : " } Label { id: name text: "N/A" } } RowLayout { Label { text: "الحالة : " } Label { id: status text: "N/A" } } RowLayout { Label { text: "السبب : " } Label { id: statusReason text: "N/A" } } RowLayout { Label { text: "تعليقات : " } Label { id: comments text: "N/A" } } } }

中执行此操作

1 个答案:

答案 0 :(得分:-1)

目标>建筑设置>搜索"警告" >将是更改为否>完成

enter image description here