Hey all, For the last few weeks the team has been working on getting the Firefox for iOS code base migrated to Swift 3. I'm happy to announce that we're now in a good position to land the migration changes [1] onto our main development branch (master). We plan on landing these changes this afternoon.
What does this mean for you? *If you have an existing checkout of the project *- Since frameworks built with Swift 2.3 are not ABI-compatible with ones built with 3.0, you'll need to re-checkout the Carthage dependencies as we've updated our Cartfile to use Swift 3.0 versions of our dependencies. To do this, remove any local copies of your Carthage dependencies by removing the *Carthage* folder and *Cartfile.resolved* file from the project's root directory. Afterwards, re-run the *./bootstrap.sh* command to checkout fresh copies of the Swift 3 dependencies. *If you have patches in progress* - There is a very good chance the code will need to be migrated to be compatible with 3.0. It's also worth considering adopting a more 'swifty' approach when creating new methods/classes. For details in migrating your code and adopting the 3.0 style you can refer to the migration guide [2] or ask a team member for advice. It's worth mentioning that this is a *very large* change to the code base and as such there will inevitably be regressions we weren't able to catch. As always, if you encounter odd behavior or bug please file a bug with the Firefox for iOS product on Bugzilla [3]. We also have a meta bug you can use to link any Swift 3-related issues with [4]. Lastly, special thanks to :fluffyemily, :farhan, and :bkmunar that worked on the migration/fighting Xcode segfaults! [1] https://github.com/mozilla-mobile/firefox-ios/pull/2363 [2] https://swift.org/migration-guide/ [3] https://bugzilla.mozilla.org/enter_bug.cgi?product=Firefox%20for%20iOS [4] https://bugzilla.mozilla.org/show_bug.cgi?id=1323459
_______________________________________________ mobile-firefox-dev mailing list mobile-firefox-dev@mozilla.org https://mail.mozilla.org/listinfo/mobile-firefox-dev