Could not find module for target 'x86_64-apple-ios-simulator'
To solve this issue I had to create a fat library of my custom framework again using xcode 11 tools.
To do that I did the following:
1) Build YourCustomFramework
target for iOS simulator and extract framework from products folder on your desktop.
Xcode ▸ DerivedData ▸ Your Project ▸ Build ▸ Products ▸ Release-iphonesimulator
2) Build YourCustomFramework
target for Generic iOS Device and extract framework from products folder on your desktop.
Xcode ▸ DerivedData ▸ Your Project ▸ Build ▸ Products ▸ Release-iphoneos
3) Rename the simulator generated framework to YourCustomFramework-sim.framework
so that it is distinguishable later.
4) Use the lipo command to combine both binaries into a single fat binary file. (cd to your desktop or wherever your custom framework file is located)
$lipo -create ./YourCustomFramework-sim.framework/YourCustomFramework ./YourCustomFramework.framework/YourCustomFramework -output ./YourCustomFramework
5) Copy YourCustomFramework
binary file created in above step and replace it with the binary in YourCustomFramework.framework
folder.
6) From folder
YourCustomFramework-sim.framework/Modules/YourCustomFramework.swiftmodule/
copy all of the modules and paste them to
YourCustomFramework.framework/Modules/YourCustomFramework.swiftmodule/
This should solve your issue.
could not find module 'Alamofire' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64
Another workaround is to set BuildSettings ->"Validate Workspace" to Yes. It will still show a warning, but will build the project.
Xcode 12 issue - Could not find module 'FrameworkName' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64
I fixed this by ensuring the build setting VALID_ARCHS
(now appearing at the bottom of Build Settings in Xcode 12) contains "x86_64
".
That is:
- Before I had:
VALID_ARCHS = arm64, arm64e
- After fixing:
VALID_ARCHS = arm64, arm64e, x86_64
(A little counterintuitive, as the error message says it couldn't find the module for arm64
-apple-ios-simulator, :shrug:)
Could not find module 'Kingfisher' for target 'x86_64-apple-ios-simulator'
if you installed your pod using:
arch -x86_64 pod install
you should change it to:
pod install
after doing that you don not need to change your Excluded Architecture to arm64
Related Topics
Value of Type 'string' Has No Member 'stringbytrimmingcharactersinset'
Swift Package Manager Issues with Unversioned Packages (Example: Firebase-Ios-Sdk)
How to Convert Cgpoint in Nsvalue in Swift
Adding an Skscene to a Uiviewcontroller
How to Animate a Nslayoutconstraint in Swift
iOS Uitableview Accessibility Order Is Wrong After Setting Accessibilityelements on Uitableviewcell
Is There an iOS API for Accessing Call Logs
Restkit 0.20 JSON Mapping Along with Additional Offline Data
Play Keyboard Click Sound in a Collection View Controller
Uiviewrepresentable Automatic Size - Passing UIkit UIview Size to Swiftui
Why HTML5 Video Doesn't Play in iOS 8 Webapp(Webview)
Box Shadow Spread Bug in Webkit in iOS 7 on Retina Ipads
Uialertview's Textfield Does Not Show Keyboard in iOS8
Can You Listen to Firestore Updates When iOS App Is in The Background