I install alamofire via Carthage and get this error:
could not find module ‘Alamofire’ for target ‘x86_64-apple-ios-simulator’; found: armv7-apple-ios, arm64-apple-ios,
at: /Users/datdinh/Desktop/a/requestTest/Carthage/Build/iOS/Alamofire.framework/Modules/Alamofire.swiftmodule
2
Answers
I recently had the exact same problem, with Xcode 14.1 and a Scheme/Configuration called "Debug".
After a day and tweaking, I found out its only related to Xcodes
Configuration
&Scheme
name, as soon as I changed it fromDebug
toTest
or anything else, the problem disappeared, correctly building necessary architure for the Simulator.Note: I did have another Configuration/Scheme with debug-like settings which worked flawless, so I knew that in general my Xcode
Build Settings
were alright.Besides that, Xcode 14 is quite buggy, for me not displaying compile errors for currently open files. Since I am on Ventura I cannot use Xcode 13.4.1. A Nightmare!
I have Xcode 14.2 and multiple
Schemes
in the app likeMyApp2-debug
andMyApp2-release
I resolved the same problem by changing the
Scheme
ofDebug
toMyApp-debug
andRelease
toMyApp-release
or anything else.Other
Schemes
were working fine.