Why am I unable to connect to iOS in External Mode?

2 次查看(过去 30 天)
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'.

回答(1 个)

Kautuk Raj
Kautuk Raj 2024-10-17
编辑:Kautuk Raj 2024-10-17
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!

类别

Help CenterFile Exchange 中查找有关 MATLAB Mobile 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by