问题描述
我正在尝试从xcodebuild构建可运行的模拟器.编译有效,但通过WaxSim安装后,最终产品将无法在模拟器上运行.如果我通过Xcode GUI进行构建,那么最终产品的安装将不会出现WaxSim的问题.
I'm trying to build a working simulator build from xcodebuild. Compilation works but the final product won't run on the simulator when installed via WaxSim. If I build through the Xcode GUI then the final product installs without issue from WaxSim.
我的问题是,如何查看xcode用于构建有效的模拟器版本的 exact xcodebuild命令行.我只需要将其复制到我的shell脚本中,但是事实证明它是难以捉摸的.我在xcode的构建日志中找到了一个,但是那里没有提及xcodebuild.
My question is, how can I see the exact xcodebuild command line that xcode is using to build a working simulator build. I just need to copy that into my shell script but it's proving elusive. I did a find in the build logs from xcode but there's no mention of xcodebuild there.
推荐答案
您不能. Xcode本身在构建过程中不会调用xcodebuild
. 这篇文章具有执行xcodebuild
为模拟器构建的更多信息.
You can't. Xcode itself doesn't invoke xcodebuild
during the build process. This post has more information on executing xcodebuild
to build for the simulator.
这篇关于如何从xcode显示xcodebuild命令行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!