Alamofire compiled with older version of Swift language (2.0) than previous files (3.0) for architecture x86_64
Update your cocoa pods and clear your derive data folder and try to run again.
In xcode 8 derived data folder changed,
Go to File -> Workspace setting -> then see this image,
Click on -> on path and clear that derived data folder.
Linker Error After Updating swift Version and pods
Update following things in your pod files:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3' || '3.0'
config.build_settings['ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES'] = 'NO'
end
end
end
Faced error during update Alamofire to version 4.0 for my old project
You need to:
- In your podfile update to:
pod 'Alamofire', '~> 4.0'
- In your podfile update to:
platform :ios, '9.0'
(or higher) - Change your deployment target in Xcode to iOS 9.0 or higher
- Do a
pod update
Migrating Alamofire 4 on swift3 - Linker command failed with exit code 1 (use -v to see invocation
Try these steps:
- Delete derived data of your project
- Clean your project (Cmd+Shift+K)
- Run
pod update
from terminal once again
To delete derived data in Xcode 8 do the following:
File
-> Workspace settings
-> Press arrow button next to the path -> Open DerivedData
folder -> Delete folder starting with your project`s name
Command CompileSwiftSources failed with a nonzero exit code XCode 13
I had this problem surface in Xcode 13.0.
Mohamed Tarek's solution worked for me, but…
I was using cocoapods, so I needed a solution not blown away by pod install
; or more specifically fixed with pod install
.
Adding the following to the bottom of the Podfile
resolved it.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# some older pods don't support some architectures, anything over iOS 11 resolves that
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end
Related Topics
Difference Between Text("") and Text(Verbatim: "") Initializers in Swiftui
How to Generate Random Numbers Without Repetition in Swift
How to Demonstrate a Zombie Object in Swift
Appending Tuples to an Array of Tuples
Swift- Variable Not Initialized Before Use (But It's Not Used)
How Should You Handle Closure Arguments for Uialertaction
Nothing Prints Out in the Console in Command Line Tool Xcode
What Is the Swift Equivalent of -[Nsobject Description]
Environmentobject VS Singleton in Swiftui
Scenedidload Being Called Twice
Show Nsmenu Only on Nsstatusbarbutton Right Click
Firebase Completion Listeners in Swift
Why Does Int(Float(Int.Max)) Give Me an Error
How to Stream Remote Audio in iOS 13? (Swiftui)
Swift 2.0 Get Mirrored Superclass Properties
What Is the Type of the Logical Operators