简体   繁体   English

Swift 2 IOS 9 = clang: 错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

[英]Swift 2 IOS 9 = clang: error: linker command failed with exit code 1 (use -v to see invocation)

XCode 错误日志的屏幕截图

Hi, I've a problem regarding Parse.嗨,我有一个关于 Parse 的问题。 today is my first day using it, started out with 4 errors now it's only one left.今天是我第一天使用它,开始时有 4 个错误,现在只剩下一个了。 I have a hard time understanding objective C with swift, started 3 days ago.我很难用 3 天前开始的 swift 理解目标 C。 While trying to understand this line of error and what makes this error appear?在尝试理解这一行错误时,是什么导致出现此错误? Is it a bug that has to be forced through or is it something that I'm missing?这是一个必须被迫通过的错误还是我遗漏的东西?

Yes, I have read all other posts before even considering posting my own question.是的,在考虑发布我自己的问题之前,我已经阅读了所有其他帖子。 It seems that a lot of people have this problem, but without getting a real good understanding answer to "Why this ERROR pops up, and how to prevent it".似乎很多人都有这个问题,但没有得到“为什么会弹出这个错误,以及如何防止它”的真正很好的理解答案。

It seems that I can only post 2 images at maximum and I've linked you one.好像我最多只能发两张图片,我已经给你链接了一张。 If you need anything else for deciphering the problem, please, I do not mind if you ask for more.如果您需要其他任何东西来破译问题,请,我不介意您要求更多。 =) =)

Check your app 'Package content'/ wether your framework is copied to app or not?检查您的应用程序“包内容”/您的框架是否已复制到应用程序? location: yourapp.app/Contents/Frameworks/ If parseUI is not in the frameworks -> go to your target in Xcode-> Add framework to 'Linked Binary With Libraries'位置:yourapp.app/Contents/Frameworks/ 如果 parseUI 不在框架中 -> 在 Xcode 中转到您的目标 -> 将框架添加到“Linked Binary With Libraries”

I hope, this will resolve your issue.我希望,这将解决您的问题。

I tried to remove one of the frameworks and another error appeared with a new framework.我试图删除其中一个框架,但新框架出现了另一个错误。 Apparently, as you said, they are not in the package they should be in. That's what the code says.显然,正如你所说,他们不在他们应该在的包中。这就是代码所说的。 But when I check the contents of my app, I can find the frameworks that supposedly be in myapp.app/contents/Framework in但是当我检查我的应用程序的内容时,我可以找到应该在 myapp.app/contents/Framework 中的框架

= =

myapp.app/contents/developer/platforms/IphoneOSplatform/developer/SDKs/IphoneOS.SDK/System/library/frameworks/'here they are' myapp.app/contents/developer/platforms/IphoneOSplatform/developer/SDKs/IphoneOS.SDK/System/library/frameworks/'here they are'

I found a solution, but you're not going to like it!我找到了一个解决方案,但你不会喜欢它!

I have read a lot about this problem, it seems there is a bug in Xcode, I think.我已经阅读了很多关于这个问题的文章,我认为 Xcode 中似乎存在一个错误。 When trying to add the frameworks, they go to another library, it looks like it's on the right path on Xcode but not in the content inside the app installation.当尝试添加框架时,它们会转到另一个库,看起来它在 Xcode 上的正确路径上,但不在应用程序安装中的内容中。 Doesn't matter how much you try to delete and try to install the frameworks yet again, they always end up somewhere else.无论您尝试删除多少框架并再次尝试安装框架,它们总是会在其他地方结束。 I'm not good of a programmer so I don't have the perfect solution here, but at least it will save you time.我不擅长程序员,所以我在这里没有完美的解决方案,但至少它会节省你的时间。

Save the codes you have written or the files that the codes are written on.保存您编写的代码或编写代码的文件。 Delete the old project, create a new project, install parse before you do anything else and then upload your files back in again.删除旧项目,创建一个新项目,在执行任何其他操作之前安装 parse,然后再次上传您的文件。

Did you tried disabling Bitcode ?您是否尝试禁用Bitcode

I did it in my case as suggested in Enable/disable Bitcode我按照启用/禁用位码中的建议在我的情况下做到了

as you can see in the pic attached正如您在所附图片中看到的那样

禁用位码

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Geofire(iOS)clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Geofire (iOS) clang: error: linker command failed with exit code 1 (use -v to see invocation) React Native IOS build clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用) - React Native IOS build clang: error: linker command failed with exit code 1 (use -v to see invocation) clang:错误:链接器命令在删除AdMob后,在iOS应用程序中使用退出代码1(使用-v查看调用)失败 - clang: error: linker command failed with exit code 1 (use -v to see invocation) in iOS app after deleting AdMob react-native ios 构建错误 - clang:错误:Z3175B426046787EECE7377387340B982 命令调用失败,退出代码1 - react-native ios build error - clang: error: linker command failed with exit code 1 (use -v to see invocation) 叮当:错误:链接器命令失败,退出代码为1(使用-v查看调用)Xcode 10,Xcode 10.1 Beta,Swift 4.2 - Clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 10, Xcode 10.1 Beta, Swift 4.2 链接器命令失败,迅速退出代码为1(使用-v查看调用) - linker command failed with exit code 1 (use -v to see invocation) in swift 链接器命令失败,退出代码为 1(使用 -v 查看调用)swift - linker command failed with exit code 1 (use -v to see invocation) swift 链接器命令失败,退出代码1(使用-v查看调用)在Swift中 - linker command failed with exit code 1 (use -v to see invocation) in Swift xcode中的错误:clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - error in xcode : clang: error: linker command failed with exit code 1 (use -v to see invocation) Xcode 5- clang:错误:链接器命令失败,退出代码为1(使用-v查看调用) - Xcode 5- clang: error: linker command failed with exit code 1 (use -v to see invocation)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM