# Xcode code completion

**URL:** <https://discuss.kotlinlang.org/t/xcode-code-completion/23572>\
**Category:** Native\
**Created:** [December 1, 2021, 3:22pm UTC](https://discuss.kotlinlang.org/t/xcode-code-completion/23572 "2021-12-01T15:22:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![iainmerrick](https://avatars.discourse-cdn.com/v4/letter/i/34f0e0/32.png) [@iainmerrick](https://discuss.kotlinlang.org/u/iainmerrick)\
**Post date:** [December 1, 2021, 3:22pm UTC](https://discuss.kotlinlang.org/t/xcode-code-completion/23572/1 "2021-12-01T15:22:04Z")

</div>

Hi all, I’m trying to set up KMM to share some Kotlin code between our Android and iOS apps. It all seems to be working, except that I don’t get any code completion when calling the Kotlin code from Swift inside Xcode.

I’m building the Kotlin code as a debug XCFramework using the instructions here: [You will be redirected shortly](https://kotlinlang.org/docs/mpp-build-native-binaries.html#build-xcframeworks). I’m then using CocoaPods to import it into a separate Xcode project with our existing Swift app. It compiles fine, and runs fine, but… no code completion. Any ideas?

I realise this is probably more of an Xcode/Swift issue than a KMM issue, but I’d really appreciate any advice you have!

Thanks,

Iain

---

<div class="post-metadata">

**Author:** ![iainmerrick](https://avatars.discourse-cdn.com/v4/letter/i/34f0e0/32.png) [@iainmerrick](https://discuss.kotlinlang.org/u/iainmerrick)\
**Post date:** [December 1, 2021, 5:54pm UTC](https://discuss.kotlinlang.org/t/xcode-code-completion/23572/2 "2021-12-01T17:54:59Z")

</div>

Aha, looks like this is a known Xcode 13 bug (but not fixed or even acknowledged by Apple yet, sigh). Another developer has put a great writeup and repro case on GitHub: [Thanks for providing this · Issue #1 · andre-alves/xcode13-indexing-problem · GitHub](https://github.com/andre-alves/xcode13-indexing-problem/issues/1)
