2017-03-21 5 views
0

MAC을 사용하여 빌드를 만들 수 없습니다 : 10.10.5Gradle을

자바 : 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는 당신의 목표에 구축하려는 경우 IPA

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

을 구축 할

$ gradle build