2015-02-06 14 views
5

Tôi đã tải xuống mã nguồn của ứng dụng Telegram trên their website. Khi tôi mở dự án trong Xcode 6.1.1, tôi nhận được lỗi sau:Ứng dụng Telegram iOS sẽ không được tạo bằng 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

Bạn đã tìm ra giải pháp chưa? –

+0

Tôi đang gặp vấn đề tương tự, nhưng tôi bối rối vì không có thư mục '/ Users/Me/Library/...' – ErikAGriffin

+0

Tôi đã cài đặt "Real Framework" và xây dựng thành công, nhưng khi tôi chạy nó tiền mặt và nói rằng "Chấm dứt ứng dụng do ngoại lệ không bị bắt 'NSInternalInconsistencyException', lý do: 'Vui lòng lấy apiId và apiHash của riêng bạn tại https://my.telegam.org", nơi nhận apiId và apiHash và cách thay thế nó. Tôi không thể tìm thấy nó –

Trả lời

7

MtProtoKit đòi hỏi https://github.com/kstenerud/iOS-Universal-Framework, vì vậy bản sao nó, cài đặt "Real Khung", khởi động lại Xcode và tận hưởng!

+0

Tại sao repo lại nói 'repo này cuối cùng có thể được gỡ bỏ'? Âm thanh như táo bây giờ có nó tự nhiên ở đâu đó? – ErikAGriffin

+0

có, nhưng bức điện sử dụng nó – Ptah

+0

Tôi đã cài đặt, nhưng bây giờ theres một lỗi file khác nhau tồn tại và không phải là một liên kết tượng trưng:/Users/me/Library/Developer/Xcode/DerivedData/Telegraph-ewgajxvcwslxioahymccndyrlivl/Xây dựng/Sản phẩm/Debug-iphonesimulator/MtProtoKit iOS.framework/Headers – ErikAGriffin

2

Với Xcode 6, https://github.com/kstenerud/iOS-Universal-Framework không bắt buộc để xây dựng các khung phổ quát (arm64, armv7, armv7 và mô phỏng) cho iOS.

Bạn cần xóa tập lệnh chạy, sửa phụ thuộc thư viện và cấu hình kiến ​​trúc Xcode, cũng xác nhận kiến ​​trúc của các tệp nhị phân được liên kết.

Tôi đã duy trì một mã số điện thoại iOS làm việc tại đây: https://github.com/liruqi/Telegram-iOS

Các vấn đề liên quan