本文介绍了无法映射文件,对于架构x86_64,errno = 22的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我遇到编译问题
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)**
推荐答案
我不知道/Users/ppdeveloper/Desktop/app/RemoteDesktop/RemoteDesktop/include
项在您的compile/link选项中来自何处,但它看起来像一个目录,因此可能缺少前面的-I
表示您在此目录中搜索.
I have no idea where the item /Users/ppdeveloper/Desktop/app/RemoteDesktop/RemoteDesktop/include
comes from in your compile/link options, but it looks like a directory, so it’s probably missing a preceeding -I
to state that you search in this directory.
如果链接程序尝试将此目录加载为文件,则会看到EINVAL
aka errno 22
.
If the linker tries to load this directory as a file, it sees an EINVAL
aka errno 22
.
这篇关于无法映射文件,对于架构x86_64,errno = 22的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!