【问题标题】:Undefined symbols for architecture x86_64: "_AVAudioSessionCategoryPlayback", referenced from架构 x86_64 的未定义符号:“_AVAudioSessionCategoryPlayback”,引用自
【发布时间】:2017-02-06 12:06:23
【问题描述】:

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

如果有朋友在帮忙之前遇到过这个问题。

【问题讨论】:

    标签: ios objective-c iphone architecture


    【解决方案1】:

    对于 CATransform* 错误,在 Build Phases 下的 Link Binary With Libraries 添加 QuartzCore:

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      • 除此之外,您还需要将 AVFoundation.framework 放入 Project->Target->linked Frameworks and Libraries 列表中。可能你也需要 AVKit.framework
      猜你喜欢
      • 2016-11-12
      • 2018-06-23
      • 1970-01-01
      • 1970-01-01
      • 2020-12-21
      • 2019-01-26
      • 1970-01-01
      • 1970-01-01
      • 2021-05-04
      相关资源
      最近更新 更多