JTAppleCalendar crashes in DateSegmentInfoFrom

Created on 13 Jun 2017  路  11Comments  路  Source: patchthecode/JTAppleCalendar

@patchthecode JTAppleCalendar crashes in DateSegmentInfoFrom. InDates, MonthDates, and OutDates are nil.

it is working fine in debug mode but crashes in Release mode. Optimization level is set to none but still no success. Any Help?

Error" JTAppleCalendar was compiled with optimization - stepping may behave oddly; variables may not be available.

All 11 comments

Hey, let's try to make the questions more developer friendly ok? :)

  1. What version of the library are you using?
  2. In which function is the crash?
  3. What do you do to cause the crash to happen?

Basically can you give me enough informaiton so that i can reproduce this?

Its been 3 days.
Closing this until more information is provided.
Once you provide the input, i will reopen this.

@patchthecode

What version of the library are you using?
It is 7.0

In which function is the crash?
It crashes in file 'JTAppleCalendarView.swift' in method 'dateSegmentInfoFrom' while calling this 'let retval = DateSegmentInfo(indates: inDates, monthDates: monthDates, outdates: outDates)' with an error 'JTAppleCalendar was compiled with optimization - stepping may behave oddly; variables may not be available'.

What do you do to cause the crash to happen?
Well, I have created a new project and add JTAppleCalendar via pods. When I run the application in debug mode it is working fine but when I run it in release mode the application crashes.

can you confirm that you're using version 7.0.4?
Also, can you pase me the crash log?

If you have more questions then can you join me here -> https://gitter.im/patchthecode/JTAppleCalendar

I was having the exact issue with my app after following the video tutorial on youtube, I have the latest version of JTApple Calendar, but not the latest version of Xcode 8 (Simulator running iOS 10.0).
I fixed the problem by selecting "Pods" in the project navigator --> JTAppleCalendar in Targets --> Build settings -->Setting optimization level for both Apple LLVM and Swift Compiler to None.

@Moonif is this a release issue thing? I have never heard of this before.

Yes, the debug build works perfectly fine, the error only appears on release and causes the app to crash, it's a very strange issue.

I'll look into this,
i hope this is a settings issue.

added to project TODo list

Hello,

Just wanted to let you know that this is no longer an issue using the latest version of JTAppleCalendar (As of this date) and latest version of Xcode.

Thank you!

youre welcome man.
Thanks for letting me and others know.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blinkmeoff picture blinkmeoff  路  3Comments

leo150 picture leo150  路  3Comments

Fatalution picture Fatalution  路  3Comments

MoridinBG picture MoridinBG  路  5Comments

nikolalukovic picture nikolalukovic  路  4Comments