xCode crash when i run app on my iPhone - xcode

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.

Related

Not able to launch the MAC Application that is uploaded For App Store submission

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

Xamarin App Fails to Start on IOS device after device update to IOS 12

I have updated IOS on device to 12.0.1 and XCode to version 10. I am able to build the app, deploy to simulator on mac with IOS 12 but when I deploy the app to the device it starts, shows a splash screen and quits. The icon stays but the app will always fall after start.
I tried debuging but it doesn't even get to any of the constructors of Main or App in Native or PCL code.
I don't even know what to try next. All information I have is:
Launch failed. The app 'Tempick.iOS' could not be launched on 'iPhone (Yuriy)'. Error: error MT1007: Failed to launch the application '/Users/yzolotarev/Library/Caches/Xamarin/mtbs/builds/Tempick.iOS/896e108cc5f36e1ca3def01022a148c7/bin/iPhone/Debug/Tempick.iOS.app' on the device 'iPhone (Yuriy)': Specified cast is not valid.. You can still launch the application manually by tapping on it.. Please check the logs for more details.
All I could find on the web was restart XCode, restart device, delete app, restart MAC. All of that I tried and it doesn't work.
I am experiencing this for all apps I have. I have a feeling its something to do with the provisioning profile/certificate that doesn't get recognised after the update of the IOS on the divice. Has anyone come across a similar problem?
UPDATE
I was able to trace the device log which reads the following:
Time Device Name Type PID Tag Message
Oct 23 17:37:23 iPhone-Yuriy Error 52 SpringBoard(AssertionServices) [com.maddyz.Tempick] Bootstrap failed with error: <NSError: 0x282837d80; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Failed to start job">
______
Time Device Name Type PID Tag Message
Oct 23 17:37:23 iPhone-Yuriy Error 52 SpringBoard(FrontBoard) Bootstrapping failed for <FBApplicationProcess: 0x10a7dda10; com.maddyz.Tempick; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID com.maddyz.Tempick" UserInfo={NSLocalizedDescription=Unable to bootstrap process with bundleID com.maddyz.Tempick, BKSProcessExitReason=0, NSLocalizedFailureReason=Failed to start job, NSUnderlyingError=0x282836e20 {Error Domain=NSPOSIXErrorDomain Code=3 "No such process" UserInfo={BKLaunchdOperation=launch_get_running_pid_4SB, NSLocalizedDescription=Unable to get pid for label UIKitApplication:com.maddyz.Tempick[0x482d][62], BKLaunchdJobLabel=UIKitApplication:com.maddyz.Tempick[0x482d][62], NSLocalizedFailureReason=No such process}}, BKSProcessJobLabel=UIKitApplication:com.maddyz.Tempick[0x482d][62], BSErrorCodeDescription=bootstrap-failed}
After I have tried numerous approaches I finally found a device log notice that printed this:
Time Device Name Type PID Tag Message
Oct 24 12:50:41 iPhone-Yuriy Notice 0 kernel(AppleMobileFileIntegrity) AMFI: '/private/var/containers/Bundle/Application/4D4359E4-8947-425E-95B4-82AC4D910449/IOS12Test.iOS.app/IOS12Test.iOS' does not pass CT evaluation, result: 0x80008
Oct 24 12:50:41 iPhone-Yuriy Notice 0 kernel(AppleMobileFileIntegrity) AMFI: '/private/var/containers/Bundle/Application/4D4359E4-8947-425E-95B4-82AC4D910449/IOS12Test.iOS.app/IOS12Test.iOS': Unrecoverable CT signature issue, bailing out.
After googling this a little I came across another stack message
iOS app won't run on device any more under iOS 12: Unrecoverable CT signature issue
After changing permissions to Apple Worldwide Developer Relations Certification Authority to Use System Defaults I was able to start the demo app.
I'm still learning how to work with Xamarin.iOS myself but I ran into the same problem. It has to do with the linker. Open the iOS project properties and under iOS Build change Linker Behavior to Don't Link. This should let you debug on a physical device but the app size will be too big to be able to deploy to the app store.
I don't know if this will apply to you but I also had to downgrade my project's Entity Framework Core packages to 2.0.3. I read elsewhere that other people were having issues with later versions.
On Windows Xamarin.Forms isn't available for Debug from the Device it self. Even the "Xamarin Live Player" has expired for iOS. You should connect to a MAC so you can make the Build for your project. Even some other Frameworks like PhoneGap aren't available for iOS anymore.
As always Apple taking all for themselves.

Is it possible to test app on the device without developer program? [Xcode 9.4 - Code Signing Error]

I don't register 'Apple Developer Program', but I want to test the iOS application on my devices.
Is it possible to test the iOS app on my device without registering 'developer program'?
I tried to build the app on my device, but 'code signing error' occurs.
I changed bundle identifier to the form of com.[myName].[AppName], then it works.
I think I can freely use any words for [myName] if it does not conflict.
I refered to
iOS 9 new feature Free Provisioning (Run your app on a device, just with your Apple ID, without Apple developer membership)

Unable to boot the iOS Simulator (ios 7.1)

I am facing a problem. When I try to run the simulator iPhone 5s (iOS 7.1) a message pops up saying "
Unable to boot the iOS Simulator
". Though if I run the iPhone 5 or iPhone 4s simulators (iOS 7.1) or iPhone 5s (iOS 8.3/8.4) all work fine.
I am running OS X Yosemite (10.10.5), Xcode 6.4 and iOS simulator iPhone 5s (iOS 7.1).
Update:
CoreSimulator.log:
Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7ffe8d94f990 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.}
DiagnosticReports:
Crashed Thread: 0 Configuration error: Could not bind system logger socket.
Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
Thank you.
For people having the "Unable to boot the iOS Simulator" issue while running Xcode 6.x under OS X 10.11 El Capitan, be warned that there is no effective solution as the iOS 7 simulator is functionally incompatible with El Cap.
See the following Apple Developer forum thread and read the response by jeremyhu:
https://forums.developer.apple.com/thread/5612
"This is a specific incompatibility of the iOS 7.1 libxpc being too old to satisfy the needs of the host's libsystem_stats.dylib."
Posting this because I spent hours pounding my head into the wall trying to "fix" an unfixable problem.
The "Unable to boot the iOS Simulator" error message usually appears as a result of CoreSimulator failing to kick off launchd_sim to boot the simulated device.
In your case, the issue is that launchd_sim is crashing on launch because it can't bind to the syslog socket, which is located at /private/tmp/com.apple.CoreSimulator.SimDevice.[DEVICE UDID].launchd_sim/syslogso
Try deleting /private/tmp/com.apple.CoreSimulator.SimDevice.*:
sudo rm -rf /private/tmp/com.apple.CoreSimulator.SimDevice.*
This issue "Unable to Boot the iOS Simulator" exists because of System Integrity Protection in El Cap.
Simulator is definitely compatible with El Capitan if you turn of SIP.
Here is how to do it:
How to turn off System Integrity Protection in El Capitan:
Click the  menu.
Select Restart...
Hold down command-R to boot into the Recovery System.
Click the Utilities MENU and select Terminal.
Type csrutil disable and press return.
Close the Terminal app.
Click the  menu and select Restart....
Run iOS Simulator
Worked for me! Good Luck :)

Xcode keeps crashing

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

Resources