Some iOS examples - e.g. Primitives, Events - call ofxAccelerometer.setup() in the setup() function. This leads to the error ‘linker command failed with exit code 1’. Once the offending line is commented out, the relevant projects compile and run with no problems. This problem has been noted previously here.
In my experience the workaround is to use ofxiOSCoreMotion instead.