崩溃“未找到符号:_OBJC_CLASS _ $ _ NSMutableURLRequest”

时间:2014-06-09 22:01:31

标签: ios xcode nsurlrequest cfnetwork

我在带有iOS 7.1.1的iPad 3上以调试模式从Xcode 5.1.1安装了我的应用程序,如下面的崩溃日志所示。在安装应用程序的一天工作正常。我没有使用我的iPad 2天,今天它只是在Splash屏幕上崩溃,第一秒。重启iOS没有帮助。

任何想法为什么会发生?我将重新添加CFNetwork和Foundation框架到我的项目,以防万一,但也许它是其他的东西?可能是iOS中的一个错误?

Incident Identifier: 24087CE7-3EBE-4FFB-ABC0-091495F774BF
CrashReporter Key:   4d82b50f4190912e3298f7f5ba036ac01d4e6116
Hardware Model:      iPad3,3
Process:             EAU4 [131]
Path:                /var/mobile/Applications/ED697CB6-A7D5-4E54-BE8F-E9B7F3D0D38C/EAU4.app/EAU4
Identifier:          com.develoer.ipad
Version:             4.0 (4.0)
Code Type:           ARM (Native)
Parent Process:      launchd [1]

Date/Time:           2014-06-09 22:38:35.028 +0100
OS Version:          iOS 7.1.1 (11D201)
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x00000000e7ffdefe
Triggered by Thread:  0

Dyld Error Message:
  Symbol not found: _OBJC_CLASS_$_NSMutableURLRequest
  Referenced from: /var/mobile/Applications/ED697CB6-A7D5-4E54-BE8F-E9B7F3D0D38C/EAU4.app/EAU4
  Expected in: /System/Library/Frameworks/CFNetwork.framework/CFNetwork
 in /var/mobile/Applications/ED697CB6-A7D5-4E54-BE8F-E9B7F3D0D38C/EAU4.app/EAU4
  Dyld Version: 324.1

Binary Images:
0x2be46000 - 0x2be66fff dyld armv7  <651a31c39f71311f965f8ac44de02c88> /usr/lib/dyld
0x2d1b1000 - 0x2d2b3fff AVFoundation armv7  <e6f4e322434733c2a6d074bdc226b08d> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x2d2b4000 - 0x2d2dcfff libAVFAudio.dylib armv7  <0bae9ec49a9637c696edf86d86a32db6> /System/Library/Frameworks/AVFoundation.framework/libAVFAudio.dylib
0x2d2dd000 - 0x2d2ddfff Accelerate armv7  <0424978b39f037a7b3bf9aad5b34a5b3> /System/Library/Frameworks/Accelerate.framework/Accelerate
0x2d2e7000 - 0x2d4b3fff vImage armv7  <c4834965bdc638fcb1082f53a7721f42> /System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/vImage
...... link on others frameworks .....

更新 找到了类似的问题dyld: Symbol not found: _NSURLAuthenticationMethodClientCertificate when trying to run iOS app

1 个答案:

答案 0 :(得分:6)

尝试重新添加Foundation.framework:

  1. 转到您项目的目标
  2. 选择&#34; General&#34;标签
  3. 在&#34;链接框架和图书馆&#34;查找Foundation.framework,选择它并按下buttom处的减号(&#39; - &#39;)以删除此框架。
  4. 现在按加号(&#39; +&#39;)并搜索Foundation.framework - 重新添加它,它应该可以修复您的崩溃。
  5. 希望它有效 - 它确实适合我。