【问题标题】:Undefined symbols for architecture arm64 (iOS)架构 arm64 (iOS) 的未定义符号
【发布时间】:2017-04-28 16:41:38
【问题描述】:

我无法编译我的项目。它返回一个Undefined symbols for architecture arm64,后跟linker command failed with exit code 1。

它似乎总是在日志中属于 EZSwipeController 可可豆荚。怎么回事?

日志:

Undefined symbols for architecture arm64:
  "EZSwipeController.EZSwipeController.stackNavBars.getter : [__ObjC.UINavigationBar]", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackNavBars.materializeForSet : [__ObjC.UINavigationBar]", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackVC.getter : [__ObjC.UIViewController]!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackVC.setter : [__ObjC.UIViewController]!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackPageVC.getter : [__ObjC.UIViewController]!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackPageVC.setter : [__ObjC.UIViewController]!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackPageVC.materializeForSet : [__ObjC.UIViewController]!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.bottomNavigationHeight.getter : CoreGraphics.CGFloat", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.titleButton.getter : __ObjC.UIButton?", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.bottomNavigationHeight.setter : CoreGraphics.CGFloat", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackNavBars.setter : [__ObjC.UINavigationBar]", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.titleButton.materializeForSet : __ObjC.UIButton?", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.bottomNavigationHeight.materializeForSet : CoreGraphics.CGFloat", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.pageViewController.getter : __ObjC.UIPageViewController!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackStartLocation.materializeForSet : Swift.Int!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.pageViewController.setter : __ObjC.UIPageViewController!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.pageViewController.materializeForSet : __ObjC.UIPageViewController!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.titleButton.setter : __ObjC.UIButton?", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackStartLocation.setter : Swift.Int!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.currentStackVC.setter : __ObjC.UIViewController!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.currentStackVC.materializeForSet : __ObjC.UIViewController!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackVC.materializeForSet : [__ObjC.UIViewController]!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.datasource.getter : weak EZSwipeController.EZSwipeControllerDataSource?", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.navigationBarShouldBeOnBottom.materializeForSet : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.datasource.setter : weak EZSwipeController.EZSwipeControllerDataSource?", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.navigationBarShouldBeOnBottom.setter : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.datasource.materializeForSet : weak EZSwipeController.EZSwipeControllerDataSource?", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.cancelStandardButtonEvents.setter : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.stackStartLocation.getter : Swift.Int!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.navigationBarShouldBeOnBottom.getter : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.navigationBarShouldNotExist.getter : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.cancelStandardButtonEvents.materializeForSet : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.currentStackVC.getter : __ObjC.UIViewController!", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.navigationBarShouldNotExist.setter : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.cancelStandardButtonEvents.getter : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
  "EZSwipeController.EZSwipeController.navigationBarShouldNotExist.materializeForSet : Swift.Bool", referenced from:
      _OBJC_CLASS_$__TtC7ClickUp15TaskViewSwipeVC in TaskViewSwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp7SwipeVC in SwipeVC.o
      _OBJC_CLASS_$__TtC7ClickUp10BoxSwipeVC in BoxSwipeVC.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **


The following build commands failed:
    Ld /Users/greenhouse/Library/Developer/Xcode/DerivedData/ClickUp-femixwixrwqyxugbrvrqmcaqvdkh/Build/Intermediates/ArchiveIntermediates/ClickUp/IntermediateBuildFilesPath/ClickUp.build/Release-iphoneos/ClickUp.build/Objects-normal/arm64/ClickUp normal arm64
(1 failure)

Pod 文件:

platform :ios, '9.0'
use_frameworks!
inhibit_all_warnings!

target 'ClickUp' do
  pod 'Alamofire', '~> 4.0'
  pod 'KeychainAccess', '~> 3.0.0'
  pod 'MBProgressHUD', '~> 0.9.2'
  pod 'Kingfisher', '~> 3.0'
  pod "HockeySDK", '~> 4.0.2'
  pod 'SnapKit', '~> 3.0'
  pod 'HMSegmentedControl', '~> 1.5.3'
  pod 'libPhoneNumber-iOS', '~> 0.8.16'
  pod 'DateTools', '~> 1.7.0'
  pod 'RSKImageCropper', '~> 1.5.1'
  pod 'FLAnimatedImage', '~> 1.0'
  pod 'EZSwipeController', '~> 0.6.1'
  pod 'MGSwipeTableCell', '~> 1.5.5'
end

【问题讨论】:

  • 在您的工作区中,您确定它在Build Phases > Link Binary with Libraries 下链接?
  • 在我的Build Phases > Link Binary with Libraries 中,我有“Pods_ClickUp.framework”(ClickUp 是我的应用程序的名称)。我应该包括其他东西吗?
  • 不,那是正确的。我想您已经清理了项目,并尝试了 pod install 和 pod update?

标签: ios xcode cocoapods ezswipecontroller


【解决方案1】:

事实证明,EZSwipeController 做了一些事情(7 天前提交),如果您使用的是 CocoaPods,这会破坏应用程序。只需移除 cocoapod 并手动将库拖放到项目中即可。

【讨论】:

  • 我在使用 CocoaPods 的 WDSideMenu 上遇到了同样的问题。然后我删除了 Pod 条目并通过手动拖放添加 WDSideMenu 到项目中。有效!感谢您提供此解决方案。
猜你喜欢
  • 2016-01-08
  • 1970-01-01
  • 2013-10-13
  • 1970-01-01
  • 2021-08-23
  • 2021-07-25
相关资源
最近更新 更多