qt vs ios开发应用环境搭建和上架商店的记录

qt

下载链接如下
https://download.qt.io/new_archive/qt/5.14/5.14.2/qt-opensource-mac-x64-5.14.2.dmg
安装选项全勾选就行,这里特别说明下qt5.14.2/qml

  • qt5.14.2对qml支持还算成熟,但很多特性还得qt6才行,这里用qt5.14.2主要是考虑到服务器是租赁的,为了稳定考虑
  • 吐槽下qt5.14.2/qml
    • TextField不支持添加close button
    • RowLayout和Qt widget的是相反的,添加边距页不是那么友好
    • Button远没有Rectange+MouseArea好用
    • 自带的日历页没法用,需要重写
    • 要熟练使用Loader这个很关键,涉及大量自定义控件都可以用Loader
    • 对NetWork支持不够,windows只能配合mvsc使用,mac基本没戏,很多js的 图表没法用,基本只能用Charts
    • 项目开发的文件目录如下,可以作为参考
      在这里插入图片描述
    • 动画支持很好,滑动效果页不错
    • 多语言基本和qt widget的一样
    • qml对jsData支持很特别,可以好好研究下
    • 使用inputMethodHints可以指定弹出键盘的类型,如数字键盘、适配邮箱的键盘、密码键盘等,会有些bug要慢慢试
  • qt的作用是生成xcodeproj文件,后续模拟器之类的在xcode里进行就行
  • 这里用IOS Simulator来编译
    在这里插入图片描述

xcode

  • mac上必须安装xcode,先判断系统的版本号,在appstore里找到对应的xcode版本,直接下载一般是没用的
    在这里插入图片描述
    在这里插入图片描述
  • 在下面链接找到对应的xcode
    https://developer.apple.com/download/more/
  • 解压到/Applications里
    在这里插入图片描述
  • 设置环境变量
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
  • 安装python3
brew install python
  • 编译项目会遇到无法识别python的时候
ios/mkspecs/features/uikit/devices.py: /usr/bin/python: bad interpreter: No such file or directory

按下面方法来

gedit /Users/mac/Qt5.14.2/5.14.2/ios/mkspecs/features/uikit/devices.py
#!/usr/bin/python 改为#!/usr/bin/python3
  • xcode编译失败错误如下
The following build commands failed:CompileC 
/Users/mac/Qt5.14.2/Examples/Qt-5.14.2/gui/build-analogclock-Qt_5_14_2_for_iOS_Simulator-Release/analogclock.build/Release-iphonesimulator/analogclock.build/Objects-normal/x86_64/moc_rasterwindow.o 
/Users/mac/Qt5.14.2/Examples/Qt-5.14.2/gui/build-analogclock-Qt_5_14_2_for_iOS_Simulator-Release/moc_rasterwindow.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'analogclock' from project 'analogclock')
(1 failure)
make: *** [xcodebuild-release-simulator] Error 65
08:31:32: 进程"/usr/bin/make"退出,退出代码 2 。
Error while building/deploying project analogclock (kit: Qt 5.14.2 for iOS Simulator)

按下面方法来
感谢csdn article/details/122301192

pro加
LIBS += -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks -framework VideoToolbox
LIBS += -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks -framework CoreMedia
LIBS += -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks -framework CoreVideo
  • xcode发布时需要开发者账号688一年,用自己的appid就行,appstore下载Developer,在Developer里完成购买,注意别填自己的名字,填团队的名字,然后需要第二个账号用于团队管理,加入后才能后续开发,这些都要在xcode里预先配置好
  • 若之前配置好的账号出现问题如下图,清除所有账号信息,重启xcode可以解决
    在这里插入图片描述

info.list

  • qt的发布全部在info.list完成,不要动xcode的任何设置
    参考了项目c2gQtWS_x

  • ios文件夹的目录结构
    要注意图片分辨率,MyLaunchScreen.xib是app启动前的画面,这里只是居中文字显示了,简单些
    在这里插入图片描述

  • Images.xcassets文件夹只有下面一个文件夹
    在这里插入图片描述

  • AppIcon.appiconset文件夹下包含app图标
    在这里插入图片描述

  • 共23个文件,要注意图片分辨率,其他照抄就行

  • ios的部分图片是不支持透明通道的,一般ITunes之类的图标不行,自己改或通过makeappicon生成也行

  • info.plist内容如下,特别注意CFBundleShortVersionString,这个是正儿八经的版本号,后期软件更新递增就行,如1.0.0-》1.0.1,其他照抄

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict><key>CFBundleDisplayName</key><string>${PRODUCT_NAME}</string><key>CFBundleExecutable</key><string>${EXECUTABLE_NAME}</string><key>CFBundleGetInfoString</key><string>Created by Qt/QMake</string><key>CFBundleIdentifier</key><string>$(PRODUCT_BUNDLE_IDENTIFIER)</string><key>CFBundleName</key><string>${PRODUCT_NAME}</string><key>CFBundlePackageType</key><string>APPL</string><key>CFBundleShortVersionString</key><string>1.0.0</string><key>CFBundleSignature</key><string>${QMAKE_PKGINFO_TYPEINFO}</string><key>CFBundleVersion</key><string>${QMAKE_FULL_VERSION}</string><key>ITSAppUsesNonExemptEncryption</key><false/><key>LSRequiresIPhoneOS</key><true/><key>NOTE</key><string>This file was generated by Qt/QMake.</string><key>NSPhotoLibraryUsageDescription</key><string>$(PRODUCT_NAME) uses photos</string><key>UILaunchStoryboardName</key><string>LaunchScreen</string><key>UISupportedInterfaceOrientations</key><array><string>UIInterfaceOrientationPortrait</string><string>UIInterfaceOrientationPortraitUpsideDown</string><string>UIInterfaceOrientationLandscapeLeft</string><string>UIInterfaceOrientationLandscapeRight</string></array>
</dict>
</plist>

appstoreconnect

TestFlight

好了,一些准备就绪就开始上传项目,这里先传TestFlight,好好测试App

  • 添加内测人员
    在这里插入图片描述在这里插入图片描述

这里会发送邮件,内含兑换码,打开TestFlight,输入兑换码即可下载并测试

发布

内测可以正式发布了,发布时要传"如何登录的视频"和App的介绍,可以用中文,要尽量简洁方便理解,这个切记

  • App Review
    一般第一次审核时会被驳回,如Guideline 2.1 - Information Needed
    除了要考虑下面这条,其他如实填写
Are the enterprise services in your app sold to single users, consumers, or for family use?
A: No, our app is provided to employees who have joined xxx.

记住真诚是最大的必杀技,要清晰明了的表达自己的意见,并附带视频、截图等
最后大功告成
附审核的问答

Hello,Thank you for your resubmission, but we need additional information before we can continue our review.Please reply to this message in App Store Connect with detailed answers to the questions below.Review EnvironmentSubmission ID: xxxx
Review date: January 13, xxx
Version reviewed: 1.0.0Guideline 2.1 - Information NeededWe have started our review, but we need additional information to continue. Specifically, it appears your app may access or include paid digital content or services, and we want to understand your business model before completing our review.Next StepsPlease review the following questions and provide as much detailed information about your business model as you can.1. Who are the users that will use the paid features and services in the app?
2. Where can users purchase the subscriptions that can be accessed in the app?
3. What specific types of previously purchased services can a user access in the app?
4. What paid content, subscriptions, or features are unlocked within your app that do not use in-app purchase?
5. Are the enterprise services in your app sold to single users, consumers, or for family use?Support- Reply to this message in your preferred language if you need assistance. If you need additional support, use the Contact Us module.
- Consult with fellow developers and Apple engineers on the Apple Developer Forums.
- Provide feedback on this message and your review experience by completing a short survey.
Dear Apple Review Team:Thank you for your patient review. Firstly, let's introduce the xxx. It is a company that xxx, yyy, and more. Its homepage is "https://www.xxx.com". 
The xxx is one of the brands of the xxx.
Regarding the 5 questions you mentioned, our response is as follows:1. Who are the users that will use the paid features and services in the app?
A: Companies such as xxx, zzz and yyy will use the paid features and services.2. Where can users purchase the subscriptions that can be accessed in the app?
A: Fisrtly, open webpage "https://www.xxxx.net/register" and fill in the relevant information and complete the registration to obtain the account. Secondary, open webpage "https://www.xxxx.net/xxxx/xxxx", user can purchase the subscriptions in the "Billing&subscriptions" section.Please see the attachment "How do users obtain an account. png", "Introduce of subscriptions.png" and "How do users purchase the subscriptions.png" for details.3. What specific types of previously purchased services can a user access in the app?
A: User can access "xxx", "zzz", "yyyy", "vvv" and "www" in xxx app.4. What paid content, subscriptions, or features are unlocked within your app that do not use in-app purchase?
A: All function are used after subscriptions, Employees can access the application during the trial period, but if  exceeds, employees must subscribe to the service.5. Are the enterprise services in your app sold to single users, consumers, or for family use?
A: No, our app is provided to employees who have joined xxx.

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/diannao/67394.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

windows 极速安装 Linux (Ubuntu)-- 无需虚拟机

1. 安装 WSL 和 Ubuntu 打开命令行&#xff0c;执行 WSL --install -d ubuntu若报错&#xff0c;则先执行 WSL --update2. 重启电脑 因安装了子系统&#xff0c;需重启电脑才生效 3. 配置 Ubuntu 的账号密码 打开 Ubuntu 的命令行 按提示&#xff0c;输入账号&#xff0c;密…

AI编程工具使用技巧——通义灵码

活动介绍通义灵码1. 理解通义灵码的基本概念示例代码生成 2. 使用明确的描述示例代码生成 3. 巧妙使用注释示例代码生成 4. 注意迭代与反馈原始代码反馈后生成优化代码 5. 结合生成的代码进行调试示例测试代码 其他功能定期优化生成的代码合作与分享结合其他工具 总结 活动介绍…

C#表达式和运算符

本文我们将学习C#的两个重要知识点&#xff1a;表达式和运算符。本章内容会理论性稍微强些&#xff0c;我们会尽量多举例进行说明。建议大家边阅读边思考&#xff0c;如果还能边实践就更好了。 1. 表达式 说到表达式&#xff0c;大家可能感觉有些陌生&#xff0c;我们先来举个…

在Android 15的设备上关闭edge-to-edge功能

Android 15在开发上有很多更新&#xff0c;当APP的targetSdk设置为35&#xff0c;且设备系统为Android 15时&#xff0c;APP会自动启动edge-to-edge功能。虽然可视面积变大了&#xff0c;但界面布局也会受影响。 如果要强制关闭edge-to-edge功能。可以在style.xml中将windowOp…

pycharm+pyside6+desinger实现查询汉字笔顺GIF动图

一、引言 这学期儿子语文期末考试有一道这样的题目&#xff1a; 这道题答案是B&#xff0c;儿子做错了选了C。我告诉他“车字旁”和“车”的笔顺是不一样的&#xff0c;因为二者有一个笔画是不一样的&#xff0c;“车字旁”下边那笔是“提”&#xff0c;而“车”字是“横”&am…

2018年西部数学奥林匹克几何试题

2018G1 在 △ A B C \triangle ABC △ABC 中, O O O 为外心, M M M 为边 B C BC BC 的中点, 延长 A B AB AB 交 ( A O M ) (AOM) (AOM) 于点 D D D, ( A O M ) (AOM) (AOM) 交 A C AC AC 于点 E E E. 求证: E C D M ECDM ECDM. 证明: 设点 G G G 为 △ A B C …

C++ QT中Q_Q和Q_D是什么?怎么使用?本质是什么?C++仿写

1.QT中Q_Q和Q_D是什么? Q_Q可以得到外部可以访问的类指针Q_D可以得到内部封装,外部不可达的类指针2. 怎么使用? 上代码 APrivate.h#pragma once #include <QtCore>class A;class APrivate {Q_DECLARE_PUBLIC(A) public:APrivate();~APrivate(); public:void APrivate…

宇泰串口卡驱动在Ubuntu22.04编译、安装汇总

从官网下载驱动官网地址 上传到Ubuntu, 目录结构如下&#xff1a; 驱动源代码: 驱动代码是基于开源项目编译来的 编译路径不能有中文路径&#xff0c;否则可能有类似错误 源码是基于Linux2.3内核编译&#xff0c;我当前是6.8.0-51&#xff0c;数据结构有升级&#xff0c;需要调…

linux 双向链表

kimi 输出双向链表 双向链表是&#xff1a;struct {xxx&#xff0c;list node} 每个 node 指向下一个结构体的 node 信息 #include <stdio.h> #include <stdlib.h> #include <string.h>// 定义双向链表节点结构体 struct list_head {struct list_head *nex…

虚拟机win10远程连接断开保持用户登录不锁屏,分辨率不变,截图正常的方法

文章目录 问题描述原因解决方法常见问题 问题描述 1、在执行自动化控制程序脚本时&#xff0c;需要操作句柄SPY、图片识别、截图、控制鼠标键盘。 2、实体机经过设置后可以正常执行&#xff1b;虚拟机保持远程连接时可以正常执行&#xff0c;关闭远程连接后&#xff0c;截图失…

WOA-CNN-GRU-Attention、CNN-GRU-Attention、WOA-CNN-GRU、CNN-GRU四模型对比多变量时序预测

WOA-CNN-GRU-Attention、CNN-GRU-Attention、WOA-CNN-GRU、CNN-GRU四模型对比多变量时序预测 目录 WOA-CNN-GRU-Attention、CNN-GRU-Attention、WOA-CNN-GRU、CNN-GRU四模型对比多变量时序预测预测效果基本介绍程序设计参考资料 预测效果 基本介绍 基于WOA-CNN-GRU-Attention、…

广播网络实验

1 实验内容 1、构建星性拓扑下的广播网络,实现hub各端口的数据广播,验证网络的连通性并测试网络效率 2、构建环形拓扑网络,验证该拓扑下结点广播会产生数据包环路 2 实验流程与结果分析 2.1 实验环境 ubuntu、mininet、xterm、wireshark、iperf 2.2 实验方案与结果分析…

人参t2t基因组-文献精读100

Telomere-to-telomere reference genome for Panax ginseng highlights the evolution of saponin biosynthesis 人参的端粒到端粒参考基因组揭示皂苷生物合成的进化 摘要 人参&#xff08;Panax ginseng&#xff09;是中药的代表性植物之一&#xff0c;并在全球范围内广泛使…

Vue.js组件开发-实现后端返回二进制文件在浏览器自动下载

在Vue.js组件开发中&#xff0c;若需实现从后端获取二进制文件并触发浏览器自动下载&#xff0c;可以利用axios&#xff08;或其他HTTP客户端库&#xff09;来向后端发送请求&#xff0c;随后利用Blob对象及URL.createObjectURL方法生成一个可供下载的链接&#xff0c;最后通过…

深度学习基础--GRU学习笔记(李沐《动手学习深度学习》)

前言 GRU是RNN模型的升级版&#xff0c;也是LSTM的弱化版&#xff0c;学习GRU也是为了学习LSTM做准备&#xff0c;这一篇文章是学习笔记&#xff1b;RNN&#xff1a;RNN讲解参考&#xff1a;李沐动手学习深度学习&#xff1b;欢迎收藏加关注&#xff0c;本人将会持续更新。 文…

异步 HTTP 请求

fetch 是一个用于进行异步 HTTP 请求的 JavaScript API。 fetch 基本用法 // 使用 fetch 进行 GET 请求 fetch(https://api.example.com/data).then(response > {// 检查响应是否成功if (!response.ok) {throw new Error(Network response was not ok);}// 解析响应数据为…

服务器超融合是什么意思?

你有没有听说过超融合架构&#xff1f;为什么最近这么多企业开始关注它&#xff1f;超融合架构正逐渐成为一种热门的解决方案。它不仅改变了传统IT基础设施的构建方式&#xff0c;还为企业提供了更高效、更灵活的资源管理。 超融合&#xff08;Hyper-Converged Infrastructure…

一探究竟:如何高效提取ULL中的当前参数,实现性能与精度的完美平衡

一探究竟&#xff1a;如何高效提取ULL中的当前参数&#xff0c;实现性能与精度的完美平衡 你是否在开发过程中&#xff0c;遇到过那些复杂的、动态变化的URL&#xff1f;每次需要从中提取参数时&#xff0c;你的代码是不是开始变得杂乱无章&#xff0c;难以维护&#xff1f;特…

Vue.js组件开发-如何处理跨域请求

在Vue.js组件开发中&#xff0c;处理跨域请求&#xff08;CORS&#xff0c;即跨来源资源共享&#xff09;通常不是直接在Vue组件中解决的&#xff0c;而是需要后端服务器进行相应的配置&#xff0c;以允许来自不同源的请求。不过&#xff0c;前端开发者也需要了解一些基本的COR…

前端:前端开发任务分解 / 开发清单

一、背景 前端开发过程中&#xff0c;好多任务同时开发&#xff0c;或者一个大的任务分解为若干个子任务进行开发&#xff0c;分解出去的很多内容容易记不清楚 / 不易过程管理&#xff0c;所以记录表格如下&#xff0c;方便开发同事&#xff0c;也辅助掌握整体开发情况。 二、…