[英]Why doesn't OS X appear as a target platform when compiling FireMonkey app?
I created a FireMonkey app in Delphi 10.1 (Berlin) (Win10, 64 bit). 我在Delphi 10.1(柏林)(Win10,64位)中创建了一个FireMonkey应用程序。 The app compiles and runs fine as 32-bit Windows, 64-bit Windows, and Android (running on an external device). 该应用程序编译并运行良好,如32位Windows,64位Windows和Android(在外部设备上运行)。 I'm using no nonstandard components, though it does include an sqlite3 database. 我没有使用非标准组件,但它包含sqlite3数据库。
I then switched to a MacMini I just recently set up for cross platform development (via Embarcadero's docwiki directions). 然后我转而使用最近刚为跨平台开发设置的MacMini(通过Embarcadero的docwiki方向)。 It's running OS X High Sierra with Delphi 10.1 on a VirtualBox with Win 8.1 (64 bit). 它在带有Win 8.1(64位)的VirtualBox上运行带有Delphi 10.1的OS X High Sierra。 I set up PASServer, etc. for OS X development. 我为OS X开发设置了PASServer等。 I can compile and run the Windows version of the app here. 我可以在这里编译并运行该应用程序的Windows版本。 I cannot, however, add OS X as a target platform . 但是,我不能将OS X添加为目标平台 。 This is the problem I'm hoping you can help me with. 这是我希望你可以帮助我的问题。
Here's what else I tried: 这是我尝试过的其他内容:
If I create a new app from scratch in this machine, I can compile and run it on OS X (so the issue is not me creating a bad connection profile or not having added OS X as a potential target platform). 如果我在这台机器上从头开始创建一个新的应用程序,我可以在OS X上编译并运行它(所以问题不是我创建一个错误的连接配置文件或没有添加OS X作为潜在的目标平台)。
If I take a simple, different (32-bit app) I created elsewhere I recreate the issue--I can run the app on the Windows VirtualBox but can't add OS X as a target platform. 如果我在其他地方创建一个简单的,不同的(32位应用程序)我重新创建问题 - 我可以在Windows VirtualBox上运行应用程序,但无法将OS X添加为目标平台。
Open the project's .dproj
file in a text editor and make sure OSX is present and enabled in the <Platforms>
section, eg: 在文本编辑器中打开项目的.dproj
文件,并确保在<Platforms>
部分中存在并启用OSX,例如:
<Platforms>
...
<Platform value="OSX32">True</Platform>
...
</Platforms>
That governs whether "Add Platform" will let you add OSX to the project or not. 这决定了“添加平台”是否允许您将OSX添加到项目中。
Also see "Add Platform" is disabled on Embarcadero's forums. 另请参阅Embarcadero论坛上的“添加平台”已禁用 。
Alternatively, just create a new project from scratch and add your existing source files to it. 或者,只需从头开始创建一个新项目,并将现有的源文件添加到其中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.