简体   繁体   中英

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). The app compiles and runs fine as 32-bit Windows, 64-bit Windows, and Android (running on an external device). I'm using no nonstandard components, though it does include an sqlite3 database.

I then switched to a MacMini I just recently set up for cross platform development (via Embarcadero's docwiki directions). It's running OS X High Sierra with Delphi 10.1 on a VirtualBox with Win 8.1 (64 bit). I set up PASServer, etc. for OS X development. I can compile and run the Windows version of the app here. I cannot, however, add OS X as a target platform . 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).

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.

Open the project's .dproj file in a text editor and make sure OSX is present and enabled in the <Platforms> section, eg:

<Platforms>
  ...
  <Platform value="OSX32">True</Platform>
  ... 
</Platforms>

That governs whether "Add Platform" will let you add OSX to the project or not.

Also see "Add Platform" is disabled on Embarcadero's forums.

Alternatively, just create a new project from scratch and add your existing source files to it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM