简体   繁体   English

为什么在xcode 7.2.1中创建项目存档时出现此链接器错误?

[英]why am i getting this linker error while creating archive of my project in xcode 7.2.1

I am trying to create archive of my project and everytime i am getting this error: 我正在尝试创建项目的存档,并且每次遇到此错误时:

ld: can't open output file for writing:    /Users/ranbeerhora/Documents/KicksendRepo/KickSend/trunk/KicksendiOSSwift /Build/Intermediates/ArchiveIntermediates/KickSend/IntermediateBuildFilesPath/KickSend.build/Release-iphoneos/KickSend.build/Objects-normal/arm64/KickSend, errno=21 for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

i have tried different things but none of the solution works. 我尝试了不同的方法,但没有解决方案。

I got the answer.I was not giving path of the objective-c bridging header file in the build setting, when i gave the file path it worked. 我得到了答案。当我给出有效的文件路径时,我没有在构建设置中给出Objective-c桥接头文件的路径。

Explanation: 说明:

xcode was not able to open output file for writing because it was not able to access that file since the path was not given when i gave the path xcode found the file and i was able to create the archive. xcode无法打开输出文件进行写入,因为它无法访问该文件,因为当我给定路径时未给出路径xcode找到了文件并且我能够创建档案。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM