Des Han
Des Han

Reputation: 53

could not find module 'Alamofire' for target 'x86_64-apple-ios-simulator'

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

Upvotes: 3

Views: 10646

Answers (2)

Syed Faizan Ahmed
Syed Faizan Ahmed

Reputation: 544

I have Xcode 14.2 and multiple Schemes in the app like MyApp2-debug and MyApp2-release I resolved the same problem by changing the Scheme of Debug to MyApp-debug and Release to MyApp-release or anything else. Other Schemes were working fine.

Upvotes: 2

smat88dd
smat88dd

Reputation: 2388

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 from Debug to Test 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!

Upvotes: 5

Related Questions