Hi,

I am using acados with MATLAB 2022 on macOS 13 with XCode Version 14.0. Libs exist in the folder `<acados_root_folder>/lib`

.

Also, I can run the example `minimal_example_ocp.py`

from the Terminal, as mentioned in the following issue:

However, running the same example in MATLAB gives the following error:

```
Warning: Name is nonexistent or not a directory: /Users/../acados/../pendulum_on_cart_model
> In path (line 109)
In addpath (line 86)
In minimal_example_ocp (line 38)
--------------------------------------------------------------
Structure detection for path cost
Cost function is quadratic -> Reformulating as linear_ls cost.
reformulated cost term in linear least squares form with:
cost = 0.5 * || Vx * x + Vu * u + Vz * z - y_ref ||_W
Vx
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
0 0 0 0
Vu
0
0
0
0
1
Vz
W
1.0e+03 *
2.0000 0 0 0 0
0 2.0000 0 0 0
0 0 0.0000 0 0
0 0 0 0.0000 0
0 0 0 0 0.0000
y_ref
0
0
0
0
0
y (symbolic)
[p, theta, v, dtheta, F]
NOTE: These numerical values can be updated online using the appropriate setters.
--------------------------------------------------------------
--------------------------------------------------------------
Structure detection for terminal cost term
Cost function is quadratic -> Reformulating as linear_ls cost.
reformulated cost term in linear least squares form with:
cost = 0.5 * || Vx * x + Vu * u + Vz * z - y_ref ||_W
Vx
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
Vu
0
0
0
0
Vz
W
1.0e+03 *
2.0000 0 0 0
0 2.0000 0 0
0 0 0.0000 0
0 0 0 0.0000
y_ref
0
0
0
0
y (symbolic)
[p, theta, v, dtheta]
NOTE: These numerical values can be updated online using the appropriate setters.
--------------------------------------------------------------
Constraint detection for path constraints.
constraint 1 is reformulated as bound on u.
F
found compiled acados MEX interface
Error using acados_ocp
Exception:
MATLAB:mex:ErrInvalidMEXFile
Invalid MEX-file '/Users/../acados/build/ocp_create.mexmaci64':
dlopen(/Users/../acados/build/ocp_create.mexmaci64, 0x0006): Library not loaded:
@rpath/libacados.dylib
Referenced from: <AA8D9CF0-EE3B-3C72-A79D-6175B9B75F0F>
/Users/../acados/build/ocp_create.mexmaci64
Reason: tried: '/Applications/Computation/MATLAB_R2022b.app/bin/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/./libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/os/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/./libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/os/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../runtime/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/java/jre/maci64/jre/lib/server/libacados.dylib' (no
such file), '/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/java/jre/maci64/jre/lib/libacados.dylib'
(no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/./libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/os/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/./libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/os/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../runtime/maci64/libacados.dylib' (no such file),
'/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/java/jre/maci64/jre/lib/server/libacados.dylib' (no
such file), '/Applications/Computation/MATLAB_R2022b.app/bin/maci64/../../sys/java/jre/maci64/jre/lib/libacados.dylib'
(no such file), '/usr/local/lib/libacados.dylib' (no such file), '/usr/lib/libacados.dylib' (no such file, not in dyld
cache)
Error in minimal_example_ocp (line 108)
ocp = acados_ocp(ocp_model, ocp_opts);
```