[英]Exception Class aborted(6) in Delphi XE8 deploying to iPhone
I have a mobile app written in Delphi XE8 over Windows 7. It compiled and ran on my iPhone Last Friday. 我有一个通过Windows 7用Delphi XE8编写的移动应用程序。它在上星期五编译并在我的iPhone上运行。 Over the weekend I upgraded my iOS version to 9.0.1.
周末,我将iOS版本升级到9.0.1。 This morning (Monday) I am getting the error message: 'Project Exception Class aborted(6).
今天早上(星期一),我收到错误消息:'Project Exception Class aborted(6)。
The project compiles and builds fine, but when I try to deploy the app to my iPhone the exception occurs at: 该项目可以编译并正常运行,但是当我尝试将应用程序部署到iPhone时,异常发生在:
FSharedContext := TEAGLContext.Wrap(TEAGLContext.Create.initWithAPI(kEAGLRenderingAPIOpenGLES2));
of 的
class procedure TCustomContextIOS.CreateSharedContext;
begin
if FSharedContext = nil then
begin
FSharedContext := TEAGLContext.Wrap(TEAGLContext.Create.initWithAPI(kEAGLRenderingAPIOpenGLES2));
TEAGLContext.OCClass.setCurrentContext(FSharedContext);
end;
end;
in the unit FMX.Context.GLES.iOS 在单元FMX.Context.GLES.iOS中
Could this be caused from the iOS version update or could something else have gone wrong? 这可能是由于iOS版本更新引起的,还是其他原因出了问题? The other posts I found regarding this issue appear to have something to do with deploying to android but I am using an iPhone.
我发现的其他有关此问题的帖子似乎与部署到android有关,但我使用的是iPhone。
Any help is appreciated. 任何帮助表示赞赏。
You have to apply a patch manually to target iOS 9 with XE8. 您必须手动将修补程序应用于使用XE8的iOS 9。 There is a blog post describing the steps: Steps for building iOS 32-bit applications for iOS 9 with XE7 and XE8 .
有一篇博客文章描述了这些步骤: 使用XE7和XE8为iOS 9构建iOS 32位应用程序的步骤 。 It boils down to change the
Create
to an Alloc
in line 52 of FMX.Context.GLES.iOS.pas using a local copy of that file. 它归结为使用该文件的本地副本在FMX.Context.GLES.iOS.pas的第52行中将
Create
更改为Alloc
。
FSharedContext := TEAGLContext.Wrap(TEAGLContext.Alloc.initWithAPI(kEAGLRenderingAPIOpenGLES2));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.