【问题标题】:XCode 8.3 Archive failed, no actual error messageXCode 8.3 存档失败,没有实际的错误消息
【发布时间】:2017-06-24 02:22:12
【问题描述】:
  • Xcode 8.3.3
  • 斯威夫特 3
  • 使用可可豆荚,如下所列

我收到错误:

Linker command failed with exit code 1 (use -v to see invocation)

但没有具体的错误信息。当我单击 Xcode 左侧面板中的“链接器命令失败...”消息时,我没有被带到任何地方,也没有错误消息的更多详细信息。

我当前的Enable Bitcode 设置为“否”,尽管我也尝试将其设置为“是”。我尝试这样做的唯一原因是this Stackoverflow

我的 Cocoa Pods 可能来自我在网上阅读的内容,这是我的 Podfile:

# Uncomment this line to define a global platform for your project
#platform :ios, '9.0'

abstract_target 'commonPods' do
    # Comment this line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!

    # Pods for app
    pod 'MetaWear'
    pod 'MBProgressHUD'
    pod 'RealmSwift'
    pod 'Firebase', '4.0.0'
    pod 'Firebase/Auth', '4.0.0'
    pod 'Firebase/Database', '4.0.0'
    pod 'Firebase/Storage', '4.0.0'
    pod 'FacebookCore', '~> 0.2'
    pod 'FacebookLogin', '~> 0.2'
    pod 'FacebookShare', '~> 0.2'
    pod 'FBSDKCoreKit', '~> 4.22.1'
    pod 'FBSDKLoginKit', '~> 4.22.1'
    pod 'FBSDKShareKit', '~> 4.22.1'
    pod 'GoogleSignIn'

    target 'app' do

    end

    target 'app Lite' do

    end
end

我的 Podfile 中包含特定版本的 Facebook Cocoa Pod 的原因是因为最新的 Facebook SDK 存在 Swift 3 问题,请参阅here

我已经清理并重新启动了 XCode。我的 Xcode 项目/工作区在设备和模拟器上构建和运行良好。

我可以在 Xcode 的错误日志文件中查找错误消息的更多详细信息吗?

任何可疑的可可豆荚?

【问题讨论】:

  • 查看“报告导航器”窗格以获取问题的完整详细信息。
  • 我知道提到这样一个琐碎的笔记听起来很傻,但你有没有尝试过清理和重建?

标签: ios xcode


【解决方案1】:

试试这个

在您的 app target 下添加您的 pod,如下所示。

 abstract_target 'commonPods' do
        # Comment this line if you're not using Swift and don't want to use dynamic frameworks



   target 'app' do
        use_frameworks!

         # Pods for app
        pod 'MetaWear'
        pod 'MBProgressHUD'
        pod 'RealmSwift'
        pod 'Firebase', '4.0.0'
        pod 'Firebase/Auth', '4.0.0'
        pod 'Firebase/Database', '4.0.0'
        pod 'Firebase/Storage', '4.0.0'
        pod 'FacebookCore', '~> 0.2'
        pod 'FacebookLogin', '~> 0.2'
        pod 'FacebookShare', '~> 0.2'
        pod 'FBSDKCoreKit', '~> 4.22.1'
        pod 'FBSDKLoginKit', '~> 4.22.1'
        pod 'FBSDKShareKit', '~> 4.22.1'
        pod 'GoogleSignIn'
        end

        target 'app lite' do

        end
    end

在终端中运行以下命令

pod install --repo-update 

【讨论】:

    【解决方案2】:

    好的,所以我解决了缺少错误消息的问题,因为有一条错误消息并且它只是在我不熟悉的 Xcode 区域上。我找到了显示存档错误的 Xcode 区域并找到了错误消息详细信息:

    这当然给了我我需要的方向,我不知道何时、何地、谁以及为什么将“Pod_app”创建为链接,某些版本的 Cocoa Pods,我一直在研究这个项目一年,这是我的第一个存档。 app 是我的应用的名称。

    从下图中删除此“Pod_app”框架(单击突出显示的“-”)允许创建我的存档而不会出错。哦,苦乐参半的技术。下图显示了删除“Pod_app”之后的情况。我怀疑是否需要“Pods_commonPods__app.framework”链接,但我现在没有搞砸它,我可以存档,这对我开始我的星期五晚上很重要:)。

    【讨论】:

      猜你喜欢
      • 2013-01-15
      • 1970-01-01
      • 2017-09-07
      • 2014-04-30
      • 2021-03-04
      • 2018-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多