I'm facing an issue where when opening the RealityKit template from Apple in Xcode 11.5, the app will crash on an iPad Pro 11" (2020) with a confusing error.
The error is
com.apple.arkit.capture (35): EXC_BAD_ACCESS (code=1, address=0xfffffffffffffffc)
The last message in the console is
2020-05-26 12:28:12.740185+0930 BlankAR[4276:154461] [Sensor] ARDepthSensor (AVCaptureDeviceTypeBuiltInTimeOfFlightCamera - Back) (0x141f26290): capture session dropped jasper frame: 4570.047651, LateData
There isn't really any more info to provide. It's Apple's default Augmented Reality template in Xcode.
Related
I build an AppleWatch standalone app some months ago. I worked fine, but after running Xcode 14.2 segues don't work anymore. It crashes the app.
See the video with Xcode and the simulator showing the problem: https://youtu.be/LlgnZ68JUe8
I removed the segues. Added them again. Same result.
Does anyone have the same experience and knows how to work around this?
This is the crash log:
2023-01-25 18:29:31.297044+0100 radioNED[68275:936119] [default] -[SPRemoteInterface createViewController:className:properties:contextID:info:gestureDescriptions:clientIdentifier:interfaceControllerCreationCompletion:]:3229: Couldn't instantiate class _TtC34radioNEDWatchOS_WatchKit_Extension14MenuController
2023-01-25 18:29:31.297175+0100 radioNED[68275:936119] [default] -[SPRemoteInterface createViewController:className:properties:contextID:info:gestureDescriptions:clientIdentifier:interfaceControllerCreationCompletion:]:3230: Critical failure. Simulating crash: Condition failed:"NO". Couldn't instantiate class _TtC34radioNEDWatchOS_WatchKit_Extension14MenuController
CoreSimulator 857.14 - Device: Apple Watch Series 8 (45mm) (B8446BC6-7125-4A3F-874E-FD58549E6BD3) - Runtime: watchOS 9.1 (20S75) - DeviceType: Apple Watch Series 8 (45mm)
I have an ARC lite enabled app (ARC enabled without zeroing weak reference, Apple LLVM 4.0). Deployment target set to iOS 4.0. It's been tested on iOS 4.0 to 5.1.1. It always works fine when I use debug build and install through Xcode, but when I create an adhoc build with release configuration, it always crash during launch on 2nd gen iPod with iOS 4.2.1, but works fine on other devices (even 3rd gen iPod with iOS 4.3).
The crash log says
symbol not found: _objc_retainAutoreleasedReturnValue
and it crashes when method main is called (then it's dyld_stub_binder, dyld::fastBindLazySymbol)
I did some search and this crash normally happens when an arc enabled library is included in a project without arc. But in my case arc is enabled for the whole project.
Any clues?
Thanks very much.
[EDIT] Update: I can use NSLog to debug the adhoc build.
The main.m is like:
int main(int argc, char *argv[]) {
NSLog(#"ok before entering autorelease pool");
#autoreleasepool {
NSLog(#"ok after entering autorelease pool");
return UIApplicationMain(argc, argv, nil, NSStringFromClass([XXX class]));
}
}
NSLog(#"ok after entering autorelease pool") gets called successfully, but application:didFinishLaunchingWithOptions: is never entered.
It seems that it's related to the command line build tool. I used to use xcodebuild command to archive the adhoc build:
xcodebuild -scheme myscheme clean build archive
And got this crash.
Then I tried archiving from Xcode, the adhoc build actually works fine on all devices. So weird (keep in mind that the command line built adhoc worked for devices newer than iPod 2nd gen).
For now I'll just use the Archive button in Xcode. But I posted this question in Apple dev forum:
https://devforums.apple.com/message/711334
My answer: How i come out from the same problem.
Steps:
1.First make the all the changes in the code sign column and make sure that all the setting are work same as you want in the project tab and target tab as well.
2.Just making all the setting in the first step like selecvting correct provsioning and specify accurate bundle indetifier then now make the xcode quit .
3.After 2 step just restart you computer and then make build for the profile that you selected in first step.
Now its working fine ,hope so this answer may be help you as well.Anyway its my solution of the above problem.....:)
[PayPal initializeWithAppID:#"APP-80W284485P519543T" forEnvironment:ENV_SANDBOX];
UIButton *button = [[PayPal getInstance] getPayButtonWithTarget:self andAction:#selector(payWithPayPal) andButtonType:BUTTON_278x43];
Any one of line, If I am writting in my application's viewDidLoad or appDidFinishLauch, then it works fine on simulator, but while I do run it on iOS5 (iPod Touch) it gives the following error, and goes hang or crash...
Program received signal: “EXC_BAD_ACCESS”.
warning: check_safe_call: could not restore current frame
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Can't find dlopen function, so it is not possible to load shared libraries.)
What is meaning of this issue, and how to solve it?
NOTE: The issue is only in iOS5, in all other devices and simulators, its working fine,
I am using Mac OS 10.6 and SDK is 4.
Can anyone has issue like this, or know how to solve it?
I would like to use Instruments to check for any memory leaks in my iPhone app.
But as soon as I'm pressing the record button in Instruments, the Xcode status bar is mentioning:
GDB: Program received signal: "SIGKILL".
My app is of course not responding anymore on my iPhone.
Does anyone know what the problem is?
Step 1 - Quit the Instruments, Xcode and Simulator.
Step 2 - Start Xcode.
Step 3 - Go to Run -> Run with performance tool -> Leaks.
Thats it!
I've an application which is working fine on iOS 4.0 or higher but keep crashing immediately after launch on device 3.1.3 or lower. I've set "Base SDK" to "4.1" and "Deployment Target" to "3.0".
Crash Log -
Dyld Error Message:
Symbol not found: _UIKeyboardFrameEndUserInfoKey
Referenced from: /var/mobile/Applications/FE470A03-6285-48E4-B188-A0023500AA84/XXX
Expected in: /System/Library/Frameworks/UIKit.framework/UIKit
Dyld Version: 149
I've weak linking to new frameworks.
Any help greatly appreciated.
Regards,
Amit
The constant UIKeyboardFrameEndUserInfoKey was introduced with iOS 3.2. So it's not available on a 3.1.3 device. Furthermore, the constant is defined in the UIKit framework. So weakly linking to new frameworks is not sufficient because UIKit is an old framework.
I see two options:
Switch to weak linking for UIKit (and make sure the constant isn't used on older devices).
Replace the use of UIKeyboardFrameEndUserInfoKey with UIKeyboardBoundsUserInfoKey. It's deprecated and works slightly differently. But it still works.
Weak Linking "UIKit" framework did the trick. And one more line that crashing a application was using "UIApplicationWillEnterForegroundNotification" without checking whether it's available or not.
Following checking has fixed that issue.
if (&UIApplicationWillEnterForegroundNotification != NULL) {
//Register for a notifiation when application enter into foreground state
[[NSNotificationCenter defaultCenter] addObserver:self selector:#selector(reloadVCData:) name:UIApplicationWillEnterForegroundNotification object:nil];
}
Regards,
Amit