即使删除 x86_64 要求后仍缺少所需的体系结构 x86_64

Missing required architecture x86_64 even after removing x86_64 requirement

我有一个 Objective-C 静态库,我想将其添加到我的 Swift 项目中。第一个问题是图书馆没有 x86_64 要求。当然,我在我的目标的构建设置下删除了它,而是只包含 arm64armv7armv7s。我根据图书馆的口头输出选择了这些:

lipo -info libMobileImagingEngine.a 
Architectures in the fat file: libMobileImagingEngine.a are: arm64 armv7 armv7s

这是我的“架构”选项卡的屏幕截图:

但我仍然收到两个警告:

Ignoring file [filepath here] missing required architecture i386 in file [filepath again] (3 Slices)

Ignoring file [filepath here] missing required architecture x86_64 in file [filepath again] (3 Slices)

Dipen 关于 运行 模拟器上的应用程序提出了一个很好的观点,这似乎是问题所在。我能够找到我正在使用的库的另一个版本,并且也导入了那个库。现在 Xcode 将根据 运行 所在的设备简单地忽略不相关的一个。