2
我試着去存檔我對通用的iOS設備的應用程序,並保持與下面的錯誤而失敗:的Xcode 7.2 LD:無法打開輸出文件寫
Ld /Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/IntermediateBuildFilesPath/NavCompass.build/Release-iphoneos/NavCompass.build/Objects-normal/arm64/NavCompass normal arm64
cd /Users/wesleyarchbell/stuff/code/ios/NavCompass
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -L/Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/BuildProductsPath/Release-iphoneos -F/Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/BuildProductsPath/Release-iphoneos -filelist /Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/IntermediateBuildFilesPath/NavCompass.build/Release-iphoneos/NavCompass.build/Objects-normal/arm64/NavCompass.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=8.0 -dead_strip -fembed-bitcode -Xlinker -bitcode_verify -Xlinker -bitcode_hide_symbols -Xlinker -bitcode_symbol_map -Xlinker /Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/BuildProductsPath/Release-iphoneos -framework InAppSettingsKit -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/IntermediateBuildFilesPath/NavCompass.build/Release-iphoneos/NavCompass.build/Objects-normal/arm64/NavCompass.swiftmodule -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreLocation -framework AVFoundation -framework MessageUI -framework Pods_NavCompass -Xlinker -dependency_info -Xlinker /Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/IntermediateBuildFilesPath/NavCompass.build/Release-iphoneos/NavCompass.build/Objects-normal/arm64/NavCompass_dependency_info.dat -o /Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/IntermediateBuildFilesPath/NavCompass.build/Release-iphoneos/NavCompass.build/Objects-normal/arm64/NavCompass
ld: can't open output file for writing: /Users/wesleyarchbell/Library/Developer/Xcode/DerivedData/NavCompass-avlrykxtubzibmfzdvzyuyjcysoo/Build/Intermediates/ArchiveIntermediates/NavCompass/IntermediateBuildFilesPath/NavCompass.build/Release-iphoneos/NavCompass.build/Objects-normal/arm64/NavCompass, errno=21 for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
此問題只發生開始時,我Xcode更新到最新版本。我一直敲我的頭撞在牆上無解:(
不能解決這個問題:( – Wez
現在嘗試在Xcode菜單中產品 - >清潔和(保留選項)產品 - >清潔生成文件夾。最後,退出並重新打開Xcode,然後重新啓動。 – sschale
嘗試過,但仍嘗試創建存檔:( – Wez