2013-05-08 27 views
6

Tôi đang gặp một vấn đề biên soạnkhông thể ánh xạ tập tin, errno = 22 cho kiến ​​trúc x86_64

Ld /Users/ppdeveloper/Library/Developer/Xcode/DerivedData/RemoteDesktop-fqnrzezhilkdilddgkfsepetkons/Build/Products/Debug/RemoteDesktop.app/Contents/MacOS/RemoteDesktop normal x86_64 
    cd /Users/ppdeveloper/Desktop/app/RemoteDesktop 
    setenv MACOSX_DEPLOYMENT_TARGET 10.5 
    /Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -L/Users/ppdeveloper/Library/Developer/Xcode/DerivedData/RemoteDesktop-fqnrzezhilkdilddgkfsepetkons/Build/Products/Debug -F/Users/ppdeveloper/Library/Developer/Xcode/DerivedData/RemoteDesktop-fqnrzezhilkdilddgkfsepetkons/Build/Products/Debug -filelist /Users/ppdeveloper/Library/Developer/Xcode/DerivedData/RemoteDesktop-fqnrzezhilkdilddgkfsepetkons/Build/Intermediates/RemoteDesktop.build/Debug/RemoteDesktop.build/Objects-normal/x86_64/RemoteDesktop.LinkFileList -mmacosx-version-min=10.5 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -framework Cocoa -framework Foundation -framework AppKit /Users/ppdeveloper/Desktop/app/RemoteDesktop/RemoteDesktop/include -fobjc-link-runtime -framework Foundation -framework CoreData -framework AppKit -framework CoreFoundation -lz -framework Cocoa -o /Users/ppdeveloper/Library/Developer/Xcode/DerivedData/RemoteDesktop-fqnrzezhilkdilddgkfsepetkons/Build/Products/Debug/RemoteDesktop.app/Contents/MacOS/RemoteDesktop 

ld: **can't map file, errno=22 for architecture x86_64** 

clang: error: **linker command failed with exit code 1 (use -v to see invocation)** 

Trả lời

8

Tôi không có ý tưởng nơi mục /Users/ppdeveloper/Desktop/app/RemoteDesktop/RemoteDesktop/include xuất phát từ trong các tùy chọn biên dịch/liên kết của bạn, nhưng có vẻ như một thư mục, vì vậy có thể thiếu một số tiền là -I để nói rằng bạn tìm kiếm trong thư mục này.

Nếu trình liên kết cố gắng tải thư mục này dưới dạng tệp, nó sẽ thấy một số EINVAL aka errno 22.

+0

Bắt tốt! ... –

+0

Tôi muốn nói chung, nếu bạn sao chép và dán lệnh vào thiết bị đầu cuối và chạy nó, bạn sẽ thường thấy thông báo tường trình của ứng dụng cơ bản. –

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