从命令行确定 Xcode 派生数据位置 [英] Determine Xcode derived data location from command line
问题描述
在使用 xcodebuild 构建后,有没有办法从命令行确定派生数据文件夹的位置?
Is there a way to determine from the command line what the location of your derived data folder is after building with xcodebuild?
例如,在运行 xcodebuild 之后:
For example, after running xcodebuild:
xcodebuild -project projectname -target targetname
我希望能够找出应用程序所在的文件夹.我希望在不使用 CONFIGURATION_BUILD_DIR 或在项目设置中更改输出路径的情况下执行此操作.
I want to be able to find out which folder the app is in. I would like to do this without changing the output path with CONFIGURATION_BUILD_DIR or within the project settings.
有什么想法吗?
推荐答案
xcodebuild -project myapp.xcodeproj -showBuildSettings
打印所有构建设置和值,特别是构建应用程序的文件夹:
prints all build settings and values, in particular the folder where the app is build:
BUILT_PRODUCTS_DIR =/path/to/myapp/DerivedData/myapp/Build/Products/Release
BUILT_PRODUCTS_DIR = /path/to/myapp/DerivedData/myapp/Build/Products/Release
这篇关于从命令行确定 Xcode 派生数据位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!