I just moved my old project to the new `embedAndSi...
# kotlin-native
s
I just moved my old project to the new 
embedAndSignAppleFrameworkForXcode
approach, and now code completion isn’t working for us in xcode for any code from our framework. Where should I be looking to fix this?
s
Usually doing something major like that requires a project clean and deleting derived data for me. Does the project still build and run?
s
yeah - build and run works
I moved to cocoapods, and it builds and code completion works. I’d have preferred to have it working without cocoapods though
s
I had to do a couple different things from the web site instructions. First was adjust the path for the framework search path entry according to our project layout.
Copy code
$(SRCROOT)/../ourSharedCode/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)
There’s a header search paths build setting but we don’t have that set. Second was add
KOTLIN_FRAMEWORK_BUILD_TYPE
to the build settings for the different schemes we have. We have schemes for dev, test & prod so the configuration type environment variable was being passed into the build as debugDev or releaseProd. Setting that to either debug or release fixed the kotlin framework build step. Our code is in a mono repo with the shared, android and ios projects under their own sub directories. That shouldn’t make a difference if your code is somewhere else. Xcode can just get messed up while indexing sometimes and usually deleting derived data and restarting fixes it.