Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Не запускается приложение на iOS после обновления SDK #27

Open
VitalyArt opened this issue Feb 16, 2022 · 1 comment

Comments

@VitalyArt
Copy link

VitalyArt commented Feb 16, 2022

Проблема:

Я сделал fork репозитория и залил актуальный sdk версии 4.2.0. Приложение билдится, но при запуске падает с ошибкой что не найдена библиотека YandexMobileMetrica.framework/YandexMobileMetrica.
Текст ошибки:

dyld[1320]: Library not loaded: @rpath/YandexMobileMetrica.framework/YandexMobileMetrica
  Referenced from: /Users/vitaly/Library/Developer/CoreSimulator/Devices/3706DB3D-C024-4404-BECC-4BAAC4F57F72/data/Containers/Bundle/Application/D119FBD8-E75C-4545-B21A-43746AFC52CD/JammAppTemplate.app/JammAppTemplate
  Reason: tried: '/Users/vitaly/Library/Developer/Xcode/DerivedData/JammAppTemplate-bgheiczacxalevciwvmfaqqbwpir/Build/Products/Debug-iphonesimulator/YandexMobileMetrica.framework/YandexMobileMetrica' (no such file), '/Users/vitaly/Library/Developer/CoreSimulator/Devices/3706DB3D-C024-4404-BECC-4BAAC4F57F72/data/Containers/Bundle/Application/D119FBD8-E75C-4545-B21A-43746AFC52CD/JammAppTemplate.app/Frameworks/YandexMobileMetrica.framework/YandexMobileMetrica' (no such file), '/Users/vitaly/Library/Developer/CoreSimulator/Devices/3706DB3D-C024-4404-BECC-4BAAC4F57F72/data/Containers/Bundle/Application/D119FBD8-E75C-4545-B21A-43746AFC52CD/JammAppTemplate.app/Frameworks/YandexMobileMetrica.framework/YandexMobileMetrica' (no such file), '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/YandexMobileMetrica.framework/YandexMobileMetrica' (no such file)

Hotfix:

Проблему получилось исправить добавив в Build Phases новую фазу Copy Files.
Скриншот:
изображение


Такое решение мне не очень подходит, т.к. я пытаюсь перенести сборку приложения в CI/CD, а там мышкой в xcode не потыкать. Как правильно решить проблему? Или неправильно, но что бы работало?

@ghost
Copy link

ghost commented Feb 16, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant