xcode Xcodebuild 存档位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13421500/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:07:14  来源:igfitidea点击:

Xcodebuild Archive Location

iosxcodecommand-linearchivexcodebuild

提问by averageUsername123

I'm currently trying to build an .xcarchive using this command line:

我目前正在尝试使用以下命令行构建 .xcarchive:

xcodebuild -project onething.xcodeproj -target onething archive

This places the .xcarchive within a hard to find file location, so I was wondering if there's a configuration to be able to set the file location for the archive?

这会将 .xcarchive 放在一个难以找到的文件位置,所以我想知道是否有能够为存档设置文件位置的配置?

回答by Mihriban Minaz

xcode->preferences->locations->archieves

xcode->首选项->位置->档案

archieve change

归档变更

回答by atreat

xcodebuild now takes an -archivePathargument. Use this to explicitly define where the archive will be output. Note that if this is used Organizer will not be able to find the file.

xcodebuild 现在接受一个-archivePath参数。使用它来明确定义存档的输出位置。请注意,如果使用它,管理器将无法找到该文件。

xcodebuild man page

xcodebuild 手册页

回答by Rajan Govekar

Xcode open Project and go to Build setting , find enable Bitcode , by default its is YES make it is as NO and save

Xcode 打开 Project 并转到 Build setting ,找到 enable Bitcode ,默认为 YES 使其为 NO 并保存

also check in build.json packageType match with Apple id Certificate i.e. Development

还要检查 build.json packageType 与 Apple id 证书相匹配,即开发