【问题标题】:missing required architecture after upgrading to cocoapods 1.0升级到 cocoapods 1.0 后缺少所需的架构
【发布时间】:2016-12-19 09:21:12
【问题描述】:

我正在尝试将 Cocoapods 升级到 1.0 版,但新版本链接 DTCoreText 失败。 当我尝试在模拟器上运行项目时,我得到了

ld: warning: ignoring file /[...]/libDTCoreText.a, missing required architecture x86_64 in file /[...]/libDTCoreText.a (2 slices)

当我尝试存档时,我得到了

ld: warning: ignoring file /[...]/libDTCoreText.a, missing required architecture arm64 in file /[...]/libDTCoreText.a (2 slices)

在一个干净的项目中使用我的同一个 Podfile 一切正常!所以它一定是我的项目,但我不知道它可能是什么。

我用过

pod deintegrate
pod install

从项目中清理并删除了派生数据,但没有成功。

项目和 Pod 的架构设置为“标准架构(armv7、arm64)”

我使用的是 Xcode 7.3,我的 Podfile 看起来像这样:

source 'https://github.com/CocoaPods/Specs.git'
project 'Classes/MEG.xcodeproj'
platform :ios, '8.0'
inhibit_all_warnings!

target 'myApp' do
    pod 'Reachability', '~> 3.1'
    pod 'DTCoreText', '~> 1.6'
    pod 'Flurry-iOS-SDK/FlurrySDK', '7.1.0'
    pod 'DCIntrospect-ARC'
    pod 'AFNetworking', '~> 2.5'
    pod 'AFNetworkActivityLogger', '~> 2.0'
    pod 'SDWebImage', '~> 3.7'
    pod 'SVProgressHUD', '~> 1.0'
    pod 'CHTCollectionViewWaterfallLayout'
    pod 'BDBOAuth1Manager', '~> 1.5.0'
    pod 'FMDB', '~> 2.4'
    pod 'Masonry', '~> 0.6'
    pod 'RSKImageCropper', '~> 1.0'
    pod 'AWSiOSSDKv2/SNS', '~> 2.0'
    pod 'JSQMessagesViewController', '~> 6.0'
    pod 'SKTagView', '~> 0.0'
    pod 'PSTAlertController', '~> 1.2'
    pod 'UITextView+Placeholder', '~> 1.1'
    pod 'MWFeedParser', '~> 1.0'
    pod 'tarkit', '~> 0.1'
    pod 'XMPPFramework', '3.6.5'
    pod 'XMLDictionary', '~> 1.4'
    pod 'NewRelicAgent', '~> 5.6'
    pod 'NHNetworkTime', '~> 1.6'

    target 'myApp Tests' do
        inherit! :search_paths
        pod 'OCMock', '~> 3.2'
    end
end

【问题讨论】:

    标签: ios xcode7 cocoapods dtcoretext


    【解决方案1】:

    我终于找到了问题所在。我的项目文件夹中有一个旧版本的libDTCoreText.a

    即使在项目的任何地方都没有引用这个文件,cocoapods 还是试图链接它。 Xcode 可能打算在 cocoapods 库中搜索 libDTCoreText.a,但首先在项目文件夹中找到它,因为它也列在库搜索路径中。

    无论如何,删除文件解决了问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-28
      • 2016-12-23
      • 2012-04-03
      • 2016-02-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-15
      相关资源
      最近更新 更多