spierce7
01/04/2022, 2:52 PMembedAndSignAppleFrameworkForXcode
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?Sam
01/05/2022, 12:08 AMspierce7
01/05/2022, 12:28 AMspierce7
01/05/2022, 12:29 AMSam
01/05/2022, 2:54 PM$(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.