PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, April 13, 2022

[FIXED] How can change Swift 3 to 4 in Xcode 11.4

 April 13, 2022     ios, migration, swift, xcode10.1, xcode11.4     No comments   

Issue

Current I am using Xcode11.4. I need to use Xcode 11.4 for iOS 13 frameworks but I cant build my old project in Xcode 11 Here is the error message

This workplace has projects that contain source code developed with Swift 3.x.This version of Xcode does not support building or migrating Swift 3.x targets
Use Xcode 10.1 to migrate the code to Swift 4

I tried to change Swift Language version to Swift 4 in all Pods . enter image description here

But Some of the Pods is showing error like that

Error

How Can I fixed that error,Does I need to install Xcode 10.1 again?


Solution

There are 2 ways you can do the migration

  1. Use Xcode 10.1's migration tool to update your code-base directly to swift4 But this will still require manual pod update

  2. If your code-base is small, you can skip the hassle of downloading and installing of Xcode and could manually update code to swift 4 by refactoring.

Follow this tutorial, It is comprehensive enough for migration



Answered By - swiftyDeadpool
Answer Checked By - Mildred Charles (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing