xcode 铛:错误没有这样的文件或目录:*/Debug-iphonesimulator/MailCore/MailCore

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19130680/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:58:57  来源:igfitidea点击:

clang: error no such file or directory: */Debug-iphonesimulator/MailCore/MailCore

iphoneiosxcodemailcore2

提问by Shujaat Hussain Bangash

I am using mailcore2 in my ios app from fetching my gmail account emails on my device. I have changed the ios sdkversion from 6.1 to 6.0 in the mailcore2 scripts bcz I am trying to compile and run the app using iPhone simulator 6.0 which uses ios sdkversion 6.0. Doing so I am getting the following clang error.

我在我的 ios 应用程序中使用 mailcore2 从我的设备上获取我的 gmail 帐户电子邮件。我已将mailcore2 脚本中的ios sdkversion 从6.1 更改为6.0 bcz 我正在尝试使用使用ios sdkversion 6.0 的iPhone 模拟器6.0 编译和运行该应用程序。这样做我收到以下叮当错误。

clang: error: no such file or directory: '/Users/shujaat/Library/Developer/Xcode/DerivedData/MyTestApp-ditognlaoajwldfliplqecnxqbfj/Build/Products/Debug-iphonesimulator/MailCore/MailCore'

While trying to compile and run my app using iphone simulator 6.1 (uses ios sdk 6.1), with no changes in the ios sdk version in the shell scripts, I am getting the following error:

在尝试使用 iphone 模拟器 6.1(使用 ios sdk 6.1)编译和运行我的应用程序时,shell 脚本中的 ios sdk 版本没有变化,我收到以下错误:

/bin/sh /Users/shujaat/Documents/WemoTech/Products/WantList/sourcecode/ThirdPartyLib/MailCore2/Externals/builds/workdir/20130930192723/src/libetpan/build-mac/update.sh
configuring

running prepare-cyrus-sasl.sh

prepare sources

准备资源

patching file lib/client.c

修补文件 lib/client.c

building tools

建筑工具

generated makemd5i386 properly

正确生成 makemd5i386

building for iPhoneOS - armv7

为 iPhoneOS 构建 - armv7

CONFIGURE FAILED

配置失败

Command /bin/sh failed with exit code 1

命令 /bin/sh 失败,退出代码为 1

These issues are driving me crazy for the last couple of days. Need your help.

在过去的几天里,这些问题让我发疯。需要你的帮助。

采纳答案by Shujaat Hussain Bangash

These issues are fixed now. I want to explain what I did to get rid of them for others facing same issues: I made a separate project, and made mailcore2 as a part of it (didn't include the #import line in any of the project files at first). I compiled and run the project and copied the resultant mailcore 2 from it to my original project. It's compiling and running fine now.

这些问题现在都已修复。我想解释我为其他面临相同问题的人摆脱它们所做的工作:我创建了一个单独的项目,并将 mailcore2 作为其中的一部分(最初没有在任何项目文件中包含 #import 行) . 我编译并运行该项目,并将生成的 mailcore 2 从它复制到我的原始项目中。它现在编译和运行良好。

回答by Tarek Hallak

Go to your main project target->"Build phases"->"Target dependencies" add mailcore2 ios

转到您的主项目目标->“构建阶段”->“目标依赖项”添加mailcore2 ios

You need to read Check Adding MailCore to Your iOS Projectcarefully.

您需要仔细阅读检查将 MailCore 添加到您的 iOS 项目