Capacitor: Capacitor beta.17 update causing so 17 errors

Created on 29 Jan 2019  路  5Comments  路  Source: ionic-team/capacitor

Since I update to capacitor.beta.17 I am seeing lot of errors . Are there any breaking changes?

screenshot 2019-01-29 at 3 39 23 pm

Most helpful comment

If you manually changed ti to 4.2 then you weren't using 4.2. You have to do a migration. Do a Edit -> Convert -> To current Swift syntax.
It should only ask you to convert the target "App".
In case Capacitor target also appears for Conversion, check the Swift version that appears there and also provide your CocoaPods version.

All 5 comments

It has been updated to swift 4.2.
What鈥檚 your swift version?
What鈥檚 your Xcode version?

Updated to swift 4.2.
Xocde version: Version 10.1 (10B61)

After updating to swift 4.2 now I am getting three errors.

screenshot 2019-01-29 at 4 32 21 pm

Updated swift version is xCode under Build Settings. Do I need to change it anywhere else also?

screenshot 2019-01-29 at 4 33 34 pm

Shashwats-MacBook-Pro:app-vue shashwat$ xcrun swift -version
Apple Swift version 4.2.1 (swiftlang-1000.11.42 clang-1000.11.45.1)
Target: x86_64-apple-darwin18.2.0
Shashwats-MacBook-Pro:app-vue shashwat$ 

If you manually changed ti to 4.2 then you weren't using 4.2. You have to do a migration. Do a Edit -> Convert -> To current Swift syntax.
It should only ask you to convert the target "App".
In case Capacitor target also appears for Conversion, check the Swift version that appears there and also provide your CocoaPods version.

@jcesarmobile Thanks :-) .

To fix this what I did was to move back to beta.14 then convert the app to swift 4.2 and after that, I updated capacitor modules to beta.17.

All good now. :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gnesher picture gnesher  路  3Comments

json-derulo picture json-derulo  路  3Comments

TayKara picture TayKara  路  3Comments

daniel-lucas-silva picture daniel-lucas-silva  路  3Comments

peterpeterparker picture peterpeterparker  路  3Comments