我尝试从项目中启动Gradle任务createIpa
,但我有这个错误:
Execution failed for task ':createIpa'.
org.apache.commons.exec.ExecuteException: Command '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -o /Users/wstechsrl/Desktop/workspace_fx/wstech/build/javafxports/tmp/ios/thumbv7/wstech -arch armv7 -Wl,-filelist,/Users/wstechsrl/Desktop/workspace_fx/wstech/build/javafxports/tmp/ios/thumbv7/objects0 -L /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.robovm/robovm-dist/1.8.0/7793b612873829ad0b98f82650b49bfc16b51818/unpacked/robovm-1.8.0/lib/vm/ios/thumbv7 -ObjC -exported_symbols_list /Users/wstechsrl/Desktop/workspace_fx/wstech/build/javafxports/tmp/ios/thumbv7/exported_symbols -Wl,-no_implicit_dylibs -Wl,-dead_strip -fPIC -miphoneos-version-min=5.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk -lrobovm-bc -force_load /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.robovm/robovm-dist/1.8.0/7793b612873829ad0b98f82650b49bfc16b51818/unpacked/robovm-1.8.0/lib/vm/ios/thumbv7/librobovm-rt.a -lrobovm-core -lgc -lpthread -ldl -lm -lz -liconv -lsqlite3 -framework Foundation -framework UIKit -framework OpenGLES -framework QuartzCore -framework CoreGraphics -framework CoreText -framework ImageIO -framework MobileCoreServices -framework CoreMedia -framework AVFoundation -framework AudioToolbox -framework MediaPlayer -force_load /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.7/2cc4c327c402343a26340cb0b9397c7c38a717fb/unpacked/ios-sdk/rt/lib/libglass.a -force_load /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.7/2cc4c327c402343a26340cb0b9397c7c38a717fb/unpacked/ios-sdk/rt/lib/libjavafx_font.a -force_load /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.7/2cc4c327c402343a26340cb0b9397c7c38a717fb/unpacked/ios-sdk/rt/lib/libjavafx_iio.a -force_load /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.7/2cc4c327c402343a26340cb0b9397c7c38a717fb/unpacked/ios-sdk/rt/lib/libjavafx_ios_webnode.a -force_load /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.7/2cc4c327c402343a26340cb0b9397c7c38a717fb/unpacked/ios-sdk/rt/lib/libprism_common.a -force_load /Users/wstechsrl/.gradle/caches/modules-2/files-2.1/org.javafxports/ios-sdk/8.60.7/2cc4c327c402343a26340cb0b9397c7c38a717fb/unpacked/ios-sdk/rt/lib/libprism_es2.a -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks' failed (Exit value: 1)
任何人都可以帮助我?
答案 0 :(得分:0)
它可能与Gradle无关。
在Gradle外部运行相同的命令,看看是否可以重现错误并更详细地查看出错的地方。
答案 1 :(得分:0)
Gluon插件创建一个build.gradle
文件,其中包含一些依赖项。要使iOS 10正常工作,您应该使用最新版本的jfxmobile插件进行更新:
改变这个:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.8'
}
}
到此:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.0.9'
}
}
然后再次启动任务(createIpa
或launchIOSDevice
),它应该可以正常工作。
否则,请提供更多信息,以便我们检查可能存在的问题。