2015-03-13 106 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

相關問題