[英]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.