简体   繁体   English

Xcode 9.1-文件中缺少必需的体系结构x86_64

[英]Xcode 9.1 - Missing required architecture x86_64 in file

I am using the library SwipeCellKit and having problems since the update to Xcode 9.1. 我正在使用库SwipeCellKit ,并且自从更新Xcode 9.1以来遇到问题。 I've recompiled the library with Xcode 9.1 and reimported the .framework in my Project. 我用Xcode 9.1重新编译了库,并在项目中重新导入了.framework But I still can't use the classes from the library. 但是我仍然不能使用库中的类。 I am getting this warning: 我收到此警告:

ld: warning: ignoring file /Users/.../Frameworks/SwipeCellKit/SwipeCellKit.framework/SwipeCellKit, missing required architecture x86_64 in file /Users/.../Frameworks/SwipeCellKit/SwipeCellKit.framework/SwipeCellKit (2 slices)

I've tried what is suggested here and set Build Active Architecture Only to No when building the library. 我尝试了这里提出的建议并在构建库时将“ Build Active Architecture OnlyBuild Active Architecture Only为“ No ”。 But it doesn't help. 但这没有帮助。 I've also cleaned the build folder many times, which doesn't solve the problem either. 我还多次清理了build文件夹,但这也不能解决问题。

Please always use Cocoapods to install libraries for your project, it will automatically manage all dependencies. 请始终使用Cocoapods为您的项目安装库,它将自动管理所有依赖项。

To setup you project for cocoapods please follow steps mentioned in http://cocoapods.org/ it will make your life easier believe me. 要设置您的椰壳纲项目,请按照http://cocoapods.org/中提到的步骤进行操作,这会让您的生活更容易相信我。

Once you setup cocoapods successfully, then add 成功设置cocoapods之后,请添加

pod 'SwipeCellKit'

to your Podfile and run terminal and goto your root project directory using cd .... then type pod install then open your root project folder using finder and open YOUR_PROJECT_NAME.xcworkspace file and the issue will be gone gone, 到Podfile并运行终端,然后使用cd ....进入根项目目录,然后键入pod install,然后使用finder打开根项目文件夹并打开YOUR_PROJECT_NAME.xcworkspace文件,问题将消失,

let me know if you encounter any issue installing pods. 如果您在安装Pod时遇到任何问题,请告诉我。 Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM