Reputation: 149
Xcode Errors:
"Build failed because DotLottie.swiftmodule is not built for arm64. Would you like to show all run destinations instead?"
"Ensure all targets are configured to build for standard architectures. If your project uses external dependencies, contact those vendors to provide updated copies built to support all architectures. You can control the visibility of architecture-specific run destinations in the Product > Destination menu."
"== PREVIEW UPDATE ERROR:
SchemeBuildError: Failed to build the scheme “Tenki Weather”
could not find module 'DotLottie' for target 'x86_64-apple-ios-simulator'; found: arm64-apple-ios-simulator, at: /Users/me/Library/Developer/Xcode/DerivedData/projectname/Build/Intermediates.noindex/Previews/iphonesimulator/myapp/Products/Debug-iphonesimulator/DotLottie.swiftmodule"
I am on Xcode Version 16.2. MacBook Pro M3 Pro.
For some reason, in my project, I am unable to use previews as long as I have DotLottie installed. Actually, it's basically any package because I had swiftui-mail-view installed and ran into the same issue.
The thing is, I created a brand new project and installed the same packages and the previews work just fine.
So clearly there's something wrong with my settings in my current project. I don't even know where to look. I copy/pasted the error into chatgpt and followed their troubleshooting methods of
Nothing has worked. For a while whenever I added simulators, there was always a "Rosetta" version that came with it. Example: adding "iPhone 14" would also add "iPhone 14 (Rosetta)."
I must've messed up in settings somehow. Is there anyway to go back default project and simulator settings?
Upvotes: -3
Views: 42
Reputation: 149
I figured it out. All these months of not using a preview. It was as simple as having conflicting values for "Build Active Architecture Only."
For project, I had Debug: Yes, Release: No For target, I had Debug: No, Release: Yes
To fix I set both to Debug: Yes, Release: No
Navigate to Build Settings for BOTH Project and Targets change these settings.
Upvotes: 1