Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 iPad 上运行我的应用程序...我升级到 Xcode 4.3 和 iOS 5.1,但应用程序不再工作了。奇怪的是app没有到达入口点,main方法没有被调用。你有什么想法可能是什么原因吗?
int main(int argc, char *argv[]) { NSLog(@"test main"); //not visible in debugger }
我知道信息不多,但我不知道我应该提供什么信息
您需要将您的NSLog呼叫转移到您的 AppDelegate 中。将其放入applicationDidFinishLaunching方法中。你不能NSLog在 main 中的原因是核心基础库还没有加载到那里。
NSLog
applicationDidFinishLaunching