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。
是什麼導致了這個錯誤,我該如何解決?