Post

Replies

Boosts

Views

Activity

How to resolve this error: Could not find module 'InternalPackage' for target 'x86_64-apple-ios-simulator'; found arm64-apple-ios-simulator
I'm trying to integrate a new version of the Kofax iOS SDK into an app with several internal Swift Packages. To make the Kofax SDK work when building on Apple Silicon Machines, the documentation says to add 'arm64' to the excluded architectures for 'Any iOS Simulator SDK'. This generates the following build error for a SiriKit Extension target: Could not find module 'InternalPackage' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/uu9j1a0/Library/Developer/Xcode/DerivedData/AppName-fnblaczxrbpssvfefysiuarpbybg/Build/Products/Debug-iphonesimulator/InternalPackage.swiftmodule Here is what I've tried so far: Although this post is for MacOS, for the overall App and the SiriKit Extension, in Build Settings > Architectures, I tried explicitly replacing $(StandardArchitectures) with arm64 and x86_64. Ensured that Build Settings > Build Active Architecture Only was set to Yes for debug builds, according to this post. Changed "Always embed swift standard libraries" to yes for the extensions throwing the error and the app as a whole. Neither worked. Reference. Set Build Settings > Validate Workspace to yes. Reference. Tried updating the supported versions for iOS and watchOS for the InternalPackage. Unfortunately, the error remains. Thanks in advance for any suggestions.
0
0
830
Jun ’23