[英]Xcode 8.3 Archive error: Linker command failed with exit code 1
I started getting this error only after upgrading from Xcode 8.2 to Xcode 8.3, and only when making an archive build (debug builds work fine). 我只是在从Xcode 8.2升级到Xcode 8.3之后才开始收到此错误,并且仅在进行归档构建时 (调试版本工作正常)。
When I do the archive via Xcode, the only message I get is "Linker command failed with exit code 1 (use -v to see invocation). 当我通过Xcode进行存档时,我得到的唯一消息是“链接器命令失败,退出代码为1(使用-v查看调用)。
I build with the command line xcodebuild -scheme MyProduct
我使用命令行
xcodebuild -scheme MyProduct
构建
When I built this way, I found a number of issues (again, only when doing Archive): 当我以这种方式构建时,我发现了许多问题(同样,只有在进行存档时):
import UIKit
to practically every swift file. import UIKit
添加到几乎每个swift文件中。 My current issue is with the AWS pod, using version 2.5.3 我目前的问题是使用版本2.5.3的AWS pod
So my app-Bridging-Header.h has #import <AWSS3/AWSS3.h>
所以我的app-Bridging-Header.h有
#import <AWSS3/AWSS3.h>
Here is the error from the command line build: 以下是命令行构建中的错误:
error: 'AWSS3/AWSS3.h' file not found with <angled> include; use "quotes" instead
#import <AWSS3/AWSS3.h>
^
The error log continues after that. 之后错误日志继续。 I also tried the crazy suggestion of switch in the import to "AWSS3/AWSS3.h"...that didn't work either.
我还尝试了导入切换到“AWSS3 / AWSS3.h”的疯狂建议......这也没有用。
What is going on? 到底是怎么回事?
More INFO 更多信息
This really appears to be an issue with one of my pods. 这似乎是我的一个pod的一个问题。 I built a new solution, imported a subset of my pods and everything built.
我构建了一个新的解决方案,导入了我的pod的一部分,并构建了所有内容。 Then when I updated with the full list of pods it broke.
然后,当我更新了完整的pod列表时,它就崩溃了。
For me it is coming due to Bitcode
enable in my project and i have used a custom framework with disabled bitcode. 对我而言,由于我的项目中启用了
Bitcode
,我使用了一个带有禁用bitcode的自定义框架。
Two things you can do : 你可以做两件事:
Either disable bitcode
in your project 在项目中禁用
bitcode
OR 要么
Build framework with bitcode
enable 使用
bitcode
启用构建框架
NOTE : If you click on error and it doesn't show anything then right click on error and select Reveal in Log . 注意 :如果单击错误并且未显示任何内容,则右键单击错误并选择“ 在日志中显示” 。 You will get error for this issue
您将收到此问题的错误
At long last I was able to figure out this was a pod issue...just had to figure out which one it was. 终于,我能够弄清楚这是一个豆荚问题......只需要弄清楚它是哪一个。
I created a brand new project and started adding my pods in one by one (actually, 3 by 3...one by one would have taken too long). 我创建了一个全新的项目并开始逐个添加我的pod(实际上,3乘3 ...一个接一个地花了太长时间)。
Conclusion: localytics 4.3.1 has a bug in it somewhere. 结论:localytics 4.3.1在某处有一个错误。 I downgraded to 4.3.0 and the problem went away.
我降级到4.3.0,问题消失了。
I got a problem like this. 我遇到了这样的问题。 My suggestion is that you should remove the version of 8.3 and download any old version from this link: https://developer.apple.com/download/more/ I hope that it will work.
我的建议是你应该删除8.3的版本并从这个链接下载任何旧版本: https : //developer.apple.com/download/more/我希望它能工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.