Xcode Version 6.3.2
The coding project: Objective-C
I can not send the application to Apple, I get this error when upload.
Can you help to correct the error?
Crashed Thread: 15 Dispatch queue: NSOperationQueue 0x7fb2c8a0bf50 :: NSOperation 0x7fb2c8bf5480 (QOS: USER_INITIATED)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6D2105
ASSERTION FAILURE in /SourceCache/IDEFrameworks/IDEFrameworks-7718/IDEFoundation/Issues/IDEIssueManager.m:457
Details: This method must only be called on the main thread
Object: <IDEIssueManager>
Method: +_issueProviderInfo
Thread: <NSThread: 0x7fb2c75fbc90>{number = 21, name = (null)}
Hints: None
Close "workspace/project view", leave only "Organiser View" opened and submit your app.
Related
Hi I am working on upgrading Xcode project from iOS 13 to iOS 14 and using xcode 12.1 When I run the application webview will be opened inside app and get login screen. When I tap on textfield app crashes with below error. Xcode is not showing where it is crashing exactly I tried Exception breakpoint also not able to identify.
-[NSConstantIntegerNumber length]: unrecognized selector sent to instance 0x1fae7fd20
2020-11-27 16:59:31.436225+0530 XYZApp [527:40363] *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[NSConstantIntegerNumber length]: unrecognized selector sent
to instance 0x1fae7fd20'
*** First throw call stack:
(0x1a669b114 0x1b9f37cb4 0x1a65ab9b8 0x1a669d758 0x1a669f6cc 0x1a7841754 0x1043fb8b0 0x1043fb8dc
0x1eb5e3960 0x1eb5e1c54 0x1a6588ca0 0x1aa7e7264 0x1aa88bb60 0x1aa8613f4 0x1aa78e3a8 0x1aa84b56c
0x1aa834b70 0x1aa852514 0x1aa85edac 0x1aa7b0d40 0x1aa7c4d50 0x1aa7b7d88 0x1af1f8198 0x1af1f9480
0x1eb97995c 0x1af1f4ce8 0x1af165a2c 0x1af1663f4 0x1a8ae74bc 0x1a8a2b338 0x1a8a2a5a8 0x1eb9987d8
0x1a8a2c628 0x1a8a2fbfc 0x1eb9982a4 0x1a8a33258 0x1eb9981fc 0x1a8a34cb4 0x1eb998050 0x1a91aee90
0x1a91ae6d8 0x10505fdb8 0x1050615fc 0x10506fa6c 0x1a661ac30 0x1a66150e8 0x1a6614200 0x1bc791598
0x1a8eddbcc 0x1a8ee31a0 0x1042f727c 0x1a62f3588)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-
[NSConstantIntegerNumber length]: unrecognized selector sent to instance 0x1fae7fd20'
terminating with uncaught exception of type NSException
In my app I have fabric and DefaultExceptionHandler both set. Order for the same is First Fabric is initialised and started then DefaultExceptionHandler is set.
When any uncaught exception is thrown same is caught in Default Exception and app is restarted after 100 ms. At that point getting the below exception from fabric when activity resumed.
E/Answers: Failed to submit events task
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask#b716997 rejected from java.util.concurrent.ScheduledThreadPoolExecutor#f402784[Shutting down, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 8]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2049)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:814)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:305)
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)
at java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:635)
at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:601)
at com.crashlytics.android.answers.AnswersEventsHandler.executeAsync(AnswersEventsHandler.java:185)
at com.crashlytics.android.answers.AnswersEventsHandler.processEvent(AnswersEventsHandler.java:171)
at com.crashlytics.android.answers.AnswersEventsHandler.processEventAsync(AnswersEventsHandler.java:47)
at com.crashlytics.android.answers.SessionAnalyticsManager.onLifecycle(SessionAnalyticsManager.java:129)
at com.crashlytics.android.answers.AnswersLifecycleCallbacks.onActivityStarted(AnswersLifecycleCallbacks.java:26)
at io.fabric.sdk.android.ActivityLifecycleManager$ActivityLifecycleCallbacksWrapper$1.onActivityStarted(ActivityLifecycleManager.java:111)
at android.app.Application.dispatchActivityStarted(Application.java:207)
at android.app.Activity.onStart(Activity.java:1194)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:595)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1270)
at android.app.Activity.performStart(Activity.java:6689)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2622)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
E/Answers: Failed to submit events task
java.util.concurrent.RejectedExecutionException: Task java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask#7d90833 rejected from java.util.concurrent.ScheduledThreadPoolExecutor#f402784[Shutting down, pool size = 1, active threads = 0, queued tasks = 1, completed tasks = 8]
at java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2049)
at java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:814)
at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:305)
at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:533)
at java.util.concurrent.ScheduledThreadPoolExecutor.submit(ScheduledThreadPoolExecutor.java:635)
at java.util.concurrent.Executors$DelegatedExecutorService.submit(Executors.java:601)
at com.crashlytics.android.answers.AnswersEventsHandler.executeAsync(AnswersEventsHandler.java:185)
at com.crashlytics.android.answers.AnswersEventsHandler.processEvent(AnswersEventsHandler.java:171)
at com.crashlytics.android.answers.AnswersEventsHandler.processEventAsync(AnswersEventsHandler.java:47)
at com.crashlytics.android.answers.SessionAnalyticsManager.onLifecycle(SessionAnalyticsManager.java:129)
at com.crashlytics.android.answers.AnswersLifecycleCallbacks.onActivityResumed(AnswersLifecycleCallbacks.java:31)
at io.fabric.sdk.android.ActivityLifecycleManager$ActivityLifecycleCallbacksWrapper$1.onActivityResumed(ActivityLifecycleManager.java:116)
at android.app.Application.dispatchActivityResumed(Application.java:216)
at android.app.Activity.onResume(Activity.java:1255)
at android.support.v4.app.FragmentActivity.onResume(FragmentActivity.java:485)
at com.my.package.BaseActivity.onResume(BaseActivity.java:105)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1291)
at android.app.Activity.performResume(Activity.java:6776)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3398)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3461)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2730)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6123)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757)
I need help with the above-mentioned error. My project is using AsyncDisplayKit and I am getting the error above in the _ASDisplayLayer.mm file line 104 in the method
- (void)setNeedsLayout
{
ASDisplayNodeAssertMainThread();//line 104 where error is occuring
[super setNeedsLayout];
}
I don't know how to solve this problem as I am new to the library and I am just rerunning a previous developer's work. Full error stack is:
* Assertion failure in -[_ASDisplayLayer setNeedsLayout], /Users/.../Desktop/.../Pods/AsyncDisplayKit/AsyncDisplayKit/Details/_ASDisplayLayer.mm:104
2016-03-16 00:17:08.951 DanceRockIt[408:168719] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ''
*** First throw call stack:
(0x252fa2eb 0x24ac6dff 0x252fa1c1 0x25ad0d3b 0x27f519 0x2755f93b 0x2755f3d9 0x2756240b 0x2758f1f5 0x2949954b 0x297c4525 0x294b3a69 0x294f9e2d 0x2956c68d 0x2956d473 0x2956b935 0x345515 0x345259 0x12abcd 0x106ccbf 0x10775c3 0x106fefb 0x1079017 0x1078909 0x25030e0d 0x250309fc)
libc++abi.dylib: terminating with uncaught exception of type NSException
Something call your setNeedsLayout code from background thread. You must find this place and move to GUI Thread (aka main thread).
for example:
dispatch_async(dispatch_get_main_queue(), ^{
[self.titleTextNode setNeedLayout];
});
I have an iOS7 application that I am trying to integrate CorePlot 1.4 into (Dependent Project Install).
#property (nonatomic) CPTGraphHostingView *hostingView;
and
_hostingView = [[CPTGraphHostingView alloc] initWithFrame:CGRectNull];
(_hostingView is subject to auto-layout.) If I then add a graph:
CPTXYGraph *graph = [[CPTXYGraph alloc] initWithFrame:CGRectZero];
_hostingView.hostedGraph = graph;
I first get this exception:
-[CPTTextStyle attributes]: unrecognized selector sent to instance 0xa392900
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CPTTextStyle attributes]: unrecognized selector sent to instance 0xa392900'
5 myapp 0x00074325 -[CPTAxis updateAxisLabelsAtLocations:inRange:useMajorAxisLabels:] + 1141
6 myapp 0x00075662 -[CPTAxis relabel] + 1202
In desperation I have then fixed this in updateAxisLabelsAtLocations:inRange:useMajorAxisLabels by:
NSDictionary *textAttributes = nil;
BOOL hasAttributedFormatter = FALSE;
and then get the next exception:
-[__NSCFString sizeWithTextStyle:]: unrecognized selector sent to instance 0x9591e90
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString sizeWithTextStyle:]: unrecognized selector sent to instance 0x9591e90'
5 myapp 0x00081520 -[CPTTextLayer sizeThatFits] + 320
6 myapp 0x0008163c -[CPTTextLayer sizeToFit] + 108
7 myapp 0x00080559 -[CPTTextLayer initWithText:style:] + 313
8 myapp 0x00074b87 -[CPTAxis updateAxisLabelsAtLocations:inRange:useMajorAxisLabels:] + 3159
9 myapp 0x00075672 -[CPTAxis relabel] + 1202
I have then 'fixed' this by commenting out this line in sizeThatFits:
else {
// textSize = [myText sizeWithTextStyle:self.textStyle];
}
Next exception is then:
-[__NSCFString drawInRect:withTextStyle:inContext:]: unrecognized selector sent to instance 0xa162bd0
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString drawInRect:withTextStyle:inContext:]: unrecognized selector sent to instance 0xa162bd0'
5 myapp 0x00081dc8 -[CPTTextLayer renderAsVectorInContext:] + 1144
6 myapp 0x00063f60 -[CPTLayer drawInContext:] + 112
which is fixed by commenting out below code in renderAsVectorInContext:
else {
// [myText drawInRect:newBounds
// withTextStyle:self.textStyle
// inContext:context];
}
Now finally no exceptions are thrown and the graph borders are shown. But if I then begin to add data/legend, etc. new exceptions are thrown :(
No text is shown on the axis etc. Of course this is because I have commented out the code. But any clue why these exceptions are thrown? I am desperate ;S
It seems like I have missed something fundamental in the integration. But my integration (CorePlot 1.3 though) worked fine in an iOS6 app on Xcode4 some time ago.
Check the linker flags in your app project. Core Plot requires -ObjC and -all_load. See the Core Plot wiki for more information.
yesterday, I downloaded the Sparrow mail app, which is crashing instant after startup.
Following crash log is generated:
Incident Identifier: [TODO]
CrashReporter Key: [TODO]
Hardware Model: iPhone4,1
Process: Sparrow [64701]
Path: /var/mobile/Applications/2D0B2A21-4BE0-4A1E-9119-B16FAA3A1572/Sparrow.app/Sparrow
Identifier: com.sparrowmailapp.iphoneapp
Version: 507.54
Code Type: ARM
Parent Process: launchd [1]
Date/Time: 2013-01-14 23:57:46 +0000
OS Version: iPhone OS 5.0.1 (9A406)
Report Version: 104
Exception Type: SIGABRT
Exception Codes: #0 at 0x305e132c
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException',
reason: '-[UINavigationBar setShadowImage:]: unrecognized selector sent to instance 0x9b1e70'
The problem is the property "shadowImage" in UINavigationBar, which doesn't exist on iOS 5.
Now i´m trying to build a mobile substrate addon to avoid the crash, adding the missing property to UINavigationBar with overwrite and following code:
#import <Foundation/Foundation.h>
#interface UINavigationBar(MyNavigationBar)
#property(nonatomic,retain) UIImage *shadowImage NS_AVAILABLE_IOS(6_0) UI_APPEARANCE_SELECTOR;
#end
%hook UINavigationBar
- (void)setShadowImage:(UIImage *)shadowImage forToolbarPosition:(id)topOrBottom {
%log;
//%orig;
}
- (void)setShadowImage:(UIImage *)shadowImage {
%log;
//%orig;
}
%end;
I have no idea, to set the shadowImage or UI_APPEARANCE_SELECTOR correctly.
Any ideas? Thanks
Oh god, these methods should be normal setter/getter of the shadowImage.
Problem resolved.