I have an app that has been working perfectly for more than a year (32 bit).. last week , our users updated to ios 9.. now my app loads and dies.. anything easy i can do?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But does DPF compile for you in Delphi 10 Seattle? Also, does this fix 64 bit apps with XE8 all DPF components? After making the change it seems to not crash now but I haven't tested extensively yet. Thanks!
Last edit: justapps 2015-09-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, I noticed the crash/lock up too.. Im kinda worried about this, because it worked to well for so long, now all of a sudden, Im having to scramble to figure out how to make this work.
Also, Lost my Done button on top of my IOS keyboard.. Seems to work, but blank there now..
Last edit: Gordon 2015-09-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
My app was 32 bit and I knew I couldn't debug in 64 bit in XE8 so I hesitated on releasing a new version since Apple requires 64 bit now. When iOS 9 came out, users started emailing me about crashes. Since I was in a hurry, I compiled as a 64 bit app using XE8 with SDK 8.4 and requested a expedited review since my app was able to open on iOS 9. Now that I've started testing it better my app still crashes. It is hard to pin point these issues because it is so slow debugging and difficult with Delphi/iOS. It isn't obvious where the problem is coming from. I don't know if it is tableview with frames or the way I am using PresentViewController to open a form with a TDPFNavigationControllerPage on it. It was fine in 32 bit. At this point I don't know whether to wait until Apple makes another update or try to recode some things or just rewrite using Firemonkey controls. I love the way DPF uses native controls so I hate to give that up. The Delphi "platform" controls don't even have a tabbar native component. I would use my native TMS iCL components but the navigation controller always wants to put a Back button on pages. As far as the keyboard my Done button is there on the keyboard. I'd be willing to donate more to get these components fixed. Do the component developers here have a way to test 64 bit on iOS 9/8?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Most stuff seems ok in IOS9 now.. I still am very stuck on one issue. In the TDPFComboBox.. It used to have a "Done" bar across the top.. after you picked your selection, you would click "Done" and the spinner/Picker would go a way.. Now, there is not bar with Done on it.. and no matter what you do, it wont go away on its own.. Please Please Please,,, any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok, when I removed the DPFQLPreviewController object completly.. My menu came back.. so weird.. It is affecting other things.. Now I just have to try the work around as mentioned to print PDF's.. Ive got it to work well with Allens idea, using the Web component.. but it now has now way (That I can see) to print or email the document.. Im 95% done.. But stuck..
Last edit: Gordon 2015-10-09
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any hopes on getting DPFQLPreviewController working? I used Allens solution, it works fine.. but I dont see any way of printing anymore.. I have spent an entire day trying to isolate the problem with the PDFView demo app.. I have commented out almost 90% of the code, and it still dies at start up.. If I remove the QLPreviewController from the main View, loads fine.. I am out of answers..and getting desperate.. Any ideas?
Last edit: Gordon 2015-10-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The last version from svn didn't work on os 9.1 both 32 and 64 Bit. The app crashes on startup.
I added the fix for http requests, but that didn't help!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you are using XE8 or before.. you will need to make a copy of FMX.Context.GLES.iOS, and copy it into your app dir.. then tweek the file as per the instructions.. If you dont do this with xe8, it will crash at startup.. Seattle is fine.
Could that be your problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have an app that has been working perfectly for more than a year (32 bit).. last week , our users updated to ios 9.. now my app loads and dies.. anything easy i can do?
me2 ! Plesae help
Found this : http://community.embarcadero.com/blogs/entry/workaround-steps-for-building-ios-32-bit-applications-for-ios-9-with-xe7-and-xe8
Don't know if it works.
Fixed in Delphi 10 Seattle !
But does DPF compile for you in Delphi 10 Seattle? Also, does this fix 64 bit apps with XE8 all DPF components? After making the change it seems to not crash now but I haven't tested extensively yet. Thanks!
Last edit: justapps 2015-09-19
All other seems ok, but DPFQLPreviewController will crash !
Tableview will crash in 64bit too
Yes, I noticed the crash/lock up too.. Im kinda worried about this, because it worked to well for so long, now all of a sudden, Im having to scramble to figure out how to make this work.
Also, Lost my Done button on top of my IOS keyboard.. Seems to work, but blank there now..
Last edit: Gordon 2015-09-22
My app was 32 bit and I knew I couldn't debug in 64 bit in XE8 so I hesitated on releasing a new version since Apple requires 64 bit now. When iOS 9 came out, users started emailing me about crashes. Since I was in a hurry, I compiled as a 64 bit app using XE8 with SDK 8.4 and requested a expedited review since my app was able to open on iOS 9. Now that I've started testing it better my app still crashes. It is hard to pin point these issues because it is so slow debugging and difficult with Delphi/iOS. It isn't obvious where the problem is coming from. I don't know if it is tableview with frames or the way I am using PresentViewController to open a form with a TDPFNavigationControllerPage on it. It was fine in 32 bit. At this point I don't know whether to wait until Apple makes another update or try to recode some things or just rewrite using Firemonkey controls. I love the way DPF uses native controls so I hate to give that up. The Delphi "platform" controls don't even have a tabbar native component. I would use my native TMS iCL components but the navigation controller always wants to put a Back button on pages. As far as the keyboard my Done button is there on the keyboard. I'd be willing to donate more to get these components fixed. Do the component developers here have a way to test 64 bit on iOS 9/8?
Since DPFQLPreviewController does not work, I added scalesPageToFit to DPF.iOS.UIWebView.pas so that I can zoom PDF inside webview :
TDPFWeb = class( TDPFiOSBaseControl )
private
..
FscalesPageToFit: Boolean;
procedure SetscalesPageToFit( const Value: Boolean);
published
..
property scalesPageToFit: Boolean read FscalesPageToFit write SetscalesPageToFit default True;
constructor TDPFWeb.create( AOwner: TComponent );
begin
..
FscalesPageToFit := True;
procedure TDPFWeb.Loaded;
begin
..
FUIWebView.SetscalesPageToFit(FscalesPageToFit);
procedure TDPFWeb.SetscalesPageToFit( const Value: Boolean );
begin
FscalesPageToFit := Value;
{$IFDEF IOS}
if FUIWebView <> nil then
begin
FUIWebView.SetscalesPageToFit( FscalesPageToFit )
end;
{$ENDIF}
end;
Allen, your solution works fine.. however I dont see any way to print using this method.. Can you help me find a way to print?
Most stuff seems ok in IOS9 now.. I still am very stuck on one issue. In the TDPFComboBox.. It used to have a "Done" bar across the top.. after you picked your selection, you would click "Done" and the spinner/Picker would go a way.. Now, there is not bar with Done on it.. and no matter what you do, it wont go away on its own.. Please Please Please,,, any ideas?
Ok, when I removed the DPFQLPreviewController object completly.. My menu came back.. so weird.. It is affecting other things.. Now I just have to try the work around as mentioned to print PDF's.. Ive got it to work well with Allens idea, using the Web component.. but it now has now way (That I can see) to print or email the document.. Im 95% done.. But stuck..
Last edit: Gordon 2015-10-09
Any hopes on getting DPFQLPreviewController working? I used Allens solution, it works fine.. but I dont see any way of printing anymore.. I have spent an entire day trying to isolate the problem with the PDFView demo app.. I have commented out almost 90% of the code, and it still dies at start up.. If I remove the QLPreviewController from the main View, loads fine.. I am out of answers..and getting desperate.. Any ideas?
Last edit: Gordon 2015-10-29
I've checked in a couple of fixes for suspicious things. Please test and let me know if that fixes it.
I think you got it! Thank you so so much! Ive been so desperate..
Can you tell me basically what you did? From what I can see, it was something in the Loaded method.. Invalid type cast?
Last edit: Gordon 2015-10-31
The last version from svn didn't work on os 9.1 both 32 and 64 Bit. The app crashes on startup.
I added the fix for http requests, but that didn't help!
If you are using XE8 or before.. you will need to make a copy of FMX.Context.GLES.iOS, and copy it into your app dir.. then tweek the file as per the instructions.. If you dont do this with xe8, it will crash at startup.. Seattle is fine.
Could that be your problem?
I tried that - no success
Hi JoeJim
I test last vesrion with XE10, OSX Capitanm, xCode 7.1 iPhone 5s 9.1 and iPhone 6s 9.1 !
But I can't see any problem !!!
I can't reproduce your bug !
Can you attach a simple project here ?
Regards
Here some output from the debugger:
-[UITabBarController viewDidAppearOriginal:]: unrecognized selector sent to instance 0x15e8b8850 Prozess Checkin (1402)
2015-11-10 08:51:44.524 Checkin[1402:389584] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITabBarController viewDidAppearOriginal:]: unrecognized selector sent to instance 0x15e8b8850' Prozess Checkin (1402)
Here's a small project.
I also use XE10, OSX 10.10.5, xCode 7.1, iPhone 5s 9.1, iPad Air 9.1
Last edit: JoeJim 2015-11-10
Hi JoeJim
Thank you for sample, I will check it on iPhone 6s with iOS 9.3