You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
(bug)MATLAB Support Package for Apple iOS Sensors could't work?
21 views (last 30 days)
Show older comments
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
xingxingcui
on 30 Aug 2024
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!
xingxingcui
on 5 Sep 2024
Edited: xingxingcui
on 5 Sep 2024
Unfortunately, Mathworks technical support was also unable to resolve my issue. Currently, I have found a viable workaround:
- Use MATLAB Online.
- Utilize the desktop version of MATLAB R2023b or earlier.
Yilei Zheng
on 5 Sep 2024
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!
xingxingcui
on 6 Sep 2024
Edited: xingxingcui
on 9 Sep 2024
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!
Yilei Zheng
on 17 Sep 2024
MATLAB 2024b release is out. Could you try install 2024b with latest MATLAB support package 24.2.0? Hope it solved the issue.
xingxingcui
on 27 Aug 2025
R2025a ,warning,error:
In
matlabshared.asyncio.internal.Channel>@(source,data)objWeakRef.Handle.onCustomEvent(data.Type,data.Data) (line 506)
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
matlabshared.asyncio.internal.Channel>@(source,data)objWeakRef.Handle.onCustomEvent(data.Type,data.Data) (line 506)
@(source, data) objWeakRef.Handle.onCustomEvent(data.Type, data.Data));
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
In
matlabshared.asyncio.internal.Channel>@(source,data)objWeakRef.Handle.onCustomEvent(data.Type,data.Data) (line 506)
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
CJ
on 27 Aug 2025
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.
xingxingcui
on 28 Aug 2025
Edited: xingxingcui
on 28 Aug 2025
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
Answers (0)
See Also
Categories
Find more on MATLAB Mobile in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)