简体   繁体   English

Gradle Xcode插件-xcodebuild任务失败

[英]Gradle Xcode Plugin - xcodebuild task fails

I've started experimenting with the Openbakery Gradle Xcode Plugin and I've added this build.gradle file to my iOS Cocoa Touch Framework project: 我已经开始尝试使用Openbakery Gradle Xcode插件 ,并将此build.gradle文件添加到我的iOS Cocoa Touch Framework项目中:

plugins {
    id "org.openbakery.xcode-plugin" version "0.11.4"
}

xcodebuild {
    target = 'RetailSDK'
}

If I run the build Gradle task or the xcodebuild Gradle task, the xcodebuild step fails with output as follows: 如果我运行build Gradle任务或xcodebuild Gradle任务,则xcodebuild步骤失败,输出如下:

:iOS:cocoapods
:iOS:xcodebuildConfig
:iOS:infoplistModify
Updating /Users/AdilHussain/Work/client-sdk/iOS/RetailSDK/Info.plist
Nothing was modifed!
:iOS:keychainClean
:iOS:keychainCreate SKIPPED
:iOS:provisioningClean
:iOS:provisioningInstall SKIPPED
:iOS:xcodebuild
xcodebuild: error: The flag -scheme is required when specifying -derivedDataPath.

Done
:iOS:keychainRemove

BUILD SUCCESSFUL

The build folder in my iOS Framework project following the build contains no RetailSDK.framework output; build后我的iOS Framework项目中的build文件夹不包含RetailSDK.framework输出; only a project.plist file and an xcodebuild-output.txt file with the same error message as what is printed in the terminal, ie 仅有一个project.plist文件和一个xcodebuild-output.txt文件,其错误消息与终端上打印的消息相同,即

xcodebuild: error: The flag -scheme is required when specifying -derivedDataPath.

Interestingly enough, this error message is also visible at the bottom of this Getting Started document. 有趣的是,此错误消息在入门文档的底部也可见。

So, question is: is it possible to build an iOS Cocoa Touch Framework project using this plugin and, if so, how? 因此,问题是:是否可以使用此插件构建iOS Cocoa Touch Framework项目?

Yes it should be possible to build a framework using the gradle plugin. 是的,应该可以使用gradle插件构建框架。

In your project the scheme setting is missing. 在您的项目中,方案设置丢失。

eg 例如

xcodebuild {
   target = 'mytarget'
   scheme = 'myscheme'
}

You find several examples in the examples folder here: https://github.com/openbakery/gradle-xcodePlugin 您可以在以下示例文件夹中找到几个示例: https : //github.com/openbakery/gradle-xcodePlugin

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Xcode 7.2使用xcodebuild构建项目失败 - Building project using xcodebuild fails with Xcode 7.2 xcodebuild存档失败,xcode存档成功 - xcodebuild archive fails, xcode archive succeeds xcodebuild 构建命令在 Xcode 11.5 中失败 - xcodebuild build command fails in Xcode 11.5 xcodebuild 构建命令在 Xcode 11.4 中失败,但在 Xcode 11.3 中失败 - xcodebuild build command fails in Xcode 11.4 but not in Xcode 11.3 Xcode 10 归档失败 - 仅在命令行 (xcodebuild) - Xcode 10 archiving fails - only on command line (xcodebuild) 由于升级到Xcode 6.1,xcodebuild命令无法为设备构建 - xcodebuild command fails building for device since upgrade to Xcode 6.1 Xcode和xcodebuild上的不同行为 - Different behavior on Xcode and xcodebuild Xcode UI 测试:xcodebuild 无法在 xcode12 上生成 Coverage.profdata,失败并出现错误“错误:无法合并配置文件”。 - Xcode UI Tests : xcodebuild fails to generate Coverage.profdata on xcode12, fails with error 'error: No profiles could be merged.' 使用 Xcode 构建 iOS 应用程序有效,但使用 xcodebuild 命令构建相同的应用程序失败 - Building iOS app using Xcode works, but building the same app with xcodebuild command fails iOS项目无法在xcodebuild下针对部署目标7.0进行编译,但对于6.0而言是可以的。 在Xcode下都编译 - iOS project fails to compile under xcodebuild for deployment target 7.0, but is fine for 6.0. Compiles for both under Xcode
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM