xcode 5 无法从旧的 iOS 项目中看到 NSLog(s) [英] xcode 5 can't see NSLog(s) from old iOS project
问题描述
我有一个旧的 iOS6
应用程序,我去年在玩;这是只给我妻子的,所以我从来没有发布过,但我想把它擦掉,看看它是否对其他人有用.所以我在 XCode5
中加载它(5.0.2 在 10.8.4 上运行;我也在我的家用笔记本电脑上试过这个,运行相同的 XCode 和 Mavericks
).然而,尽管应用程序构建和运行良好,但我的 NSLog
语句都没有显示在任何一台计算机的控制台中.我已经清理,重建,在我拥有的每个模拟器和 iPad 上运行它,搜索设置,撕掉我的头发等等,但我不知道如何让它们出现.我启动了一个新的 iOS 应用程序以确保它不在我的设置中,但是 NSLogs
从那里工作得很好.不幸的是,我什至不确定从哪里开始寻找解决这个问题.有没有人对我应该在这里探索的方向有任何想法?谢谢!
I have an older iOS6
app that I was playing with last year; it was only for my wife, so I never released it, but I wanted to dust it off and see if it was potentially useful to others. So I load it up in XCode5
(5.0.2 running on 10.8.4; I've also tried this on my home laptop running the same XCode and Mavericks
). However, though the app builds and runs fine, none of my NSLog
statements show up in the console, on either computer. I've cleaned, rebuilt, run it on every simulator and iPad I have, hunted through settings, torn my hair out, etc., but I can't figure out how to get them to show up. I started a new iOS app to make sure it's not something in my setup, but NSLogs
from there work just fine. Unfortunately, I'm not even sure where to start looking to fix this. Does anyone have any ideas for directions that I should be exploring here? Thanks!
我刚刚尝试将文件复制到一个新项目中,现在 NSLogs
出现了!仍然让我不知道为什么它们没有出现在旧项目中.
I just tried copying over the files into a new project, and now the NSLogs
are showing up! Still leaves me with no ideas as to why they're not showing up in the old project.
Edit2:不仅仅是用户错误;我可以看到带有复制文件的新项目的日志消息(见图).当我运行旧项目时,它们不会显示在旧项目中.
It's not just user error; I can see the log messages from the new project with the copied files (see image). They just don't show in the old project when I run it.
推荐答案
正如@combinatorial 在评论中所指出的,我在 pch 文件中隐藏了一个调试语句(非常聪明,以至于我欺骗了自己).非常感谢你帮我解决这个问题!
As noted in the comment by @combinatorial, I had a debug statement hidden (so cleverly that I fooled myself) in the pch file. Thanks so much for helping me nail that down!
这篇关于xcode 5 无法从旧的 iOS 项目中看到 NSLog(s)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!