Web3.swift icon indicating copy to clipboard operation
Web3.swift copied to clipboard

Add explicit swift_version

Open pixelmatrix opened this issue 6 years ago • 10 comments

If you pod install on a new project in Xcode 10 it will default to Swift version of 4.2, which made some breaking changes that this library needs to address. This will fix the pod for people installing until the library supports 4.2.

pixelmatrix avatar Nov 02 '18 17:11 pixelmatrix

@pixelmatrix I think we are using some 4.1 features. But I'm not entirely sure. Is there a reason you set it to 4.0?

koraykoska avatar Nov 12 '18 00:11 koraykoska

4.1 isn’t an option in Xcode for some reason. I think it was not intended to be a major release, but rather a temporary release until they got 4.2 out. It seems to build fine and the tests run on 4.0, but it’s your call.

On Nov 11, 2018, at 4:02 PM, Koray Koska [email protected] wrote:

@pixelmatrix I think we are using some 4.1 features. But I'm not entirely sure. Is there a reason you set it to 4.0?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

pixelmatrix avatar Nov 12 '18 00:11 pixelmatrix

If it does it's fine for me. Just wanted to know the reason. 4.1 is really a weird version...

On Mon, Nov 12, 2018, 01:24 Josh Pyles [email protected] wrote:

4.1 isn’t an option in Xcode for some reason. I think it was not intended to be a major release, but rather a temporary release until they got 4.2 out. It seems to build fine and the tests run on 4.0, but it’s your call.

On Nov 11, 2018, at 4:02 PM, Koray Koska [email protected] wrote:

@pixelmatrix I think we are using some 4.1 features. But I'm not entirely sure. Is there a reason you set it to 4.0?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/Boilertalk/Web3.swift/pull/72#issuecomment-437720006, or mute the thread https://github.com/notifications/unsubscribe-auth/AK1JzVhOXDY1K_Hf2WJylY1zthagp8sVks5uuL_CgaJpZM4YMHCK .

koraykoska avatar Nov 12 '18 00:11 koraykoska

@rogerluan Good catch. I ran the tests locally and then I forgot to follow up on this PR. Didn't realize there was a .swift-version file, but since it's deprecated, I removed it just now.

pixelmatrix avatar Nov 12 '18 18:11 pixelmatrix

Looks like removing that file broke something in the CI environment setup 🤔

rogerluan avatar Nov 12 '18 20:11 rogerluan

Yep, looks like there's something in the Travis config that relies on that file. @Ybrin can we remove that portion of the config now?

More on the deprecation here: https://blog.cocoapods.org/CocoaPods-1.4.0/

pixelmatrix avatar Nov 12 '18 21:11 pixelmatrix

Yes I was using .swift-version to install the swift compiler on the Linux test system. I guess we will have to manually specify it now in the travis config file.

koraykoska avatar Nov 12 '18 22:11 koraykoska

@Ybrin Maybe it can parse the Podspec and read the swift version from there?

pixelmatrix avatar Nov 12 '18 23:11 pixelmatrix

Alternatively we can leave the swift-version file for now and just make sure it matches. Might be just pushing the pain down the road though.

pixelmatrix avatar Nov 12 '18 23:11 pixelmatrix

Parsing the podspec would be ideal. But I've never done this before. If you know how, fell free to implement it, even if it's a little bit of an overkill, I appreciate it 😉

koraykoska avatar Nov 16 '18 00:11 koraykoska