Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法从命令行确定使用 xcodebuild 构建后派生数据文件夹的位置?
例如,运行 xcodebuild 后:
xcodebuild -project projectname -target targetname
我希望能够找出应用程序所在的文件夹。我想在不使用 CONFIGURATION_BUILD_DIR 或在项目设置中更改输出路径的情况下执行此操作。
有任何想法吗?
xcodebuild -project myapp.xcodeproj -showBuildSettings
打印所有构建设置和值,特别是构建应用程序的文件夹:
BUILT_PRODUCTS_DIR = /path/to/myapp/DerivedData/myapp/Build/Products/Release