QtPrivilegedHelperExample icon indicating copy to clipboard operation
QtPrivilegedHelperExample copied to clipboard

The file was not recognized as a valid object file && and failed on macOS Sierra

Open systemmind opened this issue 7 years ago • 2 comments

I got couple of such errors when I am trying to build the project: ERROR: "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump: '/Users/mac/projects/mohammed/QtPrivilegedHelperExampleModified/build-PrivilegedHelperExample-qt_5_7_1-Debug/HostApp.app/Contents/Frameworks/QtWidgets.framework/Versions/5/Resources/Info.plist': The file was not recognized as a valid object file.\nfatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/otool: internal objdump command failed\n"

This issue returns the macdeployqt utility, I don't know if it is critical, but the HostApp does not work for me. In line 74 of file smjobbless.mm result is always false. result = SMJobBless(kSMDomainSystemLaunchd, label, authRef, error);

I am using qt 5.7.1 macOS Sierra

But the objective-C ECHelper project works fine. Xcode Version 8.2.1

Did you test the project on macOS Sierra?

systemmind avatar Feb 16 '17 15:02 systemmind