I met a strange issue. I got error:
dyld: Library not loaded: /usr/local/lib/mylib.dylib
Reference from: .....
Reason: image not found
I didn't suppose that I need to load library from /usr/local/lib, because it already included in my project.
The lib is an embed lib of my project and this issue only happened on my M1 mini? I have try three devices even on MacOS 12.0.1
Then I found the "Runpath Search Paths" seems didn't work on M1 machine. All setting among three machine are the same. (The same source code). Even I use the absolute path on this setting on M1 machine didn't work while others two machine without any problem.
Does anybody know what happened? Should I add additional setting on my M1 machine?
ps: My project has two level, the problem happen on my second level project which is included in the first level project. I am not sure related to this or not?