2016-07-22 27 views
0

當在命令行建設我libGDX遊戲的iOS,使用./gradlew ios:createIPA,我有時會收到以下錯誤:IOS:createIPA gradle這個任務失敗,錯誤在HfsCompressor.compressNative

... 
:ios_lite:createIPA 
RoboVM has detected that you are running on a slow HDD. Please consider mounting a RAM disk. 
To create a 2GB RAM disk, run this in your terminal: 
SIZE=2048 ; diskutil erasevolume HFS+ 'RoboVM RAM Disk' `hdiutil attach -nomount ram://$((SIZE * 2048))` 
See http://docs.robovm.com/ for more info 
RoboVM has detected that you are running on a slow HDD. Please consider mounting a RAM disk. 
To create a 2GB RAM disk, run this in your terminal: 
SIZE=2048 ; diskutil erasevolume HFS+ 'RoboVM RAM Disk' `hdiutil attach -nomount ram://$((SIZE * 2048))` 
See http://docs.robovm.com/ for more info 
:ios_lite:createIPA FAILED 

FAILURE: Build failed with an exception. 

* What went wrong: 
Execution failed for task ':ios_lite:createIPA'. 
> org.robovm.compiler.util.io.HfsCompressor.compressNative(Ljava/lang/String;[BI)Z 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

--info--debug提供更多輸出,但沒有更多有用的信息,並且--stacktrace只顯示了Gradle中的內部堆棧跟蹤。

使用Gradle 2.2,OS X 10.11.5,JVM 1.8.0_74,RoboVM 1.12.0。

是什麼導致了這個錯誤,我該如何解決?

回答

0

我仍然不知道是什麼導致它(在這方面更好的答案),但我找到了一個解決方法:重新啓動Gradle守護進程。大樓前,只需運行:

$ ./gradlew --stop 

守護程序會自動重新啓動下一個版本。到目前爲止,這種解決方法已經可靠地解決了我的錯誤。

相關問題