Hello everyone,
I'm very new to Kotlin native and I know almost nothing about iOS-development.
I'm trying refactor an existing IOS-app which uses pods.
I use JWTDecode as POD dependency.
The idea autocompletion etc. works.
When I build the code for an emulator, it fails on JWTDecodeIos.
The error I get is:
(It also has the JWTDecode-dependency...)
I do have:
Copy code
// Revert to just ios() when gradle plugin can properly resolve it
val onPhone = System.getenv("SDK_NAME")?.startsWith("iphoneos") ?: false
if (onPhone) {
iosArm64("ios")
} else {
iosX64("ios")
}
which maybe explains the difference? But removing the if and trying first one and then the other also didn't seem to work.
Can anyone help me?
g
georg
11/08/2020, 5:52 PM
Did you open the workspace or the project in AppCode?
t
tieskedh
11/08/2020, 5:57 PM
I believe I opened on the project, but it told me I could use the workspace, so I did.
It build for me before, but it stopped working after adding a pod-dependency, if that help to answer your question?
g
georg
11/08/2020, 6:03 PM
Ok. When using Cocoapods you always need to open the workspace. Otherwise AppCode and Xcode canโt resolve the dependencies.
When you add a new pod you need to execute