Right now I'm stuck at
sudo /usr/local/lib/fpc/3.1.1/ppcrossarm -Cparmv7 -Cfvfpv3 -dIPHONEALL -FD/Applications/Xcode.app/Contents/Developer iPhoneAll.pas
Free Pascal Compiler version 3.1.1 [2015/05/22] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
Target OS: Darwin for ARM
Compiling iPhoneAll.pas
CAMetalLayer.inc(12,94) Error: Forward declaration "MTLDrawableProtocol" must be resolved before a class can conform to or implement it
NSFileWrapper.inc(29,19) Error: No matching implementation for interface method "initWithCoder(NSCoder):^objc_object;" found
CAMetalLayer.inc(23,12) Error: Identifier not found "_CAMetalLayerPrivatePtr"
CAMetalLayer.inc(23,35) Error: Error in type definition
CAMetalLayer.inc(27,54) Error: Identifier not found "MTLPixelFormat"
CAMetalLayer.inc(28,41) Error: Identifier not found "MTLPixelFormat"
UIActionSheet.inc(26,14) Fatal: Syntax error, "identifier" expected but "FUNCTION" found
Fatal: Compilation aborted
The code for CAMetalLayer.inc(12,94)
looks like this:
{$ifdef PROTOCOLS}
type
CAMetalDrawableProtocol = objcprotocol external name 'CAMetalDrawable' (MTLDrawableProtocol)
function texture: MTLTextureProtocol; message 'texture';
function layer: CAMetalLayer; message 'layer';
end;
{$endif}
I am using Version 6.3.1 (6D1002) and it has the XCode 8.3 SDK.
Any hints?