我正在尝试使用Oracle JDK 10.2在iOS上使用GluonVM。 我注意到,尽管我在 src / ios / Default-Info.plist 中具有“ com.javasuns.test”,但是当我运行” ./ gradlew launchIOSDevice” 命令时,捆绑包ID取自 build.gradle 中定义的 mainClassName 。
这是我的例子:
默认信息.plist
<key>CFBundleIdentifier</key>
<string>com.javasuns.test</string>
build.gradle
dependencies {
compile 'com.gluonhq:charm:5.0.2'
}
mainClassName = 'test.TestFX'
fxmobile {
javafxportsVersion = '8.60.12'
ios { ...... }
}
./ gradlew launchIOSDevice
com.gluonhq.higgs.Higgs: non-fatal issue for class javafx.scene.web.JSObjectIosImpl (no known superclass)
command to dsymutil: xcrun dsymutil -o /Volumes/MyApps/testFX/build/gvm/testFX.app.dSYM /Volumes/MyApps/testFX/build/gvm/testFX.app/testFX
Error getting ProvisioninedDevices, ignore
created
created
created
created
Error getting ProvisioninedDevices, ignore
created
provprofile asked, bid = test.TestFX and origbid = test.TestFX
provprofile asked, bid = test.* and origbid = test.TestFX
provprofile asked, bid = * and origbid = test.TestFX
No provisioning profile found matching signing identity 'iPhone Developer: #NAME#' and app bundle ID 'test.TestFX'
will return PP null
No provisioning profile found matching signing identity 'iPhone Developer: #NAME#' and app bundle ID 'test.TestFX'
will return PP null
No provisioning profile found matching signing identity 'iPhone Developer: #NAME#' and app bundle ID 'test.TestFX'
will return PP null
Warning, getProvisioningProfile is failing
java.lang.NullPointerException
我设法通过在“ com.javasuns” 包下创建一个名为“ test.java ”的新Java主类来解决该问题(忽略了Java类型名称通常以大写字母开头)。
build.gradle(已更改)
mainClassName = 'com.javasuns.test'
但是,现在出现一个新的错误,我不知道如何解决:
13:17:45:491] BosonAppSupport: Validating codesign...
[SUB] /Volumes/MyApps/testFX/build/gvm/testFX.app: valid on disk
[SUB] /Volumes/MyApps/testFX/build/gvm/testFX.app: satisfies its Designated Requirement
[13:17:46:269] BosonAppSupport: Validation codesign result: true
[13:17:46:270] BosonAppSupport: Codesign done
[13:17:46:333] BosonAppBuilder: UploadInternal start
[13:17:51:041] : Upload Progress: 10%
[13:17:51:573] : Upload Progress: 20%
[13:17:52:104] : Upload Progress: 30%
[13:17:52:916] : Upload Progress: 40%
[13:17:53:947] : Upload Progress: 50%
[13:17:54:696] : Upload Progress: 60%
[13:17:55:520] : Upload Progress: 70%
[13:17:56:372] : Upload Progress: 80%
[13:17:57:367] : Upload Progress: 90%
[13:17:58:414] : Upload Progress: 100%
[13:17:58:460] BosonAppBuilder: uploadInternal done
[13:17:58:796] : Progress: CreatingStagingDirectory [5%]
[13:17:58:798] : Progress: ExtractingPackage [15%]
[13:17:58:799] : Progress: InspectingPackage [20%]
[13:17:58:802] : Progress: TakingInstallLock [20%]
[13:17:58:804] : Progress: PreflightingApplication [30%]
[13:17:58:805] : Progress: InstallingEmbeddedProfile [30%]
[13:17:58:812] : Progress: VerifyingApplication [40%]
[13:17:58:954] : Error: APIInternalError, Description: Failed to unhide archs in executable file:///private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.LXITKr/extracted/testFX.app/TestApp
> Task :launchIOSDevice
[13:17:58:955] BosonAppBuilder: Installing finished due to an error.
[13:17:58:958] BosonAppBuilder: Install internal failed
[13:17:58:958] BosonAppBuilder: Something went wrong. App wasn't installed on the device
关于如何解决这两个问题的任何想法?
答案 0 :(得分:0)
您必须正确设置两个主键:CFBundleIdentifier
和CFBundleExecutable
。
您可以检查示例SingleView-GluonVM:
com.gluonhq.samples.singleviewgvm.SingleViewWithGluonVM
com.gluonhq.samples.singleviewgvm.SingleViewWithGluonVM
和
singleview-gluonvmApp
singleview-gluonvmApp
或具有相似设置的示例DeepLearning-LinearClassifier。
如您所见,Gluon IDE插件默认将CFBundleIdentifier
设置为主类名称,将CFBundleExecutable
设置为您的移动项目的名称。
CFBundleIdentifier
当您要将应用程序部署到iOS时,置备配置文件应具有此捆绑包ID。但是,您也可以使用通配符。只需确保已将扩展名为/Users/<user>/Library/MobileDevice/Provisioning Profiles
的配置概要文件(应位于.mobileprovision
下)下载并安装到计算机上即可。
如果您预览它(例如从Finder),则该文件中的AppID可能类似于<TEAM ID>.<mainClassName>
或<TEAM ID>.*
。
This是jfxmobile插件设置appId
的位置。
CFBundleExecutable
关于CFBundleExecutable
,这是您在build/gvm/
下的应用程序的名称。在这种情况下,必须使用项目名称(如gradle名称一样)。
This是jfxmobile插件设置appName
的位置。
您将在/<appName>/build/gvm/<appName>.app
下找到您的应用(尽管Finder仅显示<appName>
:
如果您看到应用程序的内容,则会在/<appName>/build/gvm/<appName>.app/<appName>
下找到可执行文件:
您遇到的错误;
[13:17:58:954]:错误:APIInternalError,描述:无法取消隐藏可执行文件:////private/var/installd/Library/Caches/com.apple.mobile.installd.staging/中的拱门temp.LXITKr / extracted / testFX.app / TestApp
显示testFX.app/TestApp
,所以您的项目名称可能是testFX
,但应该是TestApp
?
或者,您可以通过将CFBundleExecutable
文件添加到项目中来简单地匹配在settings.gradle
中设置的值,
rootProject.name = "<your bundle executable value>"