I just started out programming for iOS. I tried adding an enter button for a simple calculator and changing its size, but Xcode keeps crashing. This is the report:
Process: Xcode [406]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 4.5.1 (1842)
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4G1004
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-1929/IBPlugin/Utilities/IBObjectMarshalling.m:651
Details: Failed to arbitrate IBNSLayoutConstraint, IBUIButton, IBUILabel, IBUIView, and IBUIViewController.
Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
Exception name: IBAssertionFailure
Exception reason: ASSERTION FAILURE:
Reason: All views needing candidate constraints have already had constraints generated. This most likely indicates a bug involving layout of the following views:
Layout engine frame ({{20, 20}, {282, 36}}) of <UILabel: 0x81f5560; frame = (20 20; 281 36); text = '0'; clipsToBounds = YES; opaque = NO; autoresize = TM+BM; userInteractionEnabled = NO; layer = <CALayer: 0x815cdd0>> does not match canvas frame ({{20, 20}, {281, 36}})
I've already tried reinstalling Xcode and resetting iOS simulator as well. I have Mountain Lion.
Try this steps:
1) Right click on Storyboard in the navigator
2) Click on Show File Inspector
3) Uncheck "Use Autolayout"
Hope this helps
Related
I'm having trouble with a Mac App Store submission
I have an Application Developed in Xamarin.Forms
I release the App from Visual Studio for MAC in Release mode
When I Install the package manually in my MAC system It is working perfect.
But when i upload the same package to AppleStore same is rejected With reason as
**Binary Rejected
Guideline 2.3 - Performance Your app does not achieve the core functionality described in your marketing materials or release notes.
Specifically, App does not launch from Finder. App icon momentarily appears on Dock but quit itself before being launched.**
Here are the detail of my Visual Studio and MAC Signing
Detail of Visual Studio for MAC
MAC Signing detail
Crash Report of this is as below
Process: MYApp [3341]
Path: /Users/USER/Desktop/*/MYApp.app/Contents/MacOS/MYApp
Version: ???
Code Type: X86-64 (Native)
Parent Process: ??? 1
Responsible: MYApp [3341]
User ID: 501
Date/Time: 2019-02-01 12:51:57.589 +0530
OS Version: Mac OS X 10.13.6 (17G65)
Report Version: 12
Anonymous UUID: 4C4421D7-C0F8-0B8D-8B82-A6E78F50AE60
Time Awake Since Boot: 9000 seconds
System Integrity Protection: enabled
Crashed Thread: 0
Exception Type: EXC_CRASH (Code Signature Invalid)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace CODESIGNING, Code 0x1
Review the official doc on the reason behind "EXC_CRASH (Code Signature Invalid)" and how to manually sign your app.
Q: When I run my Mac app, it crashes immediately, and the crash log says Exception Type: EXC_CRASH (Code Signature Invalid). What is going on here?
A: The crash log indicates that your app is signed with your Mac App Store distribution identity, with the certificate’s Subject Common Name starting with “3rd Party Mac Developer Application.” Mac apps signed this way can no longer be run directly. Here’s the background on this.
https://developer.apple.com/library/archive/qa/qa1884/_index.html#//apple_ref/doc/uid/DTS40015141
Hi guys I have a strange problem.
Trying to run my app on the iPhone, xcode has a sudden crash. This only happens if I use my university account to develop. If I sign the application with my personal account (the one where the signature expires after 7 days) xcode does not crash.
Why ?!
If I start the app on the emulator with my university account, do not crash.
:O
This is crash log:
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
MainQueue: -[IDEProvisioningManager setDelegate:callbackQueue:]_block_invoke
ProductBuildVersion: 8E3004b
ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-12175.1/IDEFoundation/Provisioning/Mechanic/UserActions/IDEProvisioningUserAction.m:125
Details: method -[IDEProvisioningUserAction userActionName] is a responsibility of subclasses of IDEProvisioningPermissionsFailureUserAction
Object: <IDEProvisioningPermissionsFailureUserAction: 0x7f9f7d82a870>
Method: -userActionName
Thread: <NSThread: 0x7f9f78e00ce0>{number = 1, name = main}
This is a permissions issue, and usually happens because the device UDID needs to be added to the developer account you are using.
Once the UDID is added to the account Xcode should be able to create the provisioning profiles and shouldn't crash. If you're not the administrator of the developer account you're trying to use with the device you'll need to ask them to add the UDID of the Apple device to it's certificate.
Running the simplest, default code in Xcode 7 playgrounds... get the following error
Playground execution failed: Execution was interrupted, reason: EXC_BAD_ACCESS (code=1, address=0x8).
* thread #1: tid = 0x351bc3, 0x00000001062019ca libicucore.A.dylib`utext_clone + 22, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
* frame #0: 0x00000001062019ca libicucore.A.dylib`utext_clone + 22
frame #1: 0x000000010633ac42 libicucore.A.dylib`icu::RegexMatcher::reset(UText*) + 54
frame #2: 0x0000000106375414 libicucore.A.dylib`uregex_setText + 222
frame #3: 0x0000000103d1b445 Foundation`-[NSRegularExpression(NSMatching) enumerateMatchesInString:options:range:usingBlock:] + 2325
frame #4: 0x0000000103d65d7e Foundation...
Cannot run anything in playgrounds basically.
Running beta 4 (7A165t)
I also have Xcode 6.2 running playgrounds just fine on the same mac.
Complete reinstall of all versions of Xcode plus deleting folder Library/Developer fixes the issues (see https://forums.developer.apple.com/thread/13969).
I just had this issue - before a fresh install check you haven't got IOS simulator running in the background anywhere from another xcode project or previous session. Once I closed the IOS simulator, closed xcode and re-launched and opened the playground again it worked fine. Seems I had a problem with xcode trying to open multiple simulators.
EXC_BAD_ACCESS Exception thrown when you try to send a message to already released object.
Apple provides mechanics with special class NSZombie which replace every released object in memory.
You could find more details on following links:
http://www.touch-code-magazine.com/how-to-debug-exc_bad_access/
http://loufranco.com/blog/understanding-exc_bad_access
I was using UIActivityViewController to share something for my application. It works well in any device prior to iOS8. The problem is the text,images are not be shown in email, twitter, Facebook in iOS 8 device or simulator.
Here is my code:
NSString *textObject = #"Test";
NSString *urlString = #"http://test.com";
UIImage* image = [UIImage imageNamed:#"logo"];
NSURL *url = [NSURL URLWithString:urlString];
NSArray *activityItems = [NSArray arrayWithObjects:textObject, url, image, nil];
UIActivityViewController *avc = [[UIActivityViewController alloc]
initWithActivityItems:activityItems
applicationActivities:nil];
avc.excludedActivityTypes = #[UIActivityTypePostToWeibo, UIActivityTypeAssignToContact, UIActivityTypeCopyToPasteboard ];
[self presentViewController:avc animated:YES completion:nil];
Did I do anything wrong? Thanks.
EDIT:
The new Xcode 6.1 and iOS 8.1 doesn't solve the problem. And it causes crash in email. Here are some screenshots (take email sharing as an example):
In iOS 7 (You can see the image)
In iOS 8 (Blank screen)
And the app crashes with a "MailCompositionService" exception. The
part of the error message is:
Process: MailCompositionService [3775] Path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/MailCompositionService.app/MailCompositionService
Identifier: MailCompositionService Version:
1.0 (1.0) Code Type: X86-64 (Native) Parent Process: launchd_sim [3725] Responsible: launchd_sim [3725] User ID:
501
Date/Time: 2014-10-22 10:31:19.064 +0800 OS Version:
Mac OS X 10.10 (14A389) Report Version: 11 Anonymous UUID:
B1EC6B56-DD7F-36A3-1506-B8CE84AB3FEB
Time Awake Since Boot: 9800 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000
Application Specific Information:
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSRegularExpression
enumerateMatchesInString:options:range:usingBlock:]: nil argument'
terminating with uncaught exception of type NSException abort() called
CoreSimulator 110.4 - Device: iPhone 6 - Runtime: iOS 8.1 (12B411) -
DeviceType: iPhone 6
It seems to be correct in real device but not in simulator.
I am encountering the same issue. however mine is slightly different. I can present the the controller without any actions available. :/ I have remove all of the excludedtypes hoping that I can see any but fails. I guess this is another bug with the latest release of xcode 6.1 and iOS8.
Whenever I add an object (specifically a UIButton or UILabel) to my Storyboard view, Xcode crashes. I've tried rebooting and reinstalling Xcode. I've also tried to recreate my view in a new project. It doesn't crash at first, but it does once I add a few more buttons to the Storyboard.
When I right click on MainStoryboard.storyboard in the Navigator and select "Open As: Property List", I get an error: "The data couldn't be read because it has been corrupted." In fact, this error appears when I try to open my .h and .m files in the same manner.
I'm running the newest version of Xcode (4.5) on Mountain Lion. Below is part of a crash log. Please let me know if I need to include more of it.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 4G182
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-1926/IBPlugin/Utilities/IBObjectMarshalling.m:651
Details: Failed to arbitrate IBNSLayoutConstraint, IBUIButton, IBUILabel, IBUIView, and IBUIViewController.
Interface Builder encountered an error communicating with the iOS Simulator. If you choose to file a crash report or radar for this issue, please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" and include their content in your crash report.
Exception name: IBAssertionFailure
Exception reason: ASSERTION FAILURE:
Reason: All views needing candidate constraints have already had constraints generated. This most likely indicates a bug involving layout of the following views:
Layout engine frame ({{169, 392}, {64, 43}}) of > does not match canvas frame ({{168, 392}, {64, 43}})
UPDATE:
Apparently I didn't research well enough. I found someone with the exact same problem:
Xcode Interface Builder crashes when I edit storyboard
Right click on Storyboard in the navigator -> Show File Inspector -> Uncheck "Use Autolayout"
Problem solved!