MAC:10.10.5
爪哇 : 7
等级:3.4.1
创建了一个包含以下内容的 build.gradle 文件
plugins {
id "org.openbakery.xcode-plugin" version "0.14.5"
}
xcodebuild {
target = 'Hello-Gradle'
scheme = 'Debug'
}
在终端我运行
gradle xcodebuild
错误:
配置根项目“Hello-Gradle”时出现问题。
无法解析配置': classpath'的所有文件。无法下载guava.jar(com.google.guava:guava:16.0.1)无法获取资源'https://plugins.gradle.org/m2/com/google/guava/guava/16.0.1/guava-16.0.1.jar'。无法HEAD'https://plugins.gradle.org/m2/com/google/guava/guava/16.0.1/guava-16.0.1.jar'。从服务器收到状态代码522:源连接超时
但是,如果我使用版本 0.11.4,我会得到:
错误:任务“: xcodebuild”执行失败。
ProjectScopeServices 中没有 StyledTextOutputFactory 类型的服务。
plugins {
id "org.openbakery.xcode-plugin" version "0.14.5"
}
xcodebuild {
target = 'Hello-Gradle'
/* If need to differentiate between iOS and android */
type = 'IOS'
/* Set ipa file name*/
ipaFileName = ipaName
/* if u wish to create archive its necessary to set simulator as FALSE coz for archive we need DEVICE*/
simulator = false
}
构建IPA的命令
$ gradle xcodebuild -q makebuild -q archive -Pipa=Test-QA --info
如果你只是想对抗你的目标
$ gradle build