Jtapplecalendar: How to use JTAppleCalendar in iOS 11, XCode 9?

Created on 13 Sep 2017  路  7Comments  路  Source: patchthecode/JTAppleCalendar

Hello, my app need to be released in iOS 11. (minimum deployment target)
I've been using JTAppleCalendar 7.0.4 (installed via CocoaPods with pod 'JTAppleCalendar', '~> 7.0') while i've been developing the app with iOS 10 Xcode 8.
Now i've opened app in Xcode 9, converted to Swift 4 and changed deployment target to iOS 11 and I see errors related to JTAppleCalendar.
Can't you tell me please how to migrate or update your calendar to make it work in iOS 11 project?
Is it available at the moment? Should I convert JTAppleCalendar Target to Swift 4?

Most helpful comment

Converted, everything is Ok now, thanks! Solved!

All 7 comments

the latest version is compatible.
There are some changes which fixes some errors on version 7.0.4
You need to add one extra function, and I think the name of one variable has changed.

Latest version is on master branch.
You can join me here (after my work time) to help with changes if you like -> https://gitter.im/patchthecode/JTAppleCalendar

Thanks for answer and invitation, but should I convert the pod to Swift 4 or not? ( It's the first time i'm migrating to another Swift version, that's why I don't clearly understand how to update pod. ) As long as I understand your answer, I need to update my pod to 7.0.6 with with pod 'JTAppleCalendar', '~> 7.0.6 and not update the pod to Swift 4 ?
screen shot 2017-09-13 at 20 32 27

Yes.
Its asking you to update to swift4 because 7.0.4 is not swift 4 compatible.

If you update to 7.0.6, then it will not ask you this, because 7.0.6 _is_ swift 4 compatible.

i am currently updating 7.0.6 on master branch. After I release it, it will become version 7.1.0
But since you need your project right now, then update to 7.0.6

After you update, just do a check to see if every thing is ok and is as behaved in 7.0.4
And let me know.

Just updated my podfile to 7.0.6 with: pod 'JTAppleCalendar', :git => 'https://github.com/patchthecode/JTAppleCalendar.git'
screen shot 2017-09-13 at 21 11 58

iOS Deployment target is set to iOS 11. I cleaned the project.
In issue navigator it still showing me Swift 4 issue, asking me to convert JTAppleCalendar to Swift 4.
screen shot 2017-09-13 at 21 19 26

Try converting and let me know if any code has changed.
I do not think any code should be changed. Try it and let me know.

Converted, everything is Ok now, thanks! Solved!

awesome.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kevinw14 picture Kevinw14  路  3Comments

blinkmeoff picture blinkmeoff  路  3Comments

prahaladm picture prahaladm  路  3Comments

leo150 picture leo150  路  3Comments

programus picture programus  路  3Comments