繁体   English   中英

如何通过MacBook将gluon移动项目部署到iPhone

[英]How to deploy gluon mobile project to iPhone with MacBook

我们尝试使用免费的Apple开发人员帐户将书面应用程序部署到iOS设备上。 为了部署项目,我们从gradle任务“ ios”开始,但这总是显示很多警告,并且永远不会结束...警告通常包括“ java.awt。*”,而星号代表类名。 但是,我们仅使用JavaFX进行编码,然后再次检查是否使用了awt类……但我们没有。

我们还尝试运行“ launchIPhoneSimulator”和“ launchIOSDevice”,但没有成功。

Java SDK版本为1.8_151,并使用gluon down 3.6.0,charm down版本2.0.1,javafxports:jfxmobile-plugin:1.3.8。

MacBook Pro(2015年初,i7,16 GB RAM)High Sierra结合运行iOS 11.0.3的iPhone 6。

关于我们在做什么错的任何提示吗? 任何帮助表示赞赏:-)

编辑:这是控制台输出:

14:16:29: Executing external task 'ios'...
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:createDefaultIOSLauncher UP-TO-DATE
:compileIosJava UP-TO-DATE
:processIosResources UP-TO-DATE
:iosClasses UP-TO-DATE
:iosExtractNativeLibs UP-TO-DATE
:createIpa
Root pattern javax.annotations.**.* matches no classes
Root pattern javax.inject.**.* matches no classes
Warning: javax.xml.bind.annotation.XmlRootElement is a phantom class!
Warning: java.nio.file.StandardOpenOption is a phantom class!
Warning: java.nio.file.FileSystem is a phantom class!
Warning: java.nio.file.OpenOption is a phantom class!
Warning: java.nio.file.FileSystems is a phantom class!
Warning: com.oracle.jrockit.jfr.TimedEvent is a phantom class!
Warning: com.oracle.jrockit.jfr.EventToken is a phantom class!
Warning: com.oracle.jrockit.jfr.ValueDefinition is a phantom class!
Warning: com.oracle.jrockit.jfr.EventDefinition is a phantom class!
Warning: com.oracle.jrockit.jfr.Producer is a phantom class!
Warning: com.oracle.jrockit.jfr.FlightRecorder is a phantom class!
Warning: sun.nio.ch.DirectBuffer is a phantom class!
Warning: java.util.stream.Stream is a phantom class!
Warning: java.awt.Font is a phantom class!
Warning: java.awt.Graphics2D is a phantom class!
Warning: java.awt.image.BufferedImage is a phantom class!
Warning: java.awt.MultipleGradientPaint$CycleMethod is a phantom class!
Warning: java.awt.geom.AffineTransform is a phantom class!
Warning: java.awt.geom.Path2D is a phantom class!
Warning: java.awt.geom.Rectangle2D$Float is a phantom class!
Warning: java.awt.geom.Ellipse2D is a phantom class!
Warning: java.awt.geom.RoundRectangle2D is a phantom class!
Warning: java.awt.geom.Line2D is a phantom class!
Warning: java.awt.geom.Rectangle2D is a phantom class!
Warning: java.awt.Color is a phantom class!
Warning: java.awt.Paint is a phantom class!
Warning: java.awt.Stroke is a phantom class!
Warning: java.awt.Rectangle is a phantom class!
Warning: java.awt.Shape is a phantom class!
Warning: java.awt.AlphaComposite is a phantom class!
Warning: java.awt.image.SampleModel is a phantom class!
Warning: java.awt.image.DataBufferInt is a phantom class!
Warning: java.awt.image.Raster is a phantom class!
Warning: java.awt.image.SinglePixelPackedSampleModel is a phantom class!
Warning: java.awt.image.WritableRaster is a phantom class!
Warning: java.awt.image.DataBuffer is a phantom class!
Warning: java.awt.GraphicsEnvironment is a phantom class!
Warning: java.awt.geom.Line2D$Float is a phantom class!
Warning: java.awt.MultipleGradientPaint is a phantom class!
Warning: java.awt.geom.Path2D$Float is a phantom class!
Warning: java.awt.BasicStroke is a phantom class!
Warning: java.awt.font.GlyphVector is a phantom class!
Warning: java.awt.LinearGradientPaint is a phantom class!
Warning: java.awt.geom.Point2D$Float is a phantom class!
Warning: java.awt.font.FontRenderContext is a phantom class!
Warning: java.util.concurrent.ConcurrentHashMap$KeySetView is a phantom class!
Warning: java.awt.RenderingHints$Key is a phantom class!
Warning: java.awt.GradientPaint is a phantom class!
Warning: java.awt.geom.Point2D is a phantom class!
Warning: java.awt.RenderingHints is a phantom class!
Warning: java.awt.image.ImageObserver is a phantom class!
Warning: java.awt.geom.NoninvertibleTransformException is a phantom class!
Warning: java.awt.Composite is a phantom class!
Warning: java.awt.Image is a phantom class!
Warning: java.awt.Graphics is a phantom class!
Warning: java.awt.geom.Ellipse2D$Float is a phantom class!
Warning: java.awt.TexturePaint is a phantom class!
Warning: java.awt.geom.RoundRectangle2D$Float is a phantom class!
Warning: java.awt.geom.PathIterator is a phantom class!
Warning: java.awt.PaintContext is a phantom class!
Warning: java.awt.image.ColorModel is a phantom class!
Warning: java.awt.geom.GeneralPath is a phantom class!
Warning: java.awt.image.DataBufferByte is a phantom class!
Warning: java.awt.geom.Point2D$Double is a phantom class!
Warning: java.awt.geom.Area is a phantom class!
Warning: javax.print.attribute.AttributeSet is a phantom class!
Warning: javax.print.PrintService is a phantom class!
Warning: javax.print.DocFlavor is a phantom class!
Warning: javax.print.PrintServiceLookup is a phantom class!
Warning: java.awt.print.PrinterJob is a phantom class!
Warning: javax.print.attribute.PrintRequestAttributeSet is a phantom class!
Warning: javax.print.attribute.standard.SheetCollate is a phantom class!
Warning: javax.print.attribute.standard.Chromaticity is a phantom class!
Warning: javax.print.attribute.standard.OrientationRequested is a phantom class!
Warning: javax.print.attribute.standard.PrinterResolution is a phantom class!
Warning: javax.print.attribute.standard.PrintQuality is a phantom class!
Warning: javax.print.attribute.standard.Media is a phantom class!
Warning: javax.print.attribute.standard.MediaTray is a phantom class!
Warning: javax.print.attribute.standard.MediaSizeName is a phantom class!
Warning: java.awt.print.Pageable is a phantom class!
Warning: java.awt.print.Printable is a phantom class!
Warning: javax.print.attribute.standard.CopiesSupported is a phantom class!
Warning: javax.print.attribute.HashPrintRequestAttributeSet is a phantom class!
Warning: javax.print.attribute.ResolutionSyntax is a phantom class!
Warning: javax.print.attribute.standard.Copies is a phantom class!
Warning: javax.print.attribute.standard.Sides is a phantom class!
Warning: javax.print.attribute.standard.MediaPrintableArea is a phantom class!
Warning: java.awt.print.PageFormat is a phantom class!
Warning: javax.print.attribute.standard.MediaSize is a phantom class!
Warning: javax.print.attribute.standard.PageRanges is a phantom class!
Warning: javax.print.attribute.Attribute is a phantom class!
Warning: javax.print.attribute.Size2DSyntax is a phantom class!
Warning: java.awt.print.PrinterException is a phantom class!
Warning: javax.print.attribute.standard.DialogTypeSelection is a phantom class!
Warning: java.awt.Transparency is a phantom class!
Warning: java.awt.image.DirectColorModel is a phantom class!
Warning: java.awt.print.Paper is a phantom class!
Warning: java.nio.file.FileSystemNotFoundException is a phantom class!

https://pastebin.com/VbEQdXyy

编辑:已解决-如果您确实有相同的问题,请按照以下注释中的步骤操作。

您为什么要向我们隐藏最重要的信息? * s可能会提示出问题所在。 一些JavaFX类在内部使用AWT。 例如打印。 您的代码中是否有类似的内容?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM