Tristan
12/16/2020, 10:30 PM1.4.21
, with
kotlin {
android()
ios()
cocoapods {
summary = "summary"
homepage = "homepage"
pod("AFNetworking") {
version = "~> 4.0.1"
}
}
// ...
Artyom Degtyarev [JB]
12/17/2020, 9:42 AMios.deploymentTarget = "13.5"
- is this also present here?Tristan
12/17/2020, 1:46 PMshared.podspec
added to my shared module.
Adding the line ios.deploymentTarget = "13.5"
in the cocoapods { }
scope did not change anything.> Task :shared:linkDebugTestIosX64 FAILED
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
Please try to disable compiler caches and rerun the build. To disable compiler caches, add the following line to the gradle.properties file in the project's root directory:
kotlin.native.cacheKind=none
Also, consider filing an issue with full Gradle log here: <https://kotl.in/issue>
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
Undefined symbols for architecture x86_64:
"_AFNetworkingReachabilityNotificationStatusItem", referenced from:
_cocoapods_AFNetworking_AFNetworkingReachabilityNotificationStatusItem_getter_wrapper12 in result.o
ld: symbol(s) not found for architecture x86_64
Execution failed for task ':shared:linkDebugTestIosX64'.
> Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Artyom Degtyarev [JB]
12/17/2020, 2:23 PMios()
target shortcut was used. It creates iosMain
intermediate source set, which does not resolve cocoapods libraries. See https://youtrack.jetbrains.com/issue/KT-41631 for the details.Tristan
12/17/2020, 2:49 PMd:linkDebugTestIosX64 FAILED
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
Undefined symbols for architecture x86_64:
"_AFNetworkingReachabilityNotificationStatusItem", referenced from:
_cocoapods_AFNetworking_AFNetworkingReachabilityNotificationStatusItem_getter_wrapper12 in result.o
ld: symbol(s) not found for architecture x86_64
Execution failed for task ':shared:linkDebugTestIosX64'.
> Compilation finished with errors
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
I really thought the last ticket would have been able to help me 😢 Because it is exactly that, I just used the wizard, and tried to add cocoapods. There is nothing else in the project 😕