我在设备上部署应用时遇到了一些麻烦。代码适用于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)
我无法理解我的应用程序出了什么问题。我在网上搜索试图了解什么是错的,我找到了以下解决方案:
那么问题是什么?你能帮我解决一下吗?