cordova-plugin-zeroconf icon indicating copy to clipboard operation
cordova-plugin-zeroconf copied to clipboard

remove depenency on swift plugin

Open phatpaul opened this issue 3 years ago • 2 comments

see #101

I tested this and it works on iOS. I don't think it should affect Android at all, but I'll check it.

But I did get the error error: Value for SWIFT_VERSION cannot be empty. but then I manually set the Swift Version in XCode and it worked. Not sure why <preference name="SwiftVersion" value="4.0" /> is not taking effect. Maybe a bug in cordova?

phatpaul avatar Dec 07 '22 20:12 phatpaul

Possibly this? https://forum.ionicframework.com/t/ios-build-issue-value-for-swift-version-cannot-be-empty/186855/3

<preference name="UseSwiftLanguageVersion" value="4" />

emcniece avatar Dec 08 '22 17:12 emcniece

Well, it worked fine this time I did a fresh build from scratch. If it works for you too then I'd say it's good.

It looks like UseSwiftLanguageVersion was just for the old plugin cordova-plugin-add-swift-support. The cordova-ios native feature uses SwiftVersion.

Here's an example of another plugin that did this same thing: https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/pull/279/files

BTW, there's some chance of conflicting swift versions with workaround described here: https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/issues/342

phatpaul avatar Dec 12 '22 22:12 phatpaul