架构x86_64的未定义符号:" _AVAudioSessionCategoryPlayback",引自

时间:2016-09-28 13:17:09

标签: ios objective-c iphone architecture

我正面临着以下错误。 最低部署目标是8.0 我正在使用Xcode 7.3.1

Undefined symbols for architecture x86_64:
  "_AVAudioSessionCategoryPlayback", referenced from:
      -[AppDelegate loadInitialParameters] in AppDelegate.o
  "_AVAudioSessionInterruptionNotification", referenced from:
      -[AppDelegate loadInitialParameters] in AppDelegate.o
  "_AVAudioSessionInterruptionTypeKey", referenced from:
      -[AppDelegate sessionDidInterrupt:] in AppDelegate.o
  "_AVMetadataID3MetadataKeyGeneralEncapsulatedObject", referenced from:
      -[BiscootAudioPlayer handleTimedMetadata:] in BiscootAudioPlayer.o
  "_AVPlayerItemDidPlayToEndTimeNotification", referenced from:
      -[BiscootAudioPlayer stopPlayer] in BiscootAudioPlayer.o
      -[BiscootAudioPlayer dealloc] in BiscootAudioPlayer.o
      -[BiscootAudioPlayer prepareToPlayAsset:withKeys:] in BiscootAudioPlayer.o
      -[BiscootAudioPlayer updateCurrentTimeForPlayer] in BiscootAudioPlayer.o
  "_CATransform3DConcat", referenced from:
      -[CustomIOS7AlertView close] in CustomIOS7AlertView.o
      ___28-[CustomIOS7AlertView close]_block_invoke in CustomIOS7AlertView.o
      ___52+[MMDrawerVisualState slideAndScaleVisualStateBlock]_block_invoke in MMDrawerVisualState.o
      ___51+[MMDrawerVisualState swingingDoorVisualStateBlock]_block_invoke in MMDrawerVisualState.o
  "_CATransform3DIdentity", referenced from:
      ___73-[MMExampleDrawerVisualStateManager drawerVisualStateBlockForDrawerSide:]_block_invoke in MMExampleDrawerVisualStateManager.o
      ___52+[MMDrawerVisualState slideAndScaleVisualStateBlock]_block_invoke in MMDrawerVisualState.o
      ___51+[MMDrawerVisualState swingingDoorVisualStateBlock]_block_invoke in MMDrawerVisualState.o
      ___66+[MMDrawerVisualState parallaxVisualStateBlockWithParallaxFactor:]_block_invoke in MMDrawerVisualState.o
      -[MMDrawerController applyOvershootScaleTransformForDrawerSide:percentVisible:] in MMDrawerController.o
      -[MMDrawerController resetDrawerVisualStateForDrawerSide:] in MMDrawerController.o
  "_CATransform3DMakeRotation", referenced from:
      -[CustomIOS7AlertView close] in CustomIOS7AlertView.o
      ___40-[SVPullToRefreshView rotateArrow:hide:]_block_invoke in UIScrollView+SVPullToRefresh.o
  "_CATransform3DMakeScale", referenced from:
      ___73-[MMExampleDrawerVisualStateManager drawerVisualStateBlockForDrawerSide:]_block_invoke in 

如果有任何朋友在善意帮助之前遇到过这个问题。

2 个答案:

答案 0 :(得分:1)

在Build Settings中的Valid Architectures中添加x86_64,并将Build Active Architecture标记为NO

答案 1 :(得分:1)

对于CATransform *错误,在构建阶段的链接二进制文件库中添加QuartzCore: enter image description here