Pavel Repkin
11/18/2021, 9:11 AMimport platform.UIKit.UIDevice
import cocoapods.AFNetworking.*
actual class Platform actual constructor() {
actual val platform: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion +
" " + AFNetworkingReachabilityNotificationStatusItem
}
After that I’m getting linkage error while trying to build an iOS app.
Undefined symbols for architecture x86_64:
"_AFNetworkingReachabilityNotificationStatusItem", referenced from:
_cocoapods_AFNetworking_AFNetworkingReachabilityNotificationStatusItem_getter_wrapper12 in shared(result.o)
ld: symbol(s) not found for architecture x86_64
How to solve this error?
My configuration
Android Studio Arctic Fox 2020.3.1 Patch 3
Kotlin 1.6.0
XCode 13
ruby 2.6.0p0 (had to downgrade because of a problem with cocoapods-generate install)
cocoapods 1.11.2
cocoapods-generate 2.2.2
Mac OS Monterey 12.0.1Viacheslav Kormushkin
11/18/2021, 9:56 AMKonstantin Tskhovrebov
11/18/2021, 10:03 AMpod install
from ios project dir or sync project via AS
it’s standard pod mechanismPavel Repkin
11/18/2021, 10:13 AMpod install
in iOS project directory did the trick.
The app build and runs just fine.
Thank you so much, guys!Viacheslav Kormushkin
11/18/2021, 10:51 AMpod install
helped but ideally gradle sync should do it for you. Created a YT ticket to track this https://youtrack.jetbrains.com/issue/KT-49771