Hi
trying out my m1, and getting issue here, looking at it when arch64 I target, ns_url_request thinks its an iPhone
unit ns_url_request;
{
TNSHTTPSendAndReceive class for use by itself as an HTTP client or with
Web Service Toolkit (http://wiki.freepascal.org/Web_Service_Toolkit).
Author: Phil Hess.
Copyright: Copyright 2011 Phil Hess.
License: Modified LGPL (see Free Pascal's rtl/COPYING.FPC).
This means you can link your code to this compiled unit (statically
in a standalone executable or dynamically in a library) without
releasing your code. Only changes to this unit need to be made
publicly available.
}
{$modeswitch ObjectiveC1}
interface
uses
SysUtils,
Classes,
httpdefs,
{$IF DEFINED(IPHONESIM) OR DEFINED(CPUARM) OR DEFINED(CPUAARCH64)} //iOS
{$IFDEF NoiPhoneAll}
Foundation,
{$ELSE}
iPhoneAll,
{$ENDIF}
{$ELSE} //macOS
{$IFDEF NoCocoaAll}
Foundation, <--------
{$ELSE}
CocoaAll,
{$ENDIF}
{$ENDIF}
NSHelpers;