[release/7.0.2xx-xcode14.3] [runtime] Always look for dynamic libraries relative to the root directory first. Fixes #xamarin/maccore@2668. (#18131)

Fixes https://github.com/xamarin/maccore/issues/2668.


Backport of #18121

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
This commit is contained in:
VS MobileTools Engineering Service 2 2023-04-27 12:23:01 -04:00 коммит произвёл GitHub
Родитель a14b9dbb30
Коммит b577489cd3
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -2537,6 +2537,9 @@ xamarin_compute_native_dll_search_directories ()
NSMutableArray<NSString *> *directories = [NSMutableArray array];
// Always check in the root directory first.
[directories addObject: @"/"];
// Native libraries might be in the app bundle
[directories addObject: [NSString stringWithUTF8String: bundle_path]];
// They won't be in the runtimeidentifier-specific directory (because they get lipo'ed into a fat file instead)