We've decided to use SPM for our new internal frameworks. Our app has many dependencies (for the moment) on some CocoaPods. So, I figured adding SPM would be easy enough.
I created a local Swift Package and linked it against the project. All good, until I import the new Package into a Swift
file
Once I do that and try build on the iOS simulator, I am faced with the following compiler error:
could not find module 'CoreKit' for target 'x86_64-apple-ios-simulator';
I am able to build to a device, no problem. Just not the simulator.
We faced a similar issue for Pods; which resulted us adding the following in our Podfile
installer_representation.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
We had to do this, since we use M1 Machines.
I have tried the following:
- Removing
arm64
from theExcluded Architectures
- Setting
Build Active Archives only
toYES/NO
- Adding
x86_64
toArchitectures
- Removing the config for
arm64
from thePodfile
Open to any suggestions on how we can resolve this.
Thanks