4、选择Xcode( Xcode can be downloaded from Apple’s developer website (including older versions of Xcode). Once installed, choosing an Xcode installation is done using the xcode-select tool.)
?
123$ sudo xcode-``select --``switch /Applications/Xcode.app``$ xcode-``select -print-path``/Applications/Xcode.app/Contents/Developer 5、 The xcrun command can then be used to find a particular tool in the toolchain. or show the platform SDK path used when building.
?
12$ xcrun -sdk macosx -find clang``/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang ?
12$ xcrun -sdk macosx --show-sdk-path``/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk 6、生成 xcode 工程
?
1make -spec macx-xcode happy_qt.pro 大概在必要转换的Qt工程地点目录下执行,参考:
?
1qmake -spec macx-xcode happy_qt.pro 7、打包
debug的时间,qt并没有把动态库copy到.app的Frameworks下面,以是我们只能在本地运行这个app.放到其他电脑就无法找到qt对应的lib. qt提供了一个打包的命令行工具/usr/local/Cellar/qt@5/5.14.2/bin/macdeployqt
?
12//cd到app的路径``$ /usr/local/Cellar/qt@5/5.14.2/bin/macdeployqt xxx.app -dmg 8、其他脚本参考
8.1、使用Xcode打开脚本 自我先容一下,小编13年上海交大结业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到如今。 深知大多数Go语言工程师,想要提升技能,往往是自己摸索成长大概是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易遇到天花板技能故步自封! 因此网络整理了一份《2024年Go语言全套学习资料》,初志也很简单,就是盼望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。