【问题标题】:Telegram iOS app could't not run on XcodeTelegram iOS 应用程序无法在 Xcode 上运行
【发布时间】:2015-03-21 03:42:31
【问题描述】:

我已经在他们的网站上下载了 Telegram 应用程序的源代码:https://telegram.org/source。 当我尝试运行该项目时,会显示如下错误:

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

在尝试运行该项目之前,我没有进行任何更改。

【问题讨论】:

标签: ios xcode telegram


【解决方案1】:

Telegram 使用当前已停用的项目 https://github.com/kstenerud/iOS-Universal-Framework 安装“iOS-Universal-Framework”并通过一些额外的修复,您将能够构建它。

【讨论】:

  • 我尝试安装 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 但它没有帮助。
【解决方案2】:
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'

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

【讨论】:

  • 感谢@Helge Becker,但该项目是从他们的网站下载的。所有文件都应该在那里。运行这个项目我应该怎么做?
  • 嗯,错误信息很清楚,应该不包括已验证。我认为您应该检查该框架的路径。
猜你喜欢
  • 1970-01-01
  • 2015-04-06
  • 1970-01-01
  • 1970-01-01
  • 2015-01-02
  • 1970-01-01
  • 2019-08-18
  • 1970-01-01
  • 2017-02-05
相关资源
最近更新 更多