iOS Simulator Crash in App with Embedded Binary - ios

I'm having a strange issue and wondering if anyone knows what is going on. In Xcode 6.2, if you follow these steps:
create a new workspace
create a new iOS > Application> Single View Application project in
the workspace
create a new iOS > Framework & Library > Cocoa Touch Framework
project in the workspace
add the framework as an embedded binary in the app
build and run the app on any 8.2 simulator and then stop it
launch the app from within the simulator
Every time you try to launch the app from within the simulator (not running it from Xcode, but actually clicking on the app icon inside the simulator) the app crashes on startup. The only thing I see in the system log is:
Apr 3 20:04:53 MacBook com.apple.CoreSimulator.SimDevice.6B002DFB-FE6C-4295-BA22-742E4CEE2B6D.launchd_sim[61494] (UIKitApplication:com.test.TestApp[0xcb1d][61787]): Service exited due to signal: Trace/BPT trap: 5
Apr 3 20:04:53 MacBook.local SpringBoard[61507]: Application 'UIKitApplication:com.test.TestApp[0xcb1d]' crashed.
Apr 3 20:04:53 MacBook assertiond[61511]: assertion failed: 14C1514 12D508: assertiond + 14743 [849F745E-3AAA-3638-91FF-892312A54F42]: 0x1
Does anyone know if this is by-design or if embedded binaries work correctly? I'm hesitant to add an embedded binary to my app if the app always crashes in the simulator.
Thanks!
- Tom B.

Related

How to use a launch storyboard or XIB?

iOS App Store did not reject but downloaded app can not complete app launch
Published version in App Store stays on startup then closes.
My NativeScript-Vue app was updated from NS v6
I have re-generated splash images
runs fine through ns run ios --device or ns run ios --emulator
I can run app on iphone 6S using Xcode too
I can even publish to Apple Store and it's excepted.
But released app can not start and stays in the launch screen for a while then closes.
It looks like It's the same error I was getting in my previous attempt to build.
My app runs only if Main Interface area is empty
If I select LaunchScreen or LaunchScreen.storyboard app stays on launchScreen for ever.
Details:
I am getting errors after build analysis such as;
/Users/user/Documents/myapp-mobil/platforms/ios/Pods/MaterialComponents/components/Tabs/src
/MDCTabBarViewController.m:213:5: nil passed to a callee that requires a non-null 1st parameter
and
/Users/cemkaan/Documents/myapp-mobil/platforms/ios/sebappmobil/Resources/Assets.xcassets:1:1: Launch images are deprecated in iOS 13.0. Use a launch storyboard or XIB instead.
iOS Development Target: 12.4
It was rejected from the app store with a Binary Rejected notice
iOS crash log which I have shared as a gist. says:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
UNUSED SPACE AT START
__TEXT 1003e8000-1003ec000 [ 16K] r-x/r-x SM=COW ...p/myappmobil
Am I doing something wrong in Main Interface area?
Is there any way to determine; why the published version can not complete the app launch?

AS3 - iOS app crashes at breakpoint

I have a very annoying problem with debugging AIR apps on iOS devices and simulators.
Simply put, the app crashes when I'm debugging application and it stops at a breakpoint. Then the line with breakpoint is selected for a second or less and then the app is gone.
Here's some logs I got from simulator after last flash trace:
assertiond[30178]: assertion failed: 15G31 13E230: assertiond + 16726 [1BD9E3D0-5485-3412-86B2-4BE50C825E80]: 0x1
SpringBoard[30174]: HW kbd: Failed to set (null) as keyboard focus
SpringBoard[30174]: BSXPCMessage received error for message: Connection invalid
--- last message repeated 1 time ---
com.apple.CoreSimulator.SimDevice.EE317320-40C9-4513-9BE9-02611D6DD722.launchd_sim[30158] (UIKitApplication:com.my.app.id[0x31d1][30651]): Service exited due to signal: Segmentation fault: 11
assertiond[30178]: assertion failed: 15G31 13E230: assertiond + 16726 [1BD9E3D0-5485-3412-86B2-4BE50C825E80]: 0x1
SpringBoard[30174]: Application 'UIKitApplication:com.my.app.id[0x31d1]' crashed.
assertiond[30178]: assertion failed: 15G31 13E230: assertiond + 16726 [1BD9E3D0-5485-3412-86B2-4BE50C825E80]: 0x1
assertiond[30178]: notify_suspend_pid() failed with error 7
And that's it.
The funny thing is that it may not happen for months, then suddenly every breakpoint causes a crash.
From what I've noticed, the device, iOS version, and AIR version don't matter.
Have you guys ever faced this problem? Do you have any solution for this?
The AIR compiler has a known issue in the following scenarios:
If the base class function doesn't use any arguments and the overridden function in the derived class does, then any function calls through the base class reference can cause the application to terminate abruptly.
If 32-bit support is required, downgrading may be required:
However, with the release of AIR 20, only a 64-bit Runtime dynamic Library is provided on Mac OS X. See AIR 20 release notes for details.
Certain users who are running apps that require 32-bit ANEs may want to downgrade to a lower AIR version that supports a 32-bit Runtime dynamic Library.
The Flash Debugger(fdb) combined with the AIR Debug Launcher(ADL) may give more information:
Use the AIR Debug Launcher (ADL) to run both SWF-based and HTML-based applications during development. Using ADL, you can run an application without first packaging and installing it. By default, ADL uses a runtime included with the SDK, which means you do not have to install the runtime separately to use ADL.
AIR supports debugging directly, so you do not need a debug version of the runtime (as you would with Adobe® Flash® Player). To conduct command-line debugging, you use the Flash Debugger and the AIR Debug Launcher (ADL).
The Flash Debugger is distributed in the Flex SDK directory. The native versions, such as fdb.exe on Windows, are in the bin subdirectory. The Java version is in the lib subdirectory. The AIR Debug Launcher, adl.exe, is in the bin directory of your Flex SDK installation. (There is no separate Java version).
Note: You cannot start an AIR application directly with fdb, because fdb attempts to launch it with Flash Player. Instead, let the AIR application connect to a running fdb session.
References
AIR Compiler Known Issues
Building Adobe AIR Applications: AIR Debug Launcher (ADL)
Debugging with fdb
Issues while downgrading from AIR 20 to a lower version on Mac OS X
AIR 20 Release Notes
Archived Adobe AIR SDK versions
Troubleshoot Adobe AIR installation for Mac OS

Xcode: could not load any Objective-C class information from the dyld shared cache

When a crash occur (using a test device connected to Xcode, in my case iPhone 4s with iOS 9), Xcode 7 fails to load debug data for some of the system classes, hence it displays the aforementioned error. I'm working with a Swift 2.1 project. Does any one know how to fix it and make it load such data? It has proven to be hellish trying to debug when this happen.
PS: It has nothing to do with the type of crash, it is just an Xcode problem.

Reason: no suitable image found : Frameworks/libswiftCore.dylib; start crashing in Xcode 7

I have an existing iOS project written in Swift successfully running on iOS 8.4.1. I have compiled the project on Xcode 7 with some changes as per in Swift 2.0. It's running on Simulator. But when I start using device, Application start crashing at launch time
/Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x1002C0000, size=0x00214000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/89E98704-14A2-4341-B0A9-61F9DD639100/....../Frameworks/libswiftCore.dylib.
I have tried all the suggestion from StackOverflow and other resources except Altering Apple Certificates.
Can anyone let me know what would be the issue and how can I overcome to this problem.
Thanks

iOS App crash on start when debugging WatchKit Extension

I am developing an iOS app and its watch kit extension and trying to run them on the simulator with Xcode 6.4.
Both of them run fine on real devices, but unfortunately I don't own the AppleWatch I use for testing so I have to test the extension on the simulator.
If I run the app alone it's all ok, but when I run the extension and tap on the app on the iPhone simulator, it crashes immediately and I can't figure out why.
Sep 12 11:52:44 MacBook-Pro-** assertiond[22563]: assertion failed: 14F27 12H141: assertiond + 12334 [EDAF3958-87C7-3C61-A8E6-24689FBBE168]: 0x1
Sep 12 11:52:44 MacBook-Pro-**.local SpringBoard[29507]: LICreateIconForImage passed NULL CGImageRef image
Sep 12 11:52:45 MacBook-Pro-** com.apple.CoreSimulator.SimDevice.0868CE09-5C9E-4445-A8C9-48F00AA445AF.launchd_sim[22544] (UIKitApplication:**myAppBundleId**[0xb354][29533]): Service exited due to signal: Trace/BPT trap: 5
Everything used to work some days ago, so I must have done something wrong...
Still I don't know what was the reason that caused this behavior, but I resolved by using this tool: https://github.com/kylef/cocoapods-deintegrate
I removed any trace of cocoapods from the project and then reinstalled all the pods again.
After that everything went back to normal.

Resources