我面临以下错误。
最低部署目标是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

如果您有任何 friend 遇到此问题,请帮忙。

最佳答案

在“构建设置”中的“有效体系结构”中添加x86_64并将“仅构建 Activity 体系结构”标记为“否”

关于ios - 架构x86_64的 undefined symbol :“_ AVAudioSessionCategoryPlayback”,引用自,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/39748701/

10-09 18:30