1. <tfoot id='QgkjI'></tfoot>

    • <bdo id='QgkjI'></bdo><ul id='QgkjI'></ul>
    1. <legend id='QgkjI'><style id='QgkjI'><dir id='QgkjI'><q id='QgkjI'></q></dir></style></legend>

      <small id='QgkjI'></small><noframes id='QgkjI'>

      <i id='QgkjI'><tr id='QgkjI'><dt id='QgkjI'><q id='QgkjI'><span id='QgkjI'><b id='QgkjI'><form id='QgkjI'><ins id='QgkjI'></ins><ul id='QgkjI'></ul><sub id='QgkjI'></sub></form><legend id='QgkjI'></legend><bdo id='QgkjI'><pre id='QgkjI'><center id='QgkjI'></center></pre></bdo></b><th id='QgkjI'></th></span></q></dt></tr></i><div id='QgkjI'><tfoot id='QgkjI'></tfoot><dl id='QgkjI'><fieldset id='QgkjI'></fieldset></dl></div>
    2. iOS 4 应用程序在 iOS 3.1.3 上启动时崩溃:找不到符号:__NSConcreteStackBlock

      时间:2023-10-03
          <tbody id='XNwHk'></tbody>
      • <small id='XNwHk'></small><noframes id='XNwHk'>

          • <legend id='XNwHk'><style id='XNwHk'><dir id='XNwHk'><q id='XNwHk'></q></dir></style></legend>

            • <bdo id='XNwHk'></bdo><ul id='XNwHk'></ul>
              <i id='XNwHk'><tr id='XNwHk'><dt id='XNwHk'><q id='XNwHk'><span id='XNwHk'><b id='XNwHk'><form id='XNwHk'><ins id='XNwHk'></ins><ul id='XNwHk'></ul><sub id='XNwHk'></sub></form><legend id='XNwHk'></legend><bdo id='XNwHk'><pre id='XNwHk'><center id='XNwHk'></center></pre></bdo></b><th id='XNwHk'></th></span></q></dt></tr></i><div id='XNwHk'><tfoot id='XNwHk'></tfoot><dl id='XNwHk'><fieldset id='XNwHk'></fieldset></dl></div>
              1. <tfoot id='XNwHk'></tfoot>
              2. 本文介绍了iOS 4 应用程序在 iOS 3.1.3 上启动时崩溃:找不到符号:__NSConcreteStackBlock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我正在运行带有 iOS 4.0 SDK 的 Xcode 3.2.3.我使用 Base SDK = iphoneos4.0、Active SDK = iphoneos4.0、Deployment Target = 3.1.3 和 Architecture = standard (arm6 arm7) 构建了我的应用程序.编译器 = GCC 4.2.据我了解,这是构建适用于 iOS 4 和 3 的应用程序的正确方法.

                I'm running Xcode 3.2.3 with the iOS 4.0 SDK. I built my app with Base SDK = iphoneos4.0, Active SDK = iphoneos4.0, Deployment Target = 3.1.3, and Architecture = standard (arm6 arm7). Compiler = GCC 4.2. As I understand it, this is the correct way to build an app for both iOS 4 and 3.

                该应用在运行 iOS 4 的设备上运行良好.但当您尝试在运行 iOS 3.1.3(iPod Touch 1G)的设备上运行它时,它会在启动时崩溃:

                The app runs fine on devices running iOS 4. But it crashes on startup when you try to run it on a device with iOS 3.1.3 (an iPod Touch 1G):

                dyld: Symbol not found: __NSConcreteStackBlock
                  Referenced from: /var/mobile/Applications/192B30ED-16AC-431E-B0E9-67C1F41FD5DA/MyApp.app/MyApp
                  Expected in: /usr/lib/libSystem.B.dylib
                

                在我的 main() 函数甚至被调用之前,这似乎是一个相当低级"的动态链接库的问题.我什至尝试过重新启动设备等,但没有成功.以下是崩溃日志的一部分:

                It appears to be an issue with a fairly "low level" dynamically-linked library, BEFORE my main() function even gets called. I have even tried re-starting the device, etc., with no luck. Here's part of the the crash log:

                Process:         MyApp [60]
                Path:            /var/mobile/Applications/192B30ED-16AC-431E-B0E9-67C1F41FD5DA/MyApp.app/MyApp
                Identifier:      MyApp
                Version:         ??? (???)
                Code Type:       ARM (Native)
                Parent Process:  launchd [1]
                
                Date/Time:       2010-07-22 17:16:17.942 -0400
                OS Version:      iPhone OS 3.1.3 (7E18)
                Report Version:  104
                
                Exception Type:  EXC_BREAKPOINT (SIGTRAP)
                Exception Codes: 0x00000001, 0xe7ffdefe
                Crashed Thread:  0
                
                Dyld Error Message:
                  Symbol not found: __NSConcreteStackBlock
                  Referenced from: /var/mobile/Applications/192B30ED-16AC-431E-B0E9-67C1F41FD5DA/MyApp.app/MyApp
                  Expected in: /usr/lib/libSystem.B.dylib
                  Dyld Version: 149
                
                Binary Images:
                    0x1000 -    0x80fff +MyApp armv6  <d5f0ff6f233b4b034c222c16438c88d9> /var/mobile/Applications/192B30ED-16AC-431E-B0E9-67C1F41FD5DA/MyApp.app/MyApp
                0x2fe00000 - 0x2fe26fff  dyld armv6  <544395a4b5546114b878d5131a84fd7f> /usr/lib/dyld
                0x30410000 - 0x30536fff  libSystem.B.dylib armv6  <0373fd64e915a17160732b29d343f95f> /usr/lib/libSystem.B.dylib
                

                感谢您的建议!

                推荐答案

                Ben Gottlieb 昨天指出,如果你在应用程序的任何地方使用块,你会在 4.0 之前的操作系统上看到类似这样的崩溃,同时使用LLVM 编译器.要解决此问题,您可以在 Xcode 构建设置中指定链接器标志 -weak-lSystem.

                Ben Gottlieb pointed out yesterday that if you use blocks anywhere in your application, you'll see a crash similar to this on a pre-4.0 OS while building with the LLVM compiler. To work around this, you can specify the linker flag -weak-lSystem in your Xcode build settings.

                这篇关于iOS 4 应用程序在 iOS 3.1.3 上启动时崩溃:找不到符号:__NSConcreteStackBlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:调整播放 AVPlayer 的音量 下一篇:如何在椭圆形或圆形上裁剪 UIImage?

                相关文章

                <small id='ZMV8i'></small><noframes id='ZMV8i'>

                  1. <i id='ZMV8i'><tr id='ZMV8i'><dt id='ZMV8i'><q id='ZMV8i'><span id='ZMV8i'><b id='ZMV8i'><form id='ZMV8i'><ins id='ZMV8i'></ins><ul id='ZMV8i'></ul><sub id='ZMV8i'></sub></form><legend id='ZMV8i'></legend><bdo id='ZMV8i'><pre id='ZMV8i'><center id='ZMV8i'></center></pre></bdo></b><th id='ZMV8i'></th></span></q></dt></tr></i><div id='ZMV8i'><tfoot id='ZMV8i'></tfoot><dl id='ZMV8i'><fieldset id='ZMV8i'></fieldset></dl></div>

                    <legend id='ZMV8i'><style id='ZMV8i'><dir id='ZMV8i'><q id='ZMV8i'></q></dir></style></legend>
                    • <bdo id='ZMV8i'></bdo><ul id='ZMV8i'></ul>

                  2. <tfoot id='ZMV8i'></tfoot>