OSX : Qt5.6 causes a compile error.
Issue generated from Tuleap's migration script. Originally submitted by: Romain B. (rbertozzi)
Qt 5.6 causes an error during compilation.
A solution could be to block the version to 5.5 thanks to brew and qt55.
Log error :
Scanning dependencies of target Ring
[ 2%] Building CXX object CMakeFiles/Ring.dir/src/QNSTreeController.mm.o
In file included from /Users/rbertozzi/Desktop/ring/ring-project/client-macosx/src/QNSTreeController.mm:19:
In file included from /Users/rbertozzi/Desktop/ring/ring-project/client-macosx/src/QNSTreeController.h:21:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/qabstractitemmodel.h:37:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/qvariant.h:37:
In file included from /usr/local/opt/qt5/lib/QtCore.framework/Headers/qatomic.h:34:
/usr/local/opt/qt5/lib/QtCore.framework/Headers/qglobal.h:594:5: error: 'NSAutoreleasePool' is unavailable: not available in automatic reference counting mode
NSAutoreleasePool \*pool;
\^
/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h:10:12: note:
'NSAutoreleasePool' has been explicitly marked unavailable here
@interface NSAutoreleasePool : NSObject {
\^
1 error generated.
make[2]: \*\*\* [CMakeFiles/Ring.dir/src/QNSTreeController.mm.o] Error 1
make[1]: \*\*\* [CMakeFiles/Ring.dir/all] Error 2
make: \*\*\* [all] Error 2
Error executing script! Exit code: 512