Installing apps with apple configurator 2 - unable to install error - ios

I'm trying to use apple configurator 2 to create a blueprint of my app to install on a group of 10 ipads. I have a valid developer & distribution certificate. I can install the apps via xcode just fine. The archive I made with xcode is visible to configurator but when added to a blueprint and applied to an ipad the app icon appears darker and when clicked I get an "Unable to Install" error.
I also signed up for simplemdm trial. Getting some weird errors.
Failed to create session info: Failed to retrieve session info. ({
FunctionName = "init_lockdown_server_block_invoke_7";
NSLocalizedDescription = "Failed to retrieve session info.";
NSUnderlyingError = "Error Domain=com.apple.MobileActivation.ErrorDomain Code=-2 \"Failed to copy ingest data.\" UserInfo={NSUnderlyingError=0x10152a860 {Error Domain=com.apple.MobileActivation.ErrorDomain Code=-2 \"Failed to retrieve IMEI.\" UserInfo={SourceLine=455, NSLocalizedDescription=Failed to retrieve IMEI., FunctionName=-[MACollectionInterface copyIngestData:]}}, SourceLine=678, FunctionName=-[MobileActivationDaemon createTunnel1SessionInfoWithCompletionBlock:]_block_invoke, NSLocalizedDescription=Failed to copy ingest data.}";
SourceLine = 271;
}) [com.apple.MobileActivation.ErrorDomain – 0xFFFFFFFFFFFFFFFE (-2) [sys = 0x3F, sub = 0xFFF, code = 0x3FFE (16382)]]
Do I have to manually add each device to my distribution cert to get app to work with configurator? Shouldn't the simplemdm be doing that bit for me?

Related

Xcode: iOS app suddenly always crashes on launch

I created a quite simple app that can receive push notifications and display content. This is working without any problems since month.
Since yesterday the app suddenly crashes every time I want to launch it.
I'm using an iPhone 8 Plus with iOS 12.4.1. Restarting the app, hard and soft reset of the iPhone didn't help.
The console says the following:
fehler 07:37:35.510970 +0200 assertiond Unable to obtain a task name
port right for pid 542: (os/kern) failure (0x5)
fehler 07:37:35.511100 +0200 assertiond Failed to start job with error
{
description = "Unable to get valid task name port right for pid 542";
failureReason = "The process failed to exec";
recoverySuggestion = "Consult /var/log/com.apple.xpc.launchd/launchd.log for more information"; }
fehler 07:37:35.511894 +0200 SpringBoard [MyCompany.MyApp] Bootstrap
failed with error:
fehler 07:37:35.512091 +0200 SpringBoard Bootstrapping failed for
with
error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap
process with bundleID MyCompany.MyApp"
UserInfo={NSLocalizedDescription=Unable to bootstrap process with
bundleID MyCompany.MyApp, BKSProcessExitReason=0,
NSLocalizedFailureReason=Failed to start job,
NSUnderlyingError=0x28146e760 {Error Domain=NSPOSIXErrorDomain Code=3
"No such process" UserInfo={NSLocalizedFailureReason=The process
failed to exec, NSLocalizedRecoverySuggestion=Consult
/var/log/com.apple.xpc.launchd/launchd.log for more information,
NSLocalizedDescription=Unable to get valid task name port right for
pid 542}}, BSErrorCodeDescription=bootstrap-failed}
Does anybody have an idea why my app is suddenly crashing?
It might be happening if the developer certificate you used to create this app has been revoked or another app (still in development mode) with same bundle identifier is using your developer certificates. It happens when we build apps for testing purpose with free developer account which shares the certificate identities.
I had the same problem on my iPhone. It stopped working after a few days, so I checked around to see if I could find an answer. I found this, and it worked for me:
"Without enrolling in the Apple Developer Program, your app will only
last for 7 days on your device. After that, you’ll have to re-deploy
it to your device via Xcode. If you’re enrolled in the Apple Developer
Program, you won’t have this inconvenience."
I know it doesn't apply to the original question since he says he has a developer license, but it would apply to many others who don't pay for a license and if your license have expired.
I'm not sure if it's allowed to post a link to where I found the question, so just take it away if that's the case, but I do like to refer to where I got it from, when it's not me. https://codewithchris.com/deploy-your-app-on-an-iphone/

Unable to launch application after updating to latest version of Visual Studio and Xamarin

I am currently working on a Xamarin Forms application. The application was operating successfully until I updated Visual Studio for Mac and Xamarin to the following:
Apple Developer Tools - Xcode 10.1
Xamarin.Mac - Version: 5.2.1.12
Xamarin.iOS - Version: 12.2.1.12
Now users are unable to open the application on their iOS devices. After install, when they click on the app icon the application launches and then immediately closes.
I have gone through the logs and found the following error:
error 09:40:36.951392 -0500 assertiond Failed to start job with error <NSError: 0x7f97f2801640; domain: NSPOSIXErrorDomain; code: 3; reason: "No such process">
{ description = "Unable to get pid for label UIKitApplication:com.myapplication[0xca85][1468]";
failureReason = "No such process";
userInfo =
{
BKLaunchdJobLabel = UIKitApplication:com.myapplication[0xca85][1468];
BKLaunchdOperation = launch_get_running_pid_4SB;
}
}
I have checked the certificates (Apple Worldwide Developer Relations Certification Authority, Developer ID Certification Authority, iPhone Developer, and iOS Distribution) all use system defaults.
Has anyone else experienced this issue? If so, how did you resolve it?
Thank you
In the end, the issue was with my certificates. I removed them all from Keychain Access and reinstalled them from the App Store. Now the application opens as it should.

"Over The Air" iOS App won't be complete download

I've been trying to release a new version of some iOS App (developed with React Native) through the "Over The Air" way. I do have an Entreprise account. Also, I've done this before with the same App. It is the first time this fails.
The download of the app stops and looks like
I've been investigating a lot and here are some informations I can give:
XCode: 10.1
React Native: 0.57.5
Deployment Target: 9.3
I recreated my certificate & provisioning profile. My signing profile looks like which looks valid to me.
I'm downloading the app via a normal web page and the download link looks like this:
<a href="itms-services://?action=download-manifest&url=https://example.com/path/to/the/manifest.plist">
Download iOS
</a>
I'd like to release a build with an App Thinning All compatible device variants. The manifest looks normal to me but there is something that I question myself with. Prior to this release, in the manifest, the generated binaries looked like this: MyApp-iPhone%207%20Plus-etc.ipa. Now, since I updated XCode (from 10 to 10.1 if my memories are good) they look like this: MyApp-0AB530E1-7309-4293-B4B6-C0AD90662766.ipa.
I also verified the App URL, the Display Image URL and the Full Size Image URL and the three of them are valid.
Finally I checked the logs during the failing installation by going into Window -> Devices and Simulators -> Open Console -> Errors and Failures. Here are all the logs I could get telling me the installation failed. I've donc a couple research on Google but couldn't find nothing.
[PlaceholderUtility]: Failed artwork for bundleID: My.Bundle.Identifier error: Error Domain=SSErrorDomain Code=3 "Connexion à l’iTunes Store impossible" UserInfo={NSLocalizedDescription=Connexion à l’iTunes Store impossible}
[PlaceholderUtility]: Failed to load placeholder artwork for bundleID: My.Bundle.Identifier error: Error Domain=SSErrorDomain Code=3 "Connexion à l’iTunes Store impossible" UserInfo={NSLocalizedDescription=Connexion à l’iTunes Store impossible}
[ODRBackgroundMaintenance]: Cancelling maintenance operations.
[ODRLaunchServicesObserver]: Application My.Bundle.Identifier is invalid, ignoring the install notification from LaunchServicesLaunchServices reports My.Bundle.Identifier is not installed
Cannot generate canonicalExecutablePath for app <private> with no bundleExecutable set
LaunchServices reports My.Bundle.Identifier is not installed
asked question: p = <private>, q = <private>, e = 9 [<private>]
7 lines of: LaunchServices observer: Apps Failed be installed: <private>
Installation failed for <private>
8 lines of: LaunchServices observer: Apps Failed be installed: <private>
Applications did fail to install: ("<LSApplicationProxy: 0x10f438230> My.Bundle.Identifier file:///private/var/containers/Bundle/Application/SOME_ID/MyApp.app <My.Bundle.Identifier <placeholder >:1>") (appInfos: (null))
LaunchServices observer: Apps Failed be installed: <private>
[LaunchServicesObserver]: Coordinator is already being observed: <IXInitiatingAppInstallCoordinator<0x100ef46f0> identifier:My.Bundle.Identifier uuid:SOME_UUID creator:App Store state:IXAppCoordinationStateErrorOccurred>
[CoordinatorStore]: <IXInitiatingAppInstallCoordinator<0x103e13ba0> identifier:My.Bundle.Identifier uuid:SOME_UUID creator:App Store state:IXAppCoordinationStateErrorOccurred> with UUID SOME_UUID was canceled with reason: Error Domain=IXUserPresentableErrorDomain Code=1 "This app could not be installed at this time." UserInfo={NSLocalizedDescription=This app could not be installed at this time., NSLocalizedFailureReason=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.RAz5m2/extracted/Payload/MyApp.app : 0xe800801c (No code signature found.), NSLocalizedRecoverySuggestion=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.RAz5m2/extracted/Payload/MyApp.app : 0xe800801c (No code signature found.), NSUnderlyingError=0x103eb7a90 {Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/insta
!B21:My.Bundle.Identifier,J:-7761288138928876906#[<private>]: Fail temporarily for error: Error Domain=IXUserPresentableErrorDomain Code=1 UserInfo={NSLocalizedDescription=<private>, NSLocalizedFailureReason=<private>, NSLocalizedRecoverySuggestion=<private>, NSUnderlyingError=0x103eb7a90 {Error Domain=MIInstallerErrorDomain Code=13 UserInfo={NSLocalizedDescription=<private>, LegacyErrorString=<private>, SourceFileLine=199, LibMISErrorNumber=-402620388, FunctionName=<private>}}}
[ProgressCache]: No progress exists for: My.Bundle.Identifier trying to begin anyway
Thanks in advance for the help.
Feel free to ask me questions for some infos I might have forgotten
Downgrading to XCode 10.0 fixed it.
As mentionned in this question, it seems that there is an issue with XCode 10.1 for this kind of build

API key not valid Kudan (AR) xcode

I'm a beginner to Unity and try to make a simple AR app (IOS). I followed some tutorials and faced a problem. I set the API key and BundleID in Unity correct and changed the "enable Bitcode" to NO. When I want to build & run the application I got the message:
Failed to code sign "Unity-iPhone"
"Fix Issue" the following message:
An App ID with Identifier 'eu.kudan.ar' is not available
When I change the Bundle Identifier to my own team and app name the 'obstacle' seems to be fixed. When the build is ready and the application starts (on the device) the following error occured:
Kudan.AR.KudanTracker:Start()
[ line 374]
(Filename: Line: 374)
2016-08-27 02:56:06.005 ar[633:164754] Error verifying license key for bundleID: eu.bart.CarAR error: (null)
2016-08-27 02:56:06.005 ar[633:164754] API key not valid
What am i doing wrong?
thanks!
You can maybe try with another key.
https://wiki.kudan.eu/Development_License_Keys
And it's normal if it doesn't work with own app name.

iOS 8 MDM: managed app configuration doesn't work

In our custom mobile device management (MDM) solution we use managed app configuration:
MDM server pushes InstallApplication payload with Configuration dictionary.
The app uses [[NSUserDefaults standardUserDefaults] dictionaryForKey:#"com.apple.configuration.managed"];
Everything worked fine.
Due to changes in iOS 8.1.3 we resigned the application as it's described here. After that the app can be installed and it launches well on iOS 8.1.3+. But it cannot read the configuration using NSUserDefaults (configuration data from MDM server is not set).
In logs I see this warning:
profiled[128] : *** -[NSXPCConnection valueForEntitlement:]: Error getting value for entitlement 'com.apple.managedconfiguration.profiled-access': Error Domain=NSPOSIXErrorDomain Code=-1 "The operation couldn’t be completed. (POSIX error -1 - Unknown error: -1)"
I guess this warning describes the reason of the problem. But what does that message mean?
I also tried to add com.apple.managedconfiguration.profiled-access key with true value to entitlements when signing the app, but it ended up with the error:
installd[420] : 0x41d000 -[MICodeSigningVerifier performValidationWithError:]: 188: Failed to verify code signature of : 0xe8008016 (Entitlements found that are not permitted by provisioning profile)

Resources