app not launching on iPhone (iOS 5) - iphone

Just installed and app on my iPod touch using a developer provisioning profile. The app works fine some time but after some time it fails to start on iPod (iOS 5) touch, just tries to launch but in half way through closes .... even the splash is also not visible.
I checked the crash log from device says something like this.
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x00000001, 0xe7ffdefe
Crashed Thread: 0
Dyld Error Message:
Library not loaded: /Developer/Library/Frameworks/SenTestingKit.framework/SenTestingKit
Referenced from: /var/mobile/Applications/DBC8A071-F305-4095-8FF5-76DDC99DDDEE/ApplicationName.app/ApplicationName
Reason: image not found
Dyld Version: 199.5
Binary Images:
0x1000 - 0x72fff +ApplicationName armv7 <1f10c6b4168c3503908fead68d17ddb5> /var/mobile/Applications/DBC8A071-F305-4095-8FF5-76DDC99DDDEE/ApplicationName.app/ApplicationName
0x2fe79000 - 0x2fe9afff dyld armv7 /usr/lib/dyld
From log it seems like its failing to load the SenTestingKit library but how it works for some time????
And if I remove this framework what should be the alternative for iOS 5.
Please shed some light on this rather strange issue.

You should only be linking to SenTesting in your Testing target.

First:
Try to delete the derived Data, then clean the project and restart Xcode. If its still not working, check the Target dependencies of your library.
Second: Try to mark the SenTestingKit as "optional".

There are some problems with loading libraries in iOS 5, so just try to clean the project in xCode 4 and build it again. That maybe help you, because after a cleaning all paths will be set up for new.

Related

App crash - AuthenticationServices Library not loaded

I'm trying to use AppAuth-iOS dev-logout branch and I tested on simulator 10.3.1.
When I try to run the code I get this crash:
dyld: Library not loaded:
/System/Library/Frameworks/AuthenticationServices.framework/AuthenticationServices
Reason: image not found
AuthenticationServices only appeared in iOS 12.0+, so this may be the cause of the crash.
Link to github issue: https://github.com/openid/AppAuth-iOS/issues/350
Thanks for any hint!
You can mark the AuthenticationServices.framework as Optional in the Linked Frameworks and Libraries section. This solved the problem for me.
You can add the library/framework to the Embedded libraries and frameworks section. Also have a look at OS X Framework Library not loaded: 'Image not found'
Just in case anyone is as dumb as I am:
I was running a newer version of the Xcode Beta than my device's iOS version. Updating my device fixed this is

iOS app framework crashed

While I am trying to deploy an app on my phone, The app crashed and here is the console log:
dyld: Library not loaded: #rpath/libswiftCloudKit.dylib Referenced
from:
/var/containers/Bundle/Application/3327C878-41D2-4394-9D3E-F5FA1C126941/ProximityContent.app/ProximityContent
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/3327C878-41D2-4394-9D3E-F5FA1C126941/ProximityContent.app/Frameworks/libswiftCloudKit.dylib:
code signing blocked mmap() of
'/private/var/containers/Bundle/Application/3327C878-41D2-4394-9D3E-F5FA1C126941/ProximityContent.app/Frameworks/libswiftCloudKit.dylib'
This happens for all other applications in my xcode.
I fixed the same issue (were having EXC_BAD_ACCESS for AVFoundation) by cleaning (cmd+k) and then cleaning the folder (cmd + shift + K).
It worked for me.
Check your Framework deployment info means framework supported OS.
Your project supported OS version and framework supported OS version check required.

Can't deploy to iPhone(1st Generation) after updating from Xcode 4.1 to 4.2.1

After updating from 4.1 to 4.2.1, I was not able to deploy to my 1st generation iPhone. I received a message that a debugger for version 3.0 - 3.2 needs to be downloaded. I downloaded it.
After downloading the debugger, now Xcode displays the messages:
"Build succeeded" and "Finished running....".
But the application doesn't even launch!
There haven't been any code changes.
The only other change is that Xcode suggested I update the build settings to use the llvm 3.0 compiler (all I did was click OK).
Now It won't deploy to my first gen iPhone.! :C
It seems to deploy to my 4th generation iPod touch (iOS 5.01 (9A405)) without problem though.
Is there some kind of code change or setting change I need to make?
The last version of Xcode where I could deploy was 4.1 . After that I updated to 4.2.1
EDIT: I followed rckoenes advice below, and I added armv6 & armv7 to the architectures (and removed the variable that was already there). Now the application launches on my device, but almost immediately into the launch, the following error appears :
dyld: Symbol not found: __NSConcreteStackBlock
Referenced from: /var/mobile/Applications/921C1E7F-449D-4EA1-AEAA-70A1AF60C351/ProjectX.app/ProjectX
Expected in: /usr/lib/libSystem.B.dylib
I have tried the following:
under "Build Phases" for the targets, I have added libSystem.B.dylib under "Link Binary With Libraries".
But the error message still appears.
EDIT: Marking the library as optional in "Link Binary With Libraries" makes the error go away".
You probably need to add the armv6 to you Architectures list: http://triplesoftware.nl/2011/12/running-ios-5-build-apps-on-the-orignal-iphone-ipod-touch-and-iphone-3g/

dyld: Library not loaded: /usr/lib/libc++abi.dylib

I've build my project on xcode 4.2.
I selected iPhone 4.3 simulator and build the project.
Then the error occured.
dyld: Library not loaded: /usr/lib/libc++abi.dylib
Referenced from: /Users/Player/Library/Application Support/iPhone Simulator/4.3.2/Applications/CF49143F-07C9-4609-AADB-82DD3AEAF6D9/Mahjang.app/Mahjang
Reason: image not found
How can I solve this problem?
Need your help.
I ran into this too: installed XCode 4.2 on Snow Leopard, and ran my app on the simulator. 5.0 simulator works, but forces it into Portrait mode (separate issue). The immediate problem was all the 4.x simulators that worked fine under XCode 4.1 would boot the app to the Default.png splash screen, and then just crash, with the disassembly showing:
int 3
nop
And the stack trace showing __dyld_dyld_fatal_error. Looking in gdb showed the most useful information posted in the question above.
Copying that llvm link to libc++abi.dylib into /usr/lib works, but there is a safer solution:
Answer: Add -Wl,-no_implicit_dylibs to "Other Linker Flags" in your build settings.
This is what I found out. Download zip from the below URL.
http://howardhinnant.github.io/libcppabi.zip
cp cxxabi.h to /usr/include, and cp libc++abi.dylib to /usr/lib. Now your simulator should work.
The URL seems a little funky to me, being a very non-offical location. But I got it from http://libcxx.llvm.org/ so I'm going to say it is trustworthy. Don't know what the story is here with why this is necessary.

iOS 4 app crashes at startup on iOS 3.1.3: Symbol not found: __NSConcreteStackBlock

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.
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
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
Thanks for any advice!
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.
Since most of these answers are specific to Xcode 3.x, just wanted to share what I did to fix this with Xcode 4.2.
Under your target in the "Build Phases" tab in the "Link Binary With Libraries" section I added "libSystem.dylib" and made it optional. This fixed the issue iOS 3.x devices while maintaining support for iOS 4.x and 5.0 devices.
If you happen to be using the cocos2d libraries, there is a cleaner way to do this, you should configure the cocos2d target's Deployment target to 3.0