Qt错误:错误:未找到架构x86_64的符号

Qt错误:错误:未找到架构x86_64的符号,qt,Qt,我想在Qt Creator中创建一个简单的项目,但无法运行它 #include <QApplication> #include <QLabel> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel label("Hello, world"); label.show(); return app.exec(); } 我绝对是qt的新生,我只是在网


我想在Qt Creator中创建一个简单的项目,但无法运行它

#include <QApplication>
#include <QLabel>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QLabel label("Hello, world");
    label.show();

    return app.exec();
}

我绝对是qt的新生,我只是在网上学习一些课程,所以我不知道这有什么问题。我的mac os:10.12.3。Qt Creator:4.3.1基于Qt 5.9.1(Clang 7.0(Apple),64位)

显示你的.pro,请在构建:Clean,run qMake,run谢谢你回答我的问题,我已经上传了.pro。你可以显示完整的错误消息,以及你的操作系统信息和你安装的Qt版本。显示你的.pro,请在Build:Clean下运行qMake,run谢谢你回答我的问题,我已经上传了.pro。除了操作系统的信息和安装的Qt版本外,你还可以显示完整的错误消息。
#-------------------------------------------------
#
# Project created by QtCreator 2017-08-03T16:29:59
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = Hello
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0


SOURCES += \
        main.cpp \
        mainwindow.cpp

HEADERS += \
        mainwindow.h