How to testing Gluon app on iOS Simulator or Real Device? - gluon

The problem is related to my previous question when I try to execute the gluon application on iOS Device/simulator. It seem not working at all. It show me the following error:
launchIPadSimulator: It error Unable to find a matching device [arch=x86_64, family=iPhone, name=null, sdk=null]
Edited
launchIOSDevice : It error No provisioning profile and signing identity found that matches bundle ID
I also checking this question, but It doesn't help me.
So the question is How to make it working?
Noted
I am using macOS Mojave 10.14.3 and Xcode 10.2.1
Build.gradle
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.javafxports:jfxmobile-plugin:1.3.16'
}
}
// Apply the plugin
apply plugin: 'org.javafxports.jfxmobile'
repositories {
jcenter()
maven {
url 'http://nexus.gluonhq.com/nexus/content/repositories/releases'
}
}
mainClassName = 'fr.cashmag.GluonApplication'
ext.GLUON_VERSION="5.0.2"
ext.CHARM_DOWN="3.8.6"
dependencies {
compile "com.gluonhq:charm:$GLUON_VERSION"
compile "com.gluonhq:charm-down-plugin-orientation:$CHARM_DOWN"
}
jfxmobile {
downConfig {
version = '3.8.6'
// Do not edit the line below. Use Gluon Mobile Settings in your project context menu instead
plugins 'display', 'lifecycle', 'orientation', 'statusbar', 'storage'
}
android {
manifest = 'src/android/AndroidManifest.xml'
}
ios {
infoPList = file('src/ios/Default-Info.plist')
forceLinkClasses = [
'com.gluonhq.**.*',
'javax.annotations.**.*',
'javax.inject.**.*',
'javax.json.**.*',
'org.glassfish.json.**.*'
]
}
}

iOS simulator
To solve the issue:
Unable to find a matching device [arch=x86_64, family=iPhone, name=null, sdk=null]
a possible solution is:
Include a gradle.properties file in the root of your project, and add:
robovm.ipaArchs=x86_64
(see documentation for more details).
Run ./gradlew --info createIpa, wait until the task ends. Review that your project contains the app under build/javafxports/ios/*.app.
Open Xcode, go to Xcode -> Open Developer Tool -> Simulator
When an iPhone/iPad device screen shows up, drag from Finder the *.app file. It will then install the app on the sim, and you will be able to run it by tapping on it.
Once the process is working you can revert the property to:
robovm.ipaArchs=arm64:thumbv7
in order to create the app for your device and for the Apple Store.
iOS device
To solve the issue:
No provisioning profile and signing identity found that matches bundle ID
you need to follow these steps, providing you are already enrolled in the Apple Developer program (otherwise you won't be able to distribute your app through the Apple Store):
Go to the Developer portal, go to Certificates, Identifiers & Profiles.
Go to Certificates, and make sure you have created a Development certificate (for testing). Later on you will need a Production certificate for distribution.
Assuming development now, download the certificate and install it (double click).
Go to Identifiers -> App IDs, and create a new app identifier. Provide a name and make sure you provide the exact Bundle ID from your app, the one listed in your Default-Info.plist file under the CFBundleIdentifier key.
Go to Devices and add your testing devices, providing the UDID of these devices (go to iTunes, plug your device, and click on device serial, it will reveal it, and ⌘+C to paste it).
Finally, go to Provisioning Profiles, and add a Development profile (later on you will need a Distribution one). Select iOS App Development, select the App ID you provided before, and when finished, download and install (double click).
Back to your project, you can add this to your build.gradle file:
ios {
...
iosSignIdentity = "iPhone Development: *** (^^^^)"
iosProvisioningProfile = '$$$'
}
Run ./gradlew --info launchIOSDevice, and review the console logging at the end of the process to check that the provisioning profile is used to sign the app.
Note that you will have to use the distribution provisioning profile in the same way to sign the app you will be submitting to the Apple Store.
EDIT
If you are not enrolled in the Developer program, you can also use the free provisioning profile, that will let you test on your own device.
For that, you have to follow these steps:
If you do not have an Apple ID you can use, you can create a new one here.
Open Xcode and go to Xcode -> Preferences -> Accounts
Add your Apple ID
Under Manage Certificates, add one for iOS Development.
Now create a new Xcode project, select a simple template like Single View App.
Make sure you set the exact same bundle identifier as the one on your project.
Connect your device and run the Xcode project. It will install a provisioning profile for that empty app on your device.
Quit Xcode and go back to your project, try to deploy it to the iOS device without setting the iosSignIdentity and iosProvisioningProfile).

Related

Xcode-apple developer account errors

I wanna publish a test flight on i phone that was published a few times before. when I wanna achieve the app's codes on Xcode I get that errors.
Failed to create provisioning profile. There are no devices registered in your account on the developer website. Select a device run destination to have Xcode register it.
No profiles for 'com.OttoTilesDesign.OttoTilesDesignVisualizer--explicit--' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.OttoTilesDesign.OttoTilesDesignVisualizer--explicit--'.
If you want to publish you need an "App Store" provisioning profile connected to the "identifier" in your app.
Use this profile in unity and xcode.
Try to create a new one. I had a similar issue and a reimport solved it.
Be sure that you select "any ios device" in the topline of xcode.
you only need a registered device when you want to deploy for internal/local testing.
if you want to do that, you need to register your devices with the uuid under: https://developer.apple.com/account/resources/devices/list

launch the application on a connected iOS device receive an error

I an receiving the following error when I select launchIOSDevice
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':launchIOSDevice
No provisioning profile found matching signing identity 'iPhone Developer: sunshakir#yahoo.com (Y6W56GXM29)' and app bundle ID 'com.gluonDemoSingle.DemoSingle'
What is the steps need to be taken in Xcode to resolve the problem
I suggest you to use free apple developer account for testing. You have to follow these steps below:
If you do not have an Apple ID you can use, you can create a new one here.
Open Xcode and go to Xcode -> Preferences -> Accounts
Add your Apple ID
Under Manage Certificates, add one for iOS Development.
Now create a new Xcode project, select a simple template like Single View App.
Make sure you set the exact same bundle identifier as the one on your project.
Connect your device and run the Xcode project. It will install a provisioning profile for that empty app on your device.
Quit Xcode and go back to your project, try to deploy it to the iOS device without setting the iosSignIdentity and iosProvisioningProfile).
You can check more detail from my post

React Native. OneSignal. No profiles for 'com.myapp.ios.OneSignalNotificationServiceExtension' were found

I have followed OneSignal's setup instructions for React Native, but
When I try to upload app to TestFlight I get the following error 'No profiles for 'com.myapp.ios.OneSignalNotificationServiceExtension' were found'
My XCode is 10.0.
Anyone help me? Thanks in advance.
Below instructions assume that your app is building and you have successfully deployed TestFlight builds in the past (since that is where I started from). I had to use the below as "Automatically manage signing" resulted in a build fail in Xcode 10:
Go to https://developer.apple.com/account/ios/profile
Click "+' to create a new provisioning profile
Choose the type of provisioning profile you want (I went with App Store since I use TestFlight builds to test)
for App ID choose "XC YOUR_DOMAIN_APP_ID OneSignalNotificationServiceExtension" and make sure enable the App Groups capability
after you have downloaded the provisioning profile, go into Xcode, turn off automatically signing on the OneSignalNotificationServiceExtension target in General tab and import the provisioning profile you just downloaded.
Use Product > Archive as usual to create your ipa file for App Store upload as usual
I'm getting the same error on appcenter. You can temporarily workaround this problem if you create a new provision file for the OneSignalNotificationServiceExtension identifier and sign your OneSignalNotificationServiceExtension with this provision.
(Your app provision should be different. your app -> com.app.example)

Xamarin No installed provisioning profiles match the installed iOS code signing keys

I am trying to run my app locally and not through an emulator.
These are the following things that I have done:
set up the free provisioning profile
"trusted" my iPhone when prompted
Enabled these settings for provisioning profile:
However, I am still getting this error when trying to run the app locally on an iPhone
No installed provisioning profiles match the installed iOS code
signing keys
What else can be done to run my app locally?
Log into the Apple Developer member center and review your certificates. Down to the left you should see the Provisioning Profiles title. Click it and you'll find a list of the profiles you have. Now you need to create one with the same app identifier that your app has in Xamarin (you find it in the Info.plist file).
After that you need to open XCode and download it through Xcode -> Preferences -> Accounts.
Clean, rebuild and debug Xamarin project and try again.
Go to xcode/preference/ account add a apple ID if you don have any...if you have double click in the name ...and look the name appear in iOS Team Provisioning Profile.
Now open in xamarin the info.plist and in Bundle Identifier put this name.
and now should load a provisional profile.

Adding provisioning profiles on iOS with XCode5 in delphi XE5

I have an iOS 7 device that I want to ad-hoc deploy my app using XCode5. How can I put the provisioning profile on the device? - note that I am using delphi XE5 to write the app, not xcode.
The way I have used for other devices and that is listed in the Embarcadero documentation doesn't seem to be applicable for XCode5. In the help I have looked up for XCode5, it seems to suggest that you use the XCode project manager to add the provisioning profiles, and they get bundled up with the project.
However XE5 doesn't use the project manager as far as I am aware, and I am at a loss as to how to get the provisioning profile on the device.
Please let me know one thing , in your Provisioning profile your device is added or not, if your Device is added and you want to create a ad-hoc build and want to install this app in your ios Device then you have to create the ipa file , with IPA , you does not need to add in your Device because through ipa file the provisioning profile automatically add in your Device
How to create a IPA
1) Set the Provisioning Profile in your Xcode --- go to Build Phase -- code signin
if you sucessfully set your Provisioning Profile in your xcode then
2) go to Product --Archive ...with this you have to create the ipa
Sync the IPA in your itunes and install the app in your Device
SECOND WAY TO INSTALL THE IOS APP IN IPHONE,IPAD,IPOD,
however there is also a Simple way to install the IPA
1) if you create the IPA successfully then please open the www.diawi.com
2) Upload the ipa in diawi.com after your IPA is uploading successfully a send button will be appear
so you have to click the send button a Link will be appear ,
3) Open that link in your iphone,ipad, safari browser , with this you have to install your App without Syncing in itunes
Please follow the steps here regarding the provisioning profile:
http://goo.gl/1Knh2t

Resources