My project started giving errors with one of the PhotoKit headers, namely AVCompositionTrackSegment.h
. The error is Expected identifier or '('
and it does not point to any line in the file. This occurs when I import either the Photos
or MediaPlayer
framework to my Swift file. I'm using Xcode 7.3, but I'm not sure if this started before I updated Xcode. I have removed derived data directory and done a clean build with no success. Any idea why Xcode is broken this way?
Edit
Started to work with the simulator when uninstalled the app. But with a real device that does not help.