xxx cannot be opened because of a problem
Check with the developer to make sure xxx works with this version of macOS. You may need to reinstall the application. Be sure to install any available updates for the application and macOS
Process: MyProgram [32151]
Path: /Applications/MyProgram.app/Contents/MacOS/MyProgram
Identifier: com.MyCompany.MyProgram
Version: 1.0 (1)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: MyProgram [32151]
User ID: 501
Date/Time: 2019-02-05 08:59:18.475 +0000
OS Version: Mac OS X 10.13.6 (17G4015)
Report Version: 12
Time Awake Since Boot: 1200000 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: DYLD, [0x4] Symbol missing
Application Specific Information:
dyld: launch, loading dependent libraries
Dyld Error Message:
Symbol not found: __objc_empty_cache
Referenced from: /Applications/MyProgram.app/Contents/MacOS/MyProgram
Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
in /Applications/MyProgram.app/Contents/MacOS/MyProgram
The info.plist file is just to show a nice error message in case someone starts the application on a lower Mac OS X version than what you specify there.
What does this show: xcrun nm -nm Application.app/Contents/MacOS/NameOfApplication |grep _objc_empty_cache
(undefined) external __objc_empty_cache (from CoreFoundation)
-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
And if that does not help, you could try adding {$linklib objc} to your program.
(undefined) external __objc_empty_cache (from libobjc)
On macOS versions before 10.14, that symbol is in libobjc rather than in CoreFoundation. Maybe the linker will use that version of the symbol if you compile against the SDK instead of against the system libraries. Does adding the following to the custom options help?Code: [Select]-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
(undefined) external __objc_empty_cache (from libobjc)
(undefined) external __objc_empty_cache (from libobjc)
Compiler "/Users*myuname/lazaruscocoa64/fpc/bin/x86_64-darwin/fpc.sh" does not support target x86_64-darwin
Error: ppcx64-M10.6; can't be executed, error message: Failed to execute "ppcx64-M10.6;", error code 127
Error: Error while linking
(undefined) external __objc_empty_cache (from libobjc)
This change will be available in the upcoming FPC 3.2.0Off topic but wondering, is there a reasonably solid estimate of when FPC 3.2.0 will be released ?
No, other than "probably in the second half of this year".This change will be available in the upcoming FPC 3.2.0Off topic but wondering, is there a reasonably solid estimate of when FPC 3.2.0 will be released ?
No, other than "probably in the second half of this year".Thank you!.