Foren
Liferay Screens and Swift 3.0
Salva Tejero, geändert vor 7 Jahren.
Liferay Screens and Swift 3.0
Junior Member Beiträge: 77 Beitrittsdatum: 13.06.11 Neueste Beiträge
Hello, I made the mistake of updating my phone and now, i need to use Xcode 8.X and Xcode wants to upgrade to Swift 3.0
Will be there an upgrade to Swift 3.0?
Will be there an upgrade to Swift 3.0?
Jose M. Navarro, geändert vor 7 Jahren.
RE: Liferay Screens and Swift 3.0
Regular Member Beiträge: 138 Beitrittsdatum: 24.01.14 Neueste Beiträge
Not yet, the Swift 3 migration is not so easy.
Meanwhile you can have several versions of Xcode installed: 7.3.x for Swift 2.2 and 8.x for Swift 2.3 and 3
Meanwhile you can have several versions of Xcode installed: 7.3.x for Swift 2.2 and 8.x for Swift 2.3 and 3
Salva Tejero, geändert vor 7 Jahren.
RE: Liferay Screens and Swift 3.0
Junior Member Beiträge: 77 Beitrittsdatum: 13.06.11 Neueste Beiträge
Ok,
A possible workaround
In Xcode 7.X Pod file
Target -> build Setting -> USER-SEttings -> SWIFT_VERSION = '2.3'
In Xcode 8.X
pod install
All Pods SWIFTs targets -> User Legacy Swift Language Version -> yes
Then in some classes add ! in NSURL.absoluteString
A possible workaround
In Xcode 7.X Pod file
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end
Target -> build Setting -> USER-SEttings -> SWIFT_VERSION = '2.3'
In Xcode 8.X
pod install
All Pods SWIFTs targets -> User Legacy Swift Language Version -> yes
Then in some classes add ! in NSURL.absoluteString