简体   繁体   English

在Qt上未检测到iOS套件(macOS)

[英]iOS kit not detected on Qt (macOS)

I am currently trying to port an android application on iOS. 我目前正在尝试在iOS上移植android应用程序。 The application was developped on Linux. 该应用程序是在Linux上开发的。 But I can't manage to use Qt on macOs for iOS developpement. 但是我无法在macO上使用Qt进行iOS开发。

I followed those (rather unclear) instructions : http://doc.qt.io/qt-5/ios-support.html 我遵循了这些(相当不清楚的)指示: http : //doc.qt.io/qt-5/ios-support.html

First, I installed successfully XCode and I managed to deploy a dummy app on my iPhone. 首先,我成功安装了XCode,并设法在iPhone上部署了一个虚拟应用程序。 Then, I installed Qt and opened the ".pro" project file. 然后,我安装了Qt并打开了“ .pro”项目文件。 But the only kit I can use is "Desktop Qt 5.4.1 clang 64 bit". 但是我唯一可以使用的工具包是“ Desktop Qt 5.4.1 clang 64 bit”。 The kits for iOS don't seem to be detected. 似乎未检测到iOS的工具包。

Did I do something wrong ? 我做错什么了吗 ? Am I missing something ? 我想念什么吗?

EDIT: 编辑:

When I launch the ".pro", I got this error : 当我启动“ .pro”时,出现此错误:

Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.

Unfortunately, it is NOT related to this well known issue ( Qt Creator - Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild ) 不幸的是,它与这个众所周知的问题无关( Qt Creator-项目错误:Xcode设置不正确。您可能需要通过运行/ usr / bin / xcodebuild来确认许可协议

When I run the command : 当我运行命令时:

/usr/bin/xcodebuild

I get this error: 我收到此错误:

xcodebuild: error: The directory /Users/<UserName> does not contain an Xcode project

Okay I managed to solve my problem by re installing Qt with version 5.8 (instead of 5.9.1). 好的,我设法通过重新安装版本5.8(而不是5.9.1)的Qt来解决我的问题。

But I am not sure this is what was causing the issue though. 但是我不确定这是引起问题的原因。 In deed, I realized I installed Qt prior to configuring XCode the first time(with my Developer Account). 实际上,我意识到我是在第一次配置XCode之前(使用我的开发者帐户)安装了Qt的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM