(bug)MATLAB Support Package for Apple iOS Sensors could't work?

When I install "MATLAB Support Package for Apple iOS Sensors" successfully,then input in command line:
m = mobiledev
Failure to load the device plug-in.
I have tried other similar commands such as "mobiledevlist", which gives the same error. I'm looking forward to the official fix to solve the problem in time!
MATLAB 2024a,windows 10 22H2

11 Comments

thanks very much, this link works for me.
When I first encountered this error, I successfully resolved the issue by adding "C:\Program Files\MATLAB\R2024a\bin\win64" to the system environment variable directory, as suggested in the answer. However, after uninstalling the "MATLAB Support Package for Apple iOS Sensors" and reinstalling it, the same error occurred again. Even after re-adding the environment variable, logging in with the same account on both mobile and PC, and enabling all the necessary flags, the error persists!
Unfortunately, Mathworks technical support was also unable to resolve my issue. Currently, I have found a viable workaround:
  1. Use MATLAB Online.
  2. Utilize the desktop version of MATLAB R2023b or earlier.
Could you share what MATLAB version and "MATLAB support package for Apple iOS sensors" version you had? We tried with 2024a update 6 + MATLAB support package for Apple iOS sensors 24.1.3, it should solve the issue. We did put a fix to address this "Failure to load the device plug-in" issue and it was released during July. Thanks!
Android Phone: Huawei HONOR Play4T Pro, HarmonyOS Version: 3.0.0, Model Name: AQM-AL10
Apple Phone: iPhone - iPhoneSE
MATLAB 2024b prerelease version, Windows 10 22H2
Plugin Version: Android and iOS both 24.2.0
Previously, I was using R2024a and didn't pay attention to the specific update number. Later, I directly upgraded to the R2024b prerelease version, but it still doesn't work.
Thank you for your reply!
MATLAB 2024b release is out. Could you try install 2024b with latest MATLAB support package 24.2.0? Hope it solved the issue.
Fortunately, the R2024b official version is fine.
R2025a ,warning,error:
In
Warning: Error occurred while executing the listener callback for event Custom defined for class matlabshared.asyncio.internal.Channel:
Error using mobilesensor.internal.MobileDevController/setSensorState
Unexpected exception in plug-in: 'Http CONNECT failed: Could not connect to server. Failed to connect to 127.0.0.1 port 7890 after 2024 ms: Could not connect to server. (CURLcode=7)..'
Error in mobilesensor.internal.MobileDevController>@(varargin)obj.setSensorState(varargin{:})
Error in mobilesensor.internal.MobileDevController/handleControlMessage
Error in mobilesensor.internal.MobileDevController/handlePubSubResponse
Error in mobilesensor.internal.MobileDevController>@(varargin)obj.handlePubSubResponse(varargin{:})
Error in mobilesensor.internal.PubSubClient/handleCustomEvent
Error in mobilesensor.internal.PubSubClient>@(varargin)obj.handleCustomEvent(varargin{:})
notify(obj, 'Custom', matlabshared.asyncio.internal.CustomEventInfo(type,data));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in
@(source, data) objWeakRef.Handle.onCustomEvent(data.Type, data.Data));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In
Warning: Error occurred while executing the listener callback for event Custom defined for class matlabshared.asyncio.internal.Channel:
Error using mobilesensor.internal.MobileDevController/setSensorState
Unexpected exception in plug-in: 'Http CONNECT failed: Could not connect to server. Failed to connect to 127.0.0.1 port 7890 after 2033 ms: Could not connect to server. (CURLcode=7)..'
Error in mobilesensor.internal.MobileDevController>@(varargin)obj.setSensorState(varargin{:})
Error in mobilesensor.internal.MobileDevController/handleControlMessage
Error in mobilesensor.internal.MobileDevController/handlePubSubResponse
Sorry to hear that it was giving you this warning. Do you mind checking if the version of the support package and MATLAB is compatible? Original R2025a is compatible with support package version 25.1.0. R2025a update 1 is compatible with support package version 25.1.1. If R2025a is update 1, but the support package version is 25.1.0, it needs to be updated to 25.1.1 to make it work.
thank you for your reply,my version:
  • "MATLAB" "25.1.0.2943329 (R2025a)"
  • "MATLAB Support Package for Apple iOS Sensors" "25.1.1"
I don’t want to upgrade MATLAB to Update 1. Is it possible to downgrade the MATLAB Support Package for Apple iOS Sensors to version 25.1.0? It seems I can’t install a downgraded version.
Unfortunately, this link does not provide downloads for previous versions.
----------
Additionally, I am also using MATLAB R2024a on the same PC. Version information is as follows:
  • "MATLAB" "24.1.0.2537033 (R2024a)"
  • "MATLAB Support Package for Apple iOS Sensors" "24.1.3"
However, I still encounter the error:
Failure to load the device plug-in.
iPhone 15,iOS Version: 18.5
My suggestion to MathWorks is: could the support package be changed back to the R2019b-era TCP/UDP data transport (or earlier), so it does not require Internet/network connection? The current method is unstable and still causes data latency!
References
  1. https://www.mathworks.com/matlabcentral/answers/415394-connecting-matlab-mobile-with-my-computer
  2. Why does the MATLAB Mobile Connector To Desktop Feature no longer work? - MATLAB Answers - MATLAB Central
  3. https://www.mathworks.com/matlabcentral/answers/122573-matlab-mobile-connector-time-out

Sign in to comment.

Answers (0)

Categories

Products

Release

R2024a

Asked:

on 4 Jul 2024

Edited:

on 28 Aug 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!