Qt iOS project 之 macOS Monterey

11 篇文章 0 订阅

1.Xcode12及以前版本,app 不能上架 app store。

2. 升级Xcode12 到 Xcode13,先升级 macOS 至少 maocOS 11(Big Sur),一次到位直接升级到 macOS 13(Monterey),跟不啊, macOS 14 已经预览版了,苹果公司就折腾人,旧用它的东西必须用最新的, 旧的就限制您。

3.黑苹果升级 macOS Monterey, ThinkPad T430升级九死一生,花了三天时间,勉强能用,升级过程另说。实践证明目前T430 黑苹果不适合 macOS Monterey(moacOS 12),显卡没驱动,很卡,导致很多问题。

4.macOS Monterey,Xcode 准备好了,开始重新编译Qt, 每次升级都有新问题:error: The Legacy Build System will be removed in a future release. You can configure the selected build system and this deprecation message in File > Project Settings.解决方案,参考(xcode - Qt 5.12 for iOS: build system - Stack Overflow),找到Qt sdk 路径 -> ios/mkspecs/macx-xcode/WorkspaceSettings.xcsettings,删除文件中如下2行

<key>BuildSystemType</key>
    <string>Original</string>

5.unable to attach DB: error: accessing build database "/your/xcode/project/path/.object/XCBuildData/build.db": database is locked Possibly there are two concurrent builds running in the same filesystem location。macOS 12(Monterey) 降级到 macOS 11(Big Sur),自动消失,可能跟Xcode 13也有关。

6. Qt 项目中用到了 python 脚本,添加第三方 Framework, macOS Monterey 不再自带 python,而是python3,所以原来python 2的脚本运行不起来,手动安装python2.7(https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg),找到安装路径添加到QtCreater -> Project -> Add Build Step -> Custom Proccess Step -> Command(/Library/Frameworks/Python.framework/Version/2.7/bin/python)

7.clang: error: no such file or directory: 'u00810u00898',Qt pro file 文件误输入乱码引起,自己把自己给坑了,白白浪费了一个周未!

8.macOS 系统已经降级到 macOS 11(Big Sur)

9.macOS 装旧版本Xcode,App store 只有旧版本可以下载,所以只能下载找旧版(Apple 官网下载安全,Sign In - Apple), xip 文件,注意两点,一、留足空间,然不后会解压到最后一直不去也不报错,本小白在 mocOS Big Sur, 只能下载 Xcode 12.1(10G), 留了30多G 的空间,解压到最后不成功;二、直接解压会在当前目录生成Xcode App,相当于 windows 的绿色软件,所以提前安排好解压路径,最好的放在Xcode的默认路径(/System/Application),减少往后开发中各种奇怪问题

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值