完全按照这个帖子做了:
http://blog.sina.com.cn/s/blog_78a55c9f0100xnv0.html
一开始是UIDeviceOrientation没定义,然后我搜了网上定义了一个
typedef enum {
UIDeviceOrientationUnknown,
UIDeviceOrientationPortrait, // Device oriented vertically, home button on the bottom
UIDeviceOrientationPortraitUpsideDown, // Device oriented vertically, home button on the top
UIDeviceOrientationLandscapeLeft, // Device oriented horizontally, home button on the right
UIDeviceOrientationLandscapeRight, // Device oriented horizontally, home button on the left
UIDeviceOrientationFaceUp, // Device oriented flat, face up
UIDeviceOrientationFaceDown // Device oriented flat, face down
} UIDeviceOrientation;
定义完后编译出现3个红叹号了,其中一个:
Undefined symbols for architecture armv7:
"OBJC_METACLASS_CCVideoPlayerImpliOS", referenced from:
_OBJC_METACLASS__CCVideoPlayerImpl in CCVideoPlayer.o
"OBJC_CLASS_CCVideoPlayerImpliOS", referenced from:
objc-class-ref in CCVideoPlayer.o
_OBJC_CLASS__CCVideoPlayerImpl in CCVideoPlayer.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
可是这些文件我都加入工程了啊,怎么会索引不到呢。。。
mediaplayer.framework我也加入工程了啊 。。。求大神指点