简体   繁体   English

在iPhone上运行时出错,在模拟器上可以正常工作

[英]Error When Running on iPhone, Works fine on simulator

I get this error when I try to run on a device. 当我尝试在设备上运行时出现此错误。 When I run it on a simulator it works fine. 当我在模拟器上运行它时,它工作正常。

This is the error I get: 这是我得到的错误:

Ld "/Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Products/Debug-iphoneos/Munch Box.app/Munch Box" normal armv7s
    cd "/Users/xxx/Projects/xCode Projects/Munch Box"
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    setenv 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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -L/Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Products/Debug-iphoneos -F/Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Products/Debug-iphoneos -filelist "/Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Intermediates/Munch Box.build/Debug-iphoneos/Munch Box.build/Objects-normal/armv7s/Munch Box.LinkFileList" -dead_strip -fobjc-arc -fobjc-link-runtime -stdlib=libc++ -miphoneos-version-min=6.1 -framework CoreLocation -framework MapKit /Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Products/Debug-iphoneos/libqrencoder.a -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Products/Debug-iphoneos/Munch Box.app/Munch Box"

ld: warning: ignoring file /Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Products/Debug-iphoneos/libqrencoder.a, file was built for archive which is not the architecture being linked (armv7s): /Users/xxx/Library/Developer/Xcode/DerivedData/Munch_Box-ebibgicdmigfwdbgfdcshfqvxxrc/Build/Products/Debug-iphoneos/libqrencoder.a
Undefined symbols for architecture armv7s:
  "_OBJC_CLASS_$_QREncoder", referenced from:
      objc-class-ref in TodaysCodeViewController.o
ld: symbol(s) not found for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Turn off the armv7s in the build settings architectures area. 在构建设置体系结构区域中关闭armv7。 See my answer at Failing Archive App RestKit 0.10 Failing Archive App RestKit 0.10上查看我的答案

Try to delete Derived Data, clean and restart xCode. 尝试删除“派生数据”,清理并重新启动xCode。 You can delete derived data in organizer (cmd+shift+2 or window->organizer) on the projects tab select yours project and press delete on derived data, then clean. 您可以在项目选项卡上的管理器(cmd + shift + 2或window-> organizer)中删除派生数据,选择您的项目,然后在派生数据上按Delete键,然后进行清理。

It may helps, but not sure 可能有帮助,但不确定

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当iPhone模拟器4.2正常时,运行4.2背景图像的iPod有轻微错误 - iPod running 4.2 background image has slight error, when iPhone simulator 4.2 is fine mpmovieplayer中的多个视频在模拟器中工作正常,但在iPad上运行时出现SIGABRT错误 - multiple video in mpmovieplayer works fine in simulator but get SIGABRT error when running on iPad 在iPhone模拟器中工作正常,但在iPhone设备中锁定 - Works fine in iphone simulator but lockup in an iphone device SearchBar挂在iPhone上,但在模拟器上可以正常工作 - SearchBar hangs on iphone but works fine on simulator 在ios 9.1或9.0模拟器上运行时,空白单元格在8.4模拟器上可以正常工作 - Blank cells when running on ios 9.1 or 9.0 simulator, works fine on 8.4 simulator 在iPhone X上测试应用程序崩溃,但模拟器工作正常,什么是“EXC_BAD_ACCESS” - App crashes when testing on iPhone X, but simulator it works fine, what is “EXC_BAD_ACCESS” 在模拟器中运行代码时,一切正常,但是当我在手机上运行时,一切正常 - When running code in simulator everything works fine, but not when I run on my phone 在 iPhone 上运行项目崩溃,但它可以在模拟器上运行 - Running project on iPhone crashes but it works on the simulator 应用程序图标在Simulator中显示正常,但是在iPhone上运行时,启动图像显示为图标,而不是所需的图标 - App Icon shows fine in Simulator, but when running on iPhone, Launch Image is shown as icon instead of the desired icon 我的应用程序未在iPhone / iPad上运行,但在模拟器上运行良好 - My application is not running on iPhone/iPad but running fine on simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM