Recent

Author Topic: macOS: control classes not added automatically  (Read 120 times)

trev

  • Sr. Member
  • ****
  • Posts: 344
  • Former Delphi 7 and Delphi 10.2 User
macOS: control classes not added automatically
« on: January 11, 2020, 02:49:24 am »
From time to time my macOS applications enter the twilight zone wherein adding, for example, a memo to a form compiles but the application dies when run with "Class TMemo not found" and sure enough, when I check, I find that "Memo1: TMemo; " is missing from the source code.

Unfortunately I have not previously been able to track down how/when this behaviour is triggered which means I have not been able to provide a minimal demo project with the issue... until now because this project is small enough to upload and was only used to test various macOS features :)

See attached. Compile and run -> "Class TMemo not found".  Delete the memo and add it again. Same result.

You will obviously need macOS.
« Last Edit: January 11, 2020, 02:58:59 am by trev »
o Lazarus v2.1.0 r62452, FPC v3.3.1 r42644, macOS 10.14.6 (with sup update), Xcode 10.3
o Lazarus v2.1.0 r61574, FPC v3.3.1 r42318, FreeBSD 12.0 (Parallels VM)
o Lazarus v2.1.0 r61574, FPC v3.0.4, Ubuntu 18.04 (Parallels VM)