2017-03-21 2 views
0

MACを使用してビルドを作成することができません:10.10.5のGradle

のJava:7

のGradle: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'の設定中に問題が発生しました。私はバージョン0.11.4を使用している場合

Could not resolve all files for configuration ':classpath'. Could not download guava.jar (com.google.guava:guava:16.0.1) Could not get resource ' https://plugins.gradle.org/m2/com/google/guava/guava/16.0.1/guava-16.0.1.jar '. Could not HEAD ' https://plugins.gradle.org/m2/com/google/guava/guava/16.0.1/guava-16.0.1.jar '. Received status code 522 from server: Origin Connection Time-out

は、しかし、私は得る:

エラー: ':xcodebuild' 実行がタスクに失敗しました。

No service of type StyledTextOutputFactory available in ProjectScopeServices.

答えて

1
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   
} 

コマンドuはちょうどあなたの標的に対して

$ gradle build 
を構築したい場合はIPA

$ gradle xcodebuild -q makebuild -q archive -Pipa=Test-QA --info 

を構築します