peter-iakovlev / MtProtoKit

Universal MTProto framework for both iOS and OS X
200 stars 81 forks source link

Hello, found that there is a mistake, lead to can't compile #3

Open ghost opened 9 years ago

ghost commented 9 years ago

use xcode 6.2 compile the results are as follows:

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

Please help me,Thank you!

gf59ru commented 8 years ago

I had same bug, and my solution is very simple (but I not sure that it's right): I manually created folders Versions/A at user/library/... path - compiler said that MRProtoKit iOS folder missed, I created it too. Then framework was built. But I think that missed folders must be created automatically, just some settings are needed