gpt4 book ai didi

ios - 为什么我的应用程序突然无法构建并提示这些 "ld"和 "clang"错误?

转载 作者:可可西里 更新时间:2023-11-01 03:03:46 25 4
gpt4 key购买 nike

这些错误真的让我很困惑,我不知道我做了什么来触发它们:

ld: warning: directory not found for option '-F/"..."'
ld: warning: ignoring file "..."/iOS 7/Crashlytics.framework/Crashlytics, file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6F 0x6E 0x73 0x2F 0x43 0x75 0x72 0x72 0x65 0x6E 0x74 ) which is not the architecture being linked (i386): /"..."/Crashlytics.framework/Crashlytics
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_Crashlytics", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不知道它在说什么。我该如何解决?

最佳答案

来自 Crashlytics 支持:

  1. 从您的项目中删除 Crashlytics.framework。

  2. 在终端中运行此命令以将框架复制到您的桌面:

ditto -xk /Applications/Fabric.app/Contents/Resources/com.crashlytics.sdk.ios-default.zip ~/Desktop/

  1. 将框架添加并复制回您的项目。

关于ios - 为什么我的应用程序突然无法构建并提示这些 "ld"和 "clang"错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20941841/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com