在Xcode 6中构建应用程序时出错

时间:2014-10-14 07:34:04

标签: ios xcode

我在设备上部署应用时遇到了一些麻烦。代码适用于iOS模拟器,但当我尝试在我的iOS设备上运行它时会显示以下错误:

Ld /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests normal arm64
    cd "/Users/user/Documents/Demo app/App"
    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/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos -F/Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk/Developer/Library/Frameworks -filelist /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -dead_strip -bundle_loader /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos/App.app/App -framework XCTest -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=8.0 -Xlinker -dependency_info -Xlinker /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal/arm64/AppTests_dependency_info.dat -o /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Intermediates/App.build/Debug-iphoneos/AppTests.build/Objects-normal

ld: file not found: /Users/user/Library/Developer/Xcode/DerivedData/App-dpvmxvpfnnbticgaudzudnxmumqu/Build/Products/Debug-iphoneos/App.app/App
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我无法理解我的应用程序出了什么问题。我在网上搜索试图了解什么是错的,我找到了以下解决方案:

  • 检查我是否导入.h文件而不是.m文件 - >在我的应用程序中一切正常
  • 检查正确的框架 - >在我的应用程序中,我只使用默认框架,所以没问题
  • 检查图书馆搜索路径 - >在我的应用程序中没有这个问题

那么问题是什么?你能帮我解决一下吗?

0 个答案:

没有答案