Alamofire Compiled with Older Version of Swift Language (2.0) Than Previous Files (3.0) for Architecture X86_64

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,

Sample 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:

  1. In your podfile update to: pod 'Alamofire', '~> 4.0'
  2. In your podfile update to: platform :ios, '9.0' (or higher)
  3. Change your deployment target in Xcode to iOS 9.0 or higher
  4. Do a pod update

Migrating Alamofire 4 on swift3 - Linker command failed with exit code 1 (use -v to see invocation

Try these steps:

  1. Delete derived data of your project
  2. Clean your project (Cmd+Shift+K)
  3. 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



Leave a reply



Submit