New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+[YMKMapKit setApiKey:]: unrecognized selector sent to class #5
Comments
@polykuzin подключил к подпакету? или напрямую в основной проект? |
Напрямую в основний проект подключаю |
@polykuzin тогда настройка линковки не нужна здесь смотрел первый пункт? |
@c-villain само собой, подключаю под м1 как надо, в аппделегате тоже всё есть, момент в том, что эта ошибка unrecognized selector sent to class возникает при любом вызове метода карт, хотя, например, если ключ не установить он должен выдать что то типо "ApiKey not found". |
@polykuzin попробуй 4.3.1 |
@polykuzin @c-villain Тоже столкнулся с такой проблемой. Помогло только перелинковать в отдельный пакет, используя пункт 2 |
@vladimirgoncharov спасибо за инфу😊🤝 |
@c-villain @vladimirgoncharov как можно импортнуть только те модули которые нужны из YandexMapsMobile? |
@polykuzin сейчас столкнулся с этой же проблемой, помогло прописать в настройках проекта: если используется Xcodegen, то в yaml прописать: settings:
OTHER_LDFLAGS: -ObjC |
Стянул к себе либу, Подключил, но ни в какую не хочет заводится.
Падает на первом же методе setApiKey. Использую версию 4.2.2.
Нашёл инфу, что в пакет нужно добавь настройку линковки: yandex/mapkit-ios-demo#130, нужно ли добавлять что то еще в сам проект?
2023-05-16 18:12:50.224686+0300 [18014:145964] +[YMKMapKit setApiKey:]: unrecognized selector sent to class 0x103c8ec60
2023-05-16 18:12:50.232871+0300 [18014:145964] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[YMKMapKit setApiKey:]: unrecognized selector sent to class 0x103c8ec60'
*** First throw call stack:
(
0 CoreFoundation 0x0000000180437330 __exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180051274 objc_exception_throw + 56
2 CoreFoundation 0x0000000180445d3c __CFExceptionProem + 0
3 CoreFoundation 0x000000018043b224 forwarding + 1308
4 CoreFoundation 0x000000018043d50c _CF_forwarding_prep_0 + 92
5 0x0000000102aa54f8 $s811AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtF + 280
6 0x0000000102aa6a64 $s811AppDelegateC11application_29didFinishLaunchingWithOptionsSbSo13UIApplicationC_SDySo0j6LaunchI3KeyaypGSgtFTo + 196
7 UIKitCore 0x00000001126d3ac0 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 292
8 UIKitCore 0x00000001126d5008 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 2776
9 UIKitCore 0x00000001126d9c08 -[UIApplication _runWithMainScene:transitionContext:completion:] + 856
10 UIKitCore 0x0000000111e2e240 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 148
11 UIKitCore 0x00000001126d6c7c -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 44
12 UIKitCore 0x00000001126d6fcc -[UIApplication _run] + 832
13 UIKitCore 0x00000001126daf3c UIApplicationMain + 124
14 libswiftUIKit.dylib 0x0000000106904454 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 100
15 0x0000000102aa5380 $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 120
16 0x0000000102aa52f8 $s811AppDelegateC5$mainyyFZ + 44
17 0x0000000102aa6c88 main + 28
18 dyld 0x00000001056dd514 start_sim + 20
19 ??? 0x00000001057d9f28 0x0 + 4387086120
20 ??? 0x0669800000000000 0x0 + 462041174270541824
)
libc++abi: terminating due to uncaught exception of type NSException
The text was updated successfully, but these errors were encountered: