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

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

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

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


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

pod install

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


你没有用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
【热门文章】
【热门文章】