一、Undefined symbols for architecture armv7: "_GCControllerDidDisconnectNotification", reference from
在Build Phases中Link Binary With Libraries添加
增加两个库:
MediaPlayer.framework
GameController.framework
二、iOS之clang: error: linker command failed with exit code 1 (use -v to see invocation)
XCode在编译项目过程中,如果遇到问题导致编译不通过,会出现clang: error: linker command failed with exit code 1 (use -v to see invocation) 错误。
这个错误引起的原因一般都是说引用了重复的文件,但一个项目引用的文件那么多,怎么查找呢?点击错误提示,XCode并不会显示错误详情,这个算是XCode的一个bug么?
话说回来,想要查看引起这个错误的原因,其实可以这样:点击错误----右键----选择Reveal in Log
这时候,终于看到错误原因了,