Error: Could not build Objective-C module 'Firebase'
There is only one way to solve this issue.
- Quit Xcode.
- Delete project's temp files located at
~/Library/Developer/Xcode/DerivedData
- Delete
ProjectName.xcworkspace
- Delete
Podfile.lock
file andPods
folder - Run
pod install
. - Open the newly created
ProjectName.xcworkspace
file and build.
Xcode fails to build new projects (12.4) - Could not build Objective-C module 'SwiftUI'
I figured it out! MY Xcode was using the wrong toolchain version even tho I tried to uninstall Xcode and reinstall it.
Make sure you have selected the correct version, in my case since I was running Xcode 12.4, I had to use version 12.4 for toolchains. It's weird that Xcode did not manually change it since I updated.
To updated version:
Xcode > Preferences > Components > Toolchains > and then select your
version
Swift Package Manager with Xcode - Could not build Objective-C module
This sounds like a bug that was recently fixed in the package manager (https://bugs.swift.org/browse/SR-3121). Have you tried a recent snapshot from https://swift.org/download/?
I tested the package you describe with a recent version of Swift 3.1 and it worked fine.
Could not build Objective-C module 'JSQMessagesViewController'
I fixed the problem by going through the following steps:
- Clean the project, including the build cache (Command-Option-Shift-K)
- Removing the pod.lock file and the pods.xcodeproj files
- And then closing Xcode and running pod update again
- Then building again.
Related Topics
How to Create Dictionary That Can Hold Anything in Key? or All the Possible Type It Capable to Hold
What's the Difference Between Aranchor and Anchorentity
Do Swift Inner Classes Have Access to Self of Outer Class
Add "For In" Support to Iterate Over Swift Custom Classes
Why Does Implicitly Unwrapped Optional Not Unwrap in Dictionary of Type [String:Any]
Swift: Orient Y-Axis Toward Another Point in 3-D Space
How Does One Trap Arithmetic Overflow Errors in Swift
How to Override Trait Collection for Initial Uiviewcontroller? (With Storyboard)
How to Get Directory Size with Swift on Os X
Class 'Viewcontroller' Has No Initializers in Swift
Stop a Dispatchqueue That Is Running on the Main Thread
Handling Multiple Gesturerecognizers
Swift Imagepickercontroller Didfinishpickingmediawithinfo Not Fired
How to Get Rgb Components from Color in Swiftui
Thread Safe Singleton in Swift
When to Use Foreach(_:) Instead of for In
Passing Data Between Tab Viewed Controllers in Swift
Does Swift Implement Tail Call Optimization? and in Mutual Recursion Case