2015-02-06 74 views
5

我已经下载了电报应用程序的代码源their website。当我在Xcode 6.1.1打开项目时,我得到以下错误:电报iOS应用程序不会与Xcode 6.1.1一起构建

UFW (M iphonesimulator): ERROR: Build failed Traceback (most recent call last): File"/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 812, in <module>run_build()File "/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 787, in run_build 
    add_symlinks_to_framework(project) 
    File "/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 675, in add_symlinks_to_framework 
    attempt_symlink(os.path.join(base_dir, "Versions", "Current"), os.environ['FRAMEWORK_VERSION']) 
    File "/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 493, in attempt_symlink 
    os.stat(os.path.abspath(os.path.join(link_path, "..", link_to))) 
OSError: [Errno 2] No such file or directory: '/Users/yanfeng/Library/Developer/Xcode/DerivedData/Build/Products/Debug-iphonesimulator/MtProtoKit iOS.framework/Versions/A' 
Showing first 200 notices only 
Command /bin/sh failed with exit code 1 
+0

你找到解决办法吗? – 2015-02-08 01:25:36

+0

我有同样的问题,但我很困惑,因为没有'/ Users/Me/Library/...'目录 – ErikAGriffin 2015-02-08 14:56:13

+0

我已经安装了“Real Framework”并构建成功,但是当我运行它时,并说“终止应用程序,由于未捕获的异常'NSInternalInconsistencyException',原因:'请在https://my.telegam.org获取您自己的apiId和apiHash”,以获取apiId和apiHash以及如何替换它。我找不到它 – 2015-02-13 10:22:25

回答

7

MtProtoKit需要https://github.com/kstenerud/iOS-Universal-Framework,所以克隆它,安装“真正的框架”,重新启动Xcode和享受!

+0

为什么回购说'这个回购可以最终退休'?听起来像苹果现在有它本地的地方? – ErikAGriffin 2015-02-09 13:45:14

+0

是的,但电报使用它 – Ptah 2015-02-09 13:48:43

+0

我安装了,但现在theres一个不同的错误文件存在,不是一个符号链接:/ Users/me/Library/Developer/Xcode/DerivedData/Telegraph-ewgajxvcwslxioahymccndyrlivl/Build/Products/Debug-iphonesimulator/MtProtoKit iOS.framework/Headers – ErikAGriffin 2015-02-09 14:51:27

相关问题