V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
lfflyers
V2EX  ›  iDev

Xcode7 真机调试出现以下错误,测试机型为升级到 iOS9 的 5s 和 6Plus,没有升级到 iOS9 的机型好像没问题,有没有大神碰到过类似的问题,求指导!!!

  •  
  •   lfflyers · 2015-09-22 16:51:49 +08:00 · 4046 次点击
    这是一个创建于 3110 天前的主题,其中的信息可能已经有所发展或是发生改变。
    错误如下:
    ld: can't link with a main executable file '/Users/chenjun/Library/Developer/Xcode/DerivedData/openLBS_ezoutdoor-ebzptezknnguwxhixhsonakocjbc/Build/Products/Release-iphoneos/openLBS_ezoutdoor.app/openLBS_ezoutdoor' for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    7 条回复    2015-09-24 00:06:04 +08:00
    lfflyers
        1
    lfflyers  
    OP
       2015-09-22 17:52:29 +08:00
    先自顶一下~~
    daniellu
        2
    daniellu  
       2015-09-22 18:40:07 +08:00
    你引用了第三方的 lib 文件么?看错误像是项目的架构选择问题?最好有详细一些的信息。
    mianju
        3
    mianju  
       2015-09-22 23:11:34 +08:00
    我是不能全屏,你有这个问题么?
    lacklock
        4
    lacklock  
       2015-09-23 09:25:11 +08:00
    这个提示好像是在 32 位的处理器上有问题。
    simba0204
        5
    simba0204  
       2015-09-23 10:43:12 +08:00
    被虐多了,感觉可以去 Xcode Derived data folder 清理一下然后再 build
    楼主是不是改过程序名称
    andyL
        6
    andyL  
       2015-09-23 21:50:10 +08:00
    target- > buildsetting- > acchitectures->build active architeture only 的 yes 改为 no 再 build 试试,我的是这么解决的
    lfflyers
        7
    lfflyers  
    OP
       2015-09-24 00:06:04 +08:00
    谢谢大家的回复,这两天较忙,没来得及回复。我来说说我的解决方案吧,在 target 下有个 test 工程,找到 General,然后会看到一个 testing ,在 testing 下有个 Allow testing Host Application APIs ,这好像是 Xcode7 才有的吧,它默认是勾上的,把勾去掉,然后编译就通过了~~╮(╯▽╰)╭折腾了半天!!!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5353 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 08:33 · PVG 16:33 · LAX 01:33 · JFK 04:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.