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.
Related
for the last 2 months I've been working on a Nativescript app for Android, now I want to bring it to iOS as well so I bought a MacBook and set everything up (which already took days). Now I am at a point where I can build the app for iOS without an error but it does not run on the emulator. The error it throws is quite unspecific:
(UIKitApplication:org.nativescript.BeYou[0x3de3][1786][11743]): Service exited due to signal: Segmentation fault: 11 sent by exc handler[0]
I found the reason to be "registerElement". I use it for two plugins:
import {registerElement} from "nativescript-angular/element-registry";
registerElement("StatusBar", () => require("nativescript-statusbar").StatusBar);
registerElement("CardView", () => require("nativescript-cardview").CardView);
When I comment out line 2 and 3, the app starts as intendet. As soon as I uncoment one of them, the app crashed after start (without actually showing the home page).
Does anyone of you have an idea how to solve this?
Thank you already for your help!
/e: Building and running Android works without a problem with the same code on the same machine, tns doctor doesn't show any problems.
I am now doing for UITesting with Xcode and I got this error.
* Assertion failure in void _XCTFailInCurrentTest(NSString *,
...)(),
/Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-10112/XCTestFramework/Classes/XCTestCase.m:63
2016-05-13 22:31:54.961 XCTRunner[15428:168507] * Terminating app
due to uncaught exception 'NSInternalInconsistencyException', reason:
'_XCTFailInCurrentTest should only be called while a test is running.
Failure description: Failed to receive completion for
I have seen other similar post here.
Cannot run Xcode (7.3) UI tests in Jenkins
I am using Jenkins but for now, I am directly running from Xcode and I can't even run from Xcode. How shall I do?
Background
I faced this issue in Xcode 7.3 (7D175) and iOS Simulator 9.3.
The symptoms were as follows
the Test Runner launches normally and exits.
Following this, the app under test never launches.
(if the app under test was not installed, Xcode will also never install the app prior to starting the test).
(a side symptom is that recording also does not work for me - I took inspiration from this SO post.)
After 30 seconds the test times out with:
XCTRunner[36260:489138] Continuing to run tests in the background with task ID 1
2016-05-18 16:17:25.720 XCTRunner[36260:489138] *** Assertion failure in void _XCTFailInCurrentTest(NSString *, ...)(), /Library/Caches/com.apple.xbs/Sources/XCTest_Sim/XCTest-10112/XCTestFramework/Classes/XCTestCase.m:63
2016-05-18 16:17:25.723 XCTRunner[36260:489138] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '_XCTFailInCurrentTest should only be called while a test is running.
Failure description: Failed to receive completion for <XCDeviceEvent:0x7fddc241f970 page 12 usage 64 duration 0.01s within 30.0s'
The fix that worked for me was:
reset the simulator.
check whether the deployment target is set to iOS 9.x in the build settings for the UI Test Target. (in my case it was set to iOS 8)
after changing the target, clean and rebuild.
After following these steps, Xcode was able to install the app prior to the test, recording worked, and the error went away.
By some reason simulator got corrupted. In my case it was not possible to launch any test once get at the same point. In my case what it worked was reset simulator (Menu Simulator|Reset Contents and Settings...) or switch to any other simulator.
We tried the tips from the other responses, which did not work for us.
A complete reinstall of Xcode 7.3 fixed our issue.
remove Xcode
restart
reinstall Xcode
success
When running my code on one computer the app crashes with this error:
*** Assertion failure in -[UITableView layoutSublayersOfLayer:], /SourceCache/UIKit/UIKit-2935.137/UIView.m:8794
But when running it on another computer the program works just fine.
What could be the reason for that?
Apparently it was an iOS version issue. So when I tried building it on the Xcode simulator it worked. on the contrary of running it on an iPhone 4 / iOS 7..
Thank you David 'mArm' Ansermot and trojanfoe for helping me solve it.
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.
I start up my app for debugging, and as far as I can tell, it just barely gets into UIApplicationMain when I get an access error inside of UIApplicationLinkedOnOrAfter.
EXC_BAD_ACCESS (code=1, address=0xfffffffc)
I'm on Xcode Version 4.6.2 (4H1003)
Additional info: Fails on the 6.1 simulator, but not the 6.0 simulator.
Aaaaand works on the iPad running iOS 6.1.3.
That function used by apple looks at the date of the UIKit library linked against apparently
NOT the date you linked but the date of the UIKit used... I don't fully get it either I am afraid.
src: https://news.ycombinator.com/item?id=3854388