UIFoundation 2 切片架构 arm64 错误 Xcode 7.3

UIFoundation 2 slices for architecture arm64 error Xcode 7.3

我遇到以下错误

ld: warning: directory not found for option '-L/Avijit/Dogra/App/EZMCOM_LATEST 5.31.56 PM/EZMCOM_LATEST/Connect/Library/iphoneos' ld: warning: ignoring file Connect/Library/libPods.a, file was built for archive which is not the architecture being linked (arm64): Connect/Library/libPods.a ld: in '/System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation', missing required architecture arm64 in file /System/Library/PrivateFrameworks/UIFoundation.framework/UIFoundation (2 slices) for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

如何解决这个错误?

我遇到了同样的问题,我通过从自动导入的 build phases 中删除系统库 UIKit.framework(对于其他人可能不同)来修复它。

因为我导入的是旧的,我用otool检查它的链接库,里面有UIFoundation.framework

我没有检查旧 UIKit 和新 UIKit 之间有什么区别,但我发现这解决了问题。

我希望这对遇到同样问题的其他人有所帮助。