Application crashes after successful compilation and build in Xcode

There is a major problem with my application. It was developed in late 2012, but now I have to add some new SDKs. I added everything via CocoaPods.

Even though it compiles and builds successfully, it crashes right after it, not showing me any error / warning messages.

I've been trying to figure this out for a long time but still couldn't find a way.

Here's something my Xcode tells me (after a crash):

dyld_sim`dyld_fatal_error:
    0x1030c4000 <+0>: int3   
->  0x1030c4001 <+1>: nop    

      

This is what I see:

enter image description here

I also set error points:

enter image description here

But no luck.

I put a breakpoint in main.m and AppDelegate.m but it didn't stop here.

This is Build Settings - Architecture :

enter image description here

What is the problem?

Update:

I got the following message when I run it on iPhone5 with 7.1.

exited abnormally with signal 5: Trace / BPT trap: 5

Update 2: Added crash log

Incident Identifier: 86E3767B-D6FD-4E31-A10A-3D1A87E66DFB
CrashReporter Key:   bbd8c85f9242cf76be887456c573dc6db1b5d9ef
Hardware Model:      iPhone5,1
Process:             MY_APP [587]
Path:                /var/mobile/Applications/D0526AD1-A61F-4951-B1D5-E508D10A2591/MY_APP.app/MY_APP
Identifier:          com.myapp.MY_APP
Version:             1.0.9.2 (1.0.1)
Code Type:           ARM (Native)
Parent Process:      launchd [1]

Date/Time:           2015-06-25 11:17:53.805 +0530
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:
  Library not loaded: @rpath/XCTest.framework/XCTest
  Referenced from: /var/mobile/Applications/D0526AD1-A61F-4951-B1D5-E508D10A2591/MY_APP.app/MY_APP
  Reason: image not found
  Dyld Version: 324.1

Binary Images:
0x2be97000 - 0x2bebafff dyld armv7s  <4d05d388718832c99cdd4e74aeb07d51> /usr/lib/dyld
0x2f356000 - 0x2f458fff AVFoundation armv7s  <c88b12b244d13bbd9a8ab681956234e4> /System/Library/Frameworks/AVFoundation.framework/AVFoundation
0x2fa79000 - 0x2fa99fff Accounts armv7s  <73b0639b81fe30d5b2b13628d3df2273> /System/Library/Frameworks/Accounts.framework/Accounts
0x2fc1a000 - 0x2fc2bfff AssetsLibrary armv7s  <372ff89a2ede36aa85ce562f3e513f07> /System/Library/Frameworks/AssetsLibrary.framework/AssetsLibrary
0x30541000 - 0x30665fff CoreGraphics armv7s  <182ccc3a111d360eb5c1e58b4289afb3> /System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
0x30988000 - 0x309d7fff CoreLocation armv7s  <5d78705a46ab313fa21f1d5ed2f0ce3f> /System/Library/Frameworks/CoreLocation.framework/CoreLocation
0x30a0f000 - 0x30a8afff CoreMedia armv7s  <d68d0cf856f13ff7ab9418ccd671cd65> /System/Library/Frameworks/CoreMedia.framework/CoreMedia
0x30b34000 - 0x30b8cfff CoreTelephony armv7s  <711db5ac808937b09143f43f11f06422> /System/Library/Frameworks/CoreTelephony.framework/CoreTelephony
0x30b8d000 - 0x30c1dfff CoreText armv7s  <43e84c5a90fc36a984363965f2d8029b> /System/Library/Frameworks/CoreText.framework/CoreText
0x30ded000 - 0x30fd7fff Foundation armv7s  <b75ca4f9d9b739ef9b16e482db277849> /System/Library/Frameworks/Foundation.framework/Foundation
0x31c27000 - 0x31cd2fff MessageUI armv7s  <42cf298919f134d888a001f1336c2550> /System/Library/Frameworks/MessageUI.framework/MessageUI
0x31cd3000 - 0x31d36fff MobileCoreServices armv7s  <1a736ebbc93431c8943cdd93a0a0fdcb> /System/Library/Frameworks/MobileCoreServices.framework/MobileCoreServices
0x3277e000 - 0x32786fff OpenGLES armv7s  <1c3e551d0a923b86940ad36a6e682463> /System/Library/Frameworks/OpenGLES.framework/OpenGLES
0x32971000 - 0x32ab8fff QuartzCore armv7s  <741ee0338b1235aab1550f91a3956041> /System/Library/Frameworks/QuartzCore.framework/QuartzCore
0x32b12000 - 0x32b54fff Security armv7s  <cd7187d315eb301e845cfae580ca905f> /System/Library/Frameworks/Security.framework/Security
0x32ca4000 - 0x32cf3fff SystemConfiguration armv7s  <82758c34b29a333bbdfe73e78361e0e1> /System/Library/Frameworks/SystemConfiguration.framework/SystemConfiguration
0x32cf4000 - 0x32cf5fff Twitter armv7s  <b6adeefeb05639abb4140fa07a92e705> /System/Library/Frameworks/Twitter.framework/Twitter
0x32cf6000 - 0x33469fff UIKit armv7s  <f725ad0982673286911bff834295ec99> /System/Library/Frameworks/UIKit.framework/UIKit
0x3a5d0000 - 0x3a61bfff libc++.1.dylib armv7s  <72615c78ae5f39dcbafa740d87035caf> /usr/lib/libc++.1.dylib
0x3af0a000 - 0x3afa1fff libsqlite3.dylib armv7s  <584eaf4090783a64b8a33125a6a976bd> /usr/lib/libsqlite3.dylib
0x3b0f0000 - 0x3b0fcfff libz.1.dylib armv7s  <578def3dfb6e3180b5f9d0cdacfea7ab> /usr/lib/libz.1.dylib

      

+3


source to share


3 answers


I was able to create and run the application as soon as I removed the frame OCMock

, Specta

and Expecta

in my project and then complete cleaning and cleaning of the data up to Command+ Rmake it work. Thanks everyone for your 2 cents :)

Update:



After that - I cannot debug my application. I only need to allow launch in mode release

. Otherwise it will give me this error.

undefined symbols for i386 architecture

0


source


You say you are on the IOS 7 SDK, however your base SDK is set to 8.3



Perhaps changing it to IOS 7 will fix the error

0


source


It looks like your main goal is to link with XCTest.framework, but failed.

1) Go to project settings -> 2) Go to main application target -> other linker flags 3) remove '-framework XCTest' 4) make sure the "other linker labels" field for your test target still contains "-framework XCTest '

2) check Images.xcassets and other resources in file inspector (right pane), look at "target membership", check if target is selected.

3) try searching XCTest

your project and see what you have installed.

0


source







All Articles