下载了一个Masonry的demo里面报错

报错信息:linker command failed with exit code 1 (use -v to see invocation)
报错

这个库文件是虚影在文件夹里也找不到

这个库文件是虚影,在文件夹里也找不到这个.a文件

阅读 3.2k
3 个回答

你没有用cocoapods安装依赖的包。

WHAT IS COCOAPODS

CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. It has over ten thousand libraries and can help you scale your projects elegantly. Interested in the news about Swift Package Manager? Check our FAQ

COCOAPODS

先打开根目录,运行

pop install --verbose --no-repo-update

楼上说过了,首先要用 CocoaPods 安装引用的第三方库:

pod install

然后补充一点,安装完成后用 xxx.xcworkspace 打开项目。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题