Why am I unable to connect to iOS in External Mode?
1 view (last 30 days)
Show older comments
When I try to run my model in external mode with iOS (iPhone 6 with iOS 10.3.3) connected, I receive the following error:
Error occurred while executing External Mode MEX-file 'ext_comm':
Failed to connect to the target. Possible reasons for the failure:
a) The target is not switched on.
b) The target is not connected to your host machine.
c) The application for the model is not running on the target. You might have clicked the
Stop button. If the Run button is not dimmed, click it. Otherwise, click the Build button,
which downloads and runs your application on the target.
Caused by:
An error occurred attempting to open an rtIOStream. More detail may be reported in the MATLAB command window
Component:Simulink | Category:Block diagram error
Unable to connect to the 'Apple iOS Device' target for 'iOSTestModel'.
0 Comments
Answers (1)
Kautuk Raj
on 17 Oct 2024
Edited: Kautuk Raj
on 17 Oct 2024
The error you are encountering occurs due to compatibility issues with newer iOS and Xcode versions that are not supported by the Simulink Support Package for Apple iOS Devices.
To resolve this, please refer to the supported versions listed on the page here: https://www.mathworks.com/matlabcentral/fileexchange/49895-simulink-support-package-for-apple-ios-devices
As you are using iOS version 10.3.3, there may be an issue with the version of Xcode being used. An Xcode version of less than or equal to 10 is required.
Please note that the Simulink Support package for Apple iOS Devices will be deprecated from MATLAB R2023b, and the final release that includes this support package will be R2023a.
For ongoing support and compatibility with recent operating systems, you might consider using the Simulink Support Package for Android Devices instead. It provides support for more recent versions of Android OS. More information can be found here: https://www.mathworks.com/hardware-support/android-programming-simulink.html
I hope this helps resolve your issue!
0 Comments
See Also
Categories
Find more on MATLAB Mobile in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!