Has anyone else had any issues building multi-modu...
# kotlin-native
d
Has anyone else had any issues building multi-module iOS projects on 1.3.70+? It works fine for me when building for a real device but not on the simulator, looks like a problem with the caching. I'm getting:
Copy code
> Task :shared:linkDebugFrameworkIos FAILED
e: /Users/.../project/shared/some/module/build/classes/kotlin/ios/main/module1 is cached (in /Users/.../.konan/kotlin-native-macos-1.3.72/klib/cache/ios_x64-gSTATIC/libmodule1-cache.a), but its dependency isn't: /Users/.../project/shared/module2/build/classes/kotlin/ios/main/module2
a
Are you facing it on 1.3.72?
d
Yes
a
Yep, that seems strange. Do you have a stable reproducer for it?
d
Other than my company's project no not yet, I'll see if I can make a similar setup on a test project
🙏 1
Managed to reproduce it in a new project 🙂 If you try to build the iOS app in
app/ios
that's where I get the error https://github.com/drampelt/kotlin-native-caching-problem
a
Hello again, @Daniel Rampelt! Seems like I found the root cause here - module
network
is clashing with an Apple’s Network framework. The second one is being cached, and the compiler assumes that cache as relevant when compile your project. As the quickiest workaround, you can just rename the module. Can you tell if this can be applied to your private project too, or
module1
there has a different name?
d
Ah got it, yep that applies to the original project - just wasn't sure how much I should share from it originally
Thanks for the help!