ofxAccelerometer examples do not compile in Xcode 9


#1

The examples in OF 0.10.0 that include ofxAccelerometer do not successfully compile with Xcode 9. They give the following error message:

Undefined symbols for architecture arm64:
“_ofxAccelerometer”, referenced from:
ofApp::setup() in ofApp.o
“ofxAccelerometerHandler::setup()”, referenced from:
ofApp::setup() in ofApp.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)


#2

I found a solution for this: