ios - 用于通过终端进行分析的 Xcode 构建

标签 ios xcode macos unreal-engine4

我正在尝试通过终端构建我的 XCode 项目。我想使用 Xcode 的 Product > Build for > Profiling 选项。到目前为止我已经:

xcodebuild -project "MyGame.xcodeproj" -target "MyGameEditor - Mac" -destination 'name=My Mac 64-bit' -configuration Profile

项目会构建,但不会进行分析。我收到配置“配置文件”不存在的错误。

感谢任何帮助。

最佳答案

您尝试使用 -configuration 进行 sepcify 的是构建配置,而不是构建操作。除非您向项目添加了额外的配置,否则您只有“调试”和“发布”配置。

当您告诉 Xcode 进行分析时,它会构建您的方案指定在分析时使用的配置、启动模拟器、安装应用程序,然后启动 Instruments。

所以你需要用两个命令行调用来做类似的事情,一个调用 xcodebuild,一个调用 instruments。

一些有用的链接可以帮助您弄清楚您需要做什么:

http://blog.manbolo.com/2013/04/09/launching-uiautomation-tests-in-command-line

Can the UI Automation instrument be run from the command line?

同样值得注意的是,与其指定目标和配置,不如指定一个提供这两种功能和其他可选附加功能的方案。

关于ios - 用于通过终端进行分析的 Xcode 构建,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24125707/

相关文章:

php - 无法在 Mac 上连接到 MySQL——缺少 mysql.sock 文件

objective-c - Objective-C : Scrolling multiple XIB

ios - Flutter Xcode 构建失败 - 'TARGET_OS_WATCHOS' 未定义,计算结果为 0

ios - 无法连接 Storyboard Unwind Segue

python - 如何在 Mac 操作系统的 Rodeo GUI 中安装 xgboost?

swift - 如何在 Playgrounds 中将 VC 设置为 Liveview?

ios - UIButton 内的 UIImageView 有默认填充 - 如何删除?

ios - iOS 中的收据验证在沙盒测试期间返回不正确的信息

ios - 尝试存档项目时 Xcode 出错 : Unexpected duplicate tasks

ios - 使用 Xcode 的 "New Build System"写入构建目录 info.plist