leomiro Valued Contributor.
Valued Contributor.
1640 views

Can't connect iOS device on MC - signed agents not working

Jump to solution

I have the following infrastructure:

Mobile Center 2.53
Windows 7 64-bit
iPhone 5 - iOS 10.3.3
MAC High Sierra 10.13.1 - xCode: 9.2

In order to connect the iPhone to the MC server I picked up the ipa agents in agent folder and use a MAC with the provision profiles and a available iPhone developer certificate to sign the agents with the GUI of HPMC Enabler 2.53.
After signing the 4 agent ipas I took them and relocate them on the Windows server, restart Mobile Center and pluged the iPhone.

Nothing happened so I checked the logs and I find the following lines:

[2017-12-27 11:24:36,901] [2e6a54e2-f965-40f2-ae23-a24c78574a87] [] [] [426551d51fe173ae48fc5880062ec2ac5f273b7a] [] [] [] [IosTaskManager#19] [INFO] [c.h.m.c.p.i.ProvisioningDevicesParser] did not detect new agent, no need to reparse mobileprovision for udid detection (CLS=c.h.m.c.p.i.ProvisioningDevicesParser)
[2017-12-27 11:24:37,821] [2e6a54e2-f965-40f2-ae23-a24c78574a87] [] [] [426551d51fe173ae48fc5880062ec2ac5f273b7a] [] [] [] [IosTaskManager#19] [INFO] [HPMC-iOS] parse the application C:\Program Files\HPE Mobile Center Server\server\Agent\HPMC-AgentLauncher.ipa in order to get the version (CLS=c.h.m.c.p.i.c.InstallAppCommand)
[2017-12-27 11:24:37,961] [2e6a54e2-f965-40f2-ae23-a24c78574a87] [] [] [426551d51fe173ae48fc5880062ec2ac5f273b7a] [] [] [] [IosTaskManager#19] [INFO] [HPMC-iOS] start InstallAppCommand 426551d51fe173ae48fc5880062ec2ac5f273b7a,C:\Program Files\HPE Mobile Center Server\server\Agent\HPMC-AgentLauncher.ipa (CLS=c.h.m.c.p.i.c.InstallAppCommand)
[2017-12-27 11:24:40,317] [2e6a54e2-f965-40f2-ae23-a24c78574a87] [] [] [426551d51fe173ae48fc5880062ec2ac5f273b7a] [] [] [] [IosTaskManager#19] [ERROR] [HPMC-iOS] exit code for install app was: 128 (CLS=c.h.m.c.p.i.c.InstallAppCommand)
[2017-12-27 11:24:40,317] [2e6a54e2-f965-40f2-ae23-a24c78574a87] [] [] [426551d51fe173ae48fc5880062ec2ac5f273b7a] [] [] [] [IosTaskManager#19] [ERROR] [HPMC-iOS] the InstallAppCommand failed with output: [Copying 'C:\Program Files\HPE Mobile Center Server\server\Agent\HPMC-AgentLauncher.ipa' to device... DONE., Installing 'com.hp.alm.HPMC-AgentL', Install: CreatingStagingDirectory (5%), , Install: ExtractingPackage (15%), , Install: InspectingPackage (20%), , Install: TakingInstallLock (20%), , Install: PreflightingApplication (30%), , Install: InstallingEmbeddedProfile (30%), , Install: VerifyingApplication (40%)] (CLS=c.h.m.c.p.i.c.InstallAppCommand)
[2017-12-27 11:24:40,317] [2e6a54e2-f965-40f2-ae23-a24c78574a87] [] [] [426551d51fe173ae48fc5880062ec2ac5f273b7a] [] [] [] [IosTaskManager#19] [ERROR] [c.h.m.c.p.iphone.AgentAppsInstaller] was not able to install developer agent, fallback to enterprise agent ( inApp mode ) (CLS=c.h.m.c.p.iphone.AgentAppsInstaller)
java.lang.Exception: error while executing command: ideviceinstaller -u 426551d51fe173ae48fc5880062ec2ac5f273b7a -i "C:\Program Files\HPE Mobile Center Server\server\Agent\HPMC-AgentLauncher.ipa". with error message:[Copying 'C:\Program Files\HPE Mobile Center Server\server\Agent\HPMC-AgentLauncher.ipa' to device... DONE., Installing 'com.hp.alm.HPMC-AgentL', Install: CreatingStagingDirectory (5%), , Install: ExtractingPackage (15%), , Install: InspectingPackage (20%), , Install: TakingInstallLock (20%), , Install: PreflightingApplication (30%), , Install: InstallingEmbeddedProfile (30%), , Install: VerifyingApplication (40%)]
at com.hp.mobile.connector.provider.iphone.commands.InstallAppCommand.executeInstallApplication(InstallAppCommand.java:59)
at com.hp.mobile.connector.provider.iphone.AgentAppsInstaller.installLauncher(AgentAppsInstaller.java:61)
at com.hp.mobile.connector.provider.iphone.AgentAppsInstaller.tryToInstallDeveloperAgent(AgentAppsInstaller.java:68)
at com.hp.mobile.connector.provider.iphone.AgentAppsInstaller.installAgent(AgentAppsInstaller.java:80)
at com.hp.mobile.connector.provider.iphone.DeviceConnectedFlowProcessor.internalStartFlow(DeviceConnectedFlowProcessor.java:154)
at com.hp.mobile.connector.provider.iphone.DeviceConnectedFlowProcessor.startFlow(DeviceConnectedFlowProcessor.java:98)
at com.hp.mobile.connector.provider.iphone.DeviceConnectedHandler.prepareDevice(DeviceConnectedHandler.java:66)
at com.hp.mobile.connector.provider.iphone.DeviceConnectedHandler$1.run(DeviceConnectedHandler.java:50)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at com.hpe.mobile.context.ContextAwareRunnable.run(ContextAwareRunnable.java:54)
at com.hpe.mobile.context.ContextAwareRunnable.run(ContextAwareRunnable.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


I took a clean log that I'm uploading (connector.log inside connector.zip)
There is no signs of logs referred to the agents in the iPhone, so I guess that the agents could'nt reach the device.

If you could help me with this issue, please let me know.

Regards

0 Likes
1 Solution

Accepted Solutions
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Can't connect iOS device on MC - signed agents not working

Jump to solution

Hi,

From the log, the Agent is failing on Verficiation stage: Install: VerifyingApplication (40%)].

This usually indicates that Agent was not properly signed (Device UDID is not included in provisioning profile, non-wildcard for app was not used, certificate is incorrect, etc.).

Please reiterate again on signing process: https://admhelp.microfocus.com/mobilecenter/en/latest/Content/flow_connect_devices.htm 

0 Likes
5 Replies
ngregori Frequent Contributor.
Frequent Contributor.

Re: Can't connect iOS device on MC - signed agents not working

Jump to solution

Hi,

Can you launch following command :

C:\Program Files\HPE Mobile Center Connector\connector\libimobiledevice\windows-amd64\idevice_id -l

and verify if udid of device appears in list ?

If device is available, laucnh command :

C:\Program Files\HPE Mobile Center Connector\connector\libimobiledevice\windows-amd64\idevicesyslog -u <udid>

and verify logs in device.

Hope it helps.

 

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Can't connect iOS device on MC - signed agents not working

Jump to solution

Hi,

From the log, the Agent is failing on Verficiation stage: Install: VerifyingApplication (40%)].

This usually indicates that Agent was not properly signed (Device UDID is not included in provisioning profile, non-wildcard for app was not used, certificate is incorrect, etc.).

Please reiterate again on signing process: https://admhelp.microfocus.com/mobilecenter/en/latest/Content/flow_connect_devices.htm 

0 Likes
leomiro Valued Contributor.
Valued Contributor.

Re: Can't connect iOS device on MC - signed agents not working

Jump to solution

Hi: as evgenyk said, the problem was the signing process.

 

I had to pass the agent ipas to the Microfocus service, they re-signed with an universal certificate and after that I suceeded in deploy the signed agents in my Mobile Center server instance.

 

Thanks for your help

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Can't connect iOS device on MC - signed agents not working

Jump to solution

I need to remind that you can use the resigned agent files from us as a workaround but should pursue to resolve the issue with the signing process on your end, we are mainteining the UDIDs in the provisioning profile regularly and deleting customer UDIDs from the provisioning profile.

0 Likes
Member.. UFTUser75
Member..

Re: Can't connect iOS device on MC - signed agents not working

Jump to solution

Hi I have also followed the re-sign process instructions and the agent is installed succesfully on the devices. But the agent does not launch when I connect the devices.

MC version: 2.60.

Connector: windows 10

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.