2015-03-13 77 views
1

我已经在其网站上下载了电报应用程序的源代码:https://telegram.org/source。 当我尝试运行该项目,出现显示错误象下面这样:电报iOS应用程序无法在Xcode上运行

UFW (M iphonesimulator): ERROR: Build failed 
Traceback (most recent call last): 
    File "/Users/macbookpro/Library/Developer/Xcode/DerivedData/MtProtoKit-afodmttritvhhdfajtdrsgmygsll/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 812, in <module> 
    run_build() 
    File "/Users/macbookpro/Library/Developer/Xcode/DerivedData/MtProtoKit-afodmttritvhhdfajtdrsgmygsll/Build/Intermediates/MtProtoKit.build/Debug-iphonesimulator/MtProtoKit iOS.build/Script-D05A831218AFB3F9007F1076.sh", line 787, in run_build 
    add_symlinks_to_framework(project) 
    File "/Users/macbookpro/Library/Developer/Xcode/DerivedData/MtProtoKit-afodmttritvhhdfajtdrsgmygsll/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/macbookpro/Library/Developer/Xcode/DerivedData/MtProtoKit-afodmttritvhhdfajtdrsgmygsll/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/macbookpro/Library/Developer/Xcode/DerivedData/MtProtoKit-afodmttritvhhdfajtdrsgmygsll/Build/Products/Debug-iphonesimulator/MtProtoKit iOS.framework/Versions/A' 
Showing first 200 notices only 
Command /bin/sh failed with exit code 1 

之前,我尝试运行项目,我没有改变任何东西。

+0

我已经回答了这个问题。看看这里:http://stackoverflow.com/a/28410880/3718570 – Ptah 2015-08-25 21:35:38

+0

[电报iOS应用程序的源代码不能在Xcode上运行]的可能重复(http://stackoverflow.com/questions/28370297/source-code -of-telegram-ios-app-couldnot-run-on-xcode) – Ptah 2015-08-25 21:36:27

回答

-1
OSError: [Errno 2] No such file or directory: '/Users/macbookpro/Library/Developer/Xcode/DerivedData/MtProtoKit-afodmttritvhhdfajtdrsgmygsll/Build/Products/Debug-iphonesimulator/MtProtoKit iOS.framework/Versions/A' 

您正在引用不在那里的第三方库。

+0

谢谢@Helge Becker,但是这个项目是从他们的网站下载的。所有的文件都假设在那里。我应该做些什么来运行这个项目? – JacksonNg 2015-03-14 09:18:35

+0

那么,错误消息是明确的,应该不包括验证。我认为你应该检查该框架的路径。 – 2015-03-14 09:33:37

1

电报使用当前已退役的项目https://github.com/kstenerud/iOS-Universal-Framework 安装'iOS-Universal-Framework'并附带其他一些修复程序,您将可以构建它。

+0

我尝试安装iOS-U-F,但它总是显示消息: Xcode是在哪里安装的? (CTRL-C放弃)[/Applications/Xcode.app/Contents/Developer]:/Applications/Xcode.app/Contents/Developer/ 在“/Applications/Xcode.app/Contents/Developer/”中找不到Xcode文件”。请确保你输入正确。 你应该在里面看到“Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications”的路径。 我输入路径:/Applications/Xcode.app/Contents/Develope 但它没有帮助。 – 2015-11-03 17:33:12

相关问题