Issue while installing WorkExecution on iOS device - ios

We are facing an issue while installing WorkExecution on iOS device, installed valid certificate but still getting the error.
kernel[0] <Notice>: IOReturn IOAsynchronousScheduler::checkAndQueueArgument(IOAsynchronousScheduler::ArgumentEntry *): max argument count (128) reached. Notify a few first.
itunesstored[983] <Warning>: Could not load download manifest with underlying error: Error Domain=SSErrorDomain Code=109 "Cannot connect to abcinstance.com" UserInfo=0x13dfe7e70 {NSLocalizedDescription=Cannot connect to abcinstance.com, SSErrorHTTPStatusCodeKey=404}
Any pointers for this will be greatly appreciated.

Related

Can't download iOS app using in house at iOS 10.3 release version

I update the iOS to iOS 10.3 release version,
I try to download the in-house app through the safari,
but show the below error message(the log from device ).
itunesstored(libsystem_network.dylib)[240] <Error>: nw_coretls_callback_handshake_message_block_invoke_3 tls_handshake_continue: [-9812]
itunesstored(CFNetwork)[240] <Notice>: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813)
itunesstored(CFNetwork)[240] <Error>: HTTP load failed (error code: -1202 [3:-9813])
itunesstored(CFNetwork)[240] <Error>: NSURLSessionTask finished with error - code: -1202
itunesstored[240] <Notice>: LoadExternalDownloadManifestOperation: Request failed with error: <private>
itunesstored[240] <Error>: Could not load download manifest with underlying error: <private>
I test the in house to install at the iOS 10.2.1. It is install correct.
But the iOS 10.3 will show the alert ( cannot connect to IP ).
Have anyone known what happened in my case?
thank you very much.
I figured it out, it seems just trusting the certificate is no longer enough. You need to go into General -> About (yes, About, what a great place) -> Certificate Trust Settings. Then tick the switch next to your CA to trust it.

LaunchServicesError error 0. when launching app

I've dug into several threads (here, here, and here to name a few) but I just cannot figure this out. I've cleared cache, reset the simulator, tripled checked .plist files, cloned my repo again, and even reinstalled Xcode.
And here's the rub - the same repo works on my other machine. Here is log error:
Oct 8 09:51:09 CoreSimulatorService[1941] <Error>: Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport: Failed to lookup com.apple.coreservices.lsuseractivity.simulatorsupport: 0x44e
Oct 8 09:51:11 com.apple.dt.Xcode[1927] <Error>: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ExecutableTwiddleFailed, ErrorDescription=Failed to chmod file:///Users/Jason/Library/Developer/CoreSimulator/Devices/0593D533-2974-4464-937C-B77EC0299078/data/Library/Caches/com.apple.containermanagerd/Temp/Bundle/Application/FA2B923A-1015-43E5-BA59-716BBD114A3D/Test.app/PlugIns/TestActionExtension.appex/TestActionExtension : No such file or directory}
I also tried clearing the cache where it's looking for the extension that's giving me issues.

Unable to install enterprise app - This provisioning profile cannot be installed on this device

I'm setting up Jenkins to build an enterprise version of an app in order to be distributed in our internal app store.
If I archive the app in Xcode and then download the built .ipa on the phone the app is installed without any issue; but when I use the .ipa generated with Jenkins with the same private key/certificate/provisioning profile, installation fails with the following error: "Unable to Download App - App name could not be installed at this time"
If I check the console in Xcode I can see some more details errors as "This provisioning profile cannot be installed on this device"
Here is part of the log
<Notice>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=af11a784-f15d-4291-92a1-0e0c54fc4ee9; Version=13, ShortVersion=0.0.1>
<Notice>: attempt to install invalid profile: 0xe8008012
<Error>: 0x16e12f000 -[MIInstallableBundle _installEmbeddedProfileInBundle:]: Could not install embedded profile: 0xe8008012 (This provisioning profile cannot be installed on this device.)
<Error>: 0x16e12f000 MIMachOUnhideArchsSavingOriginalHeader: Failed to open "/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName": No such file or directory
<Error>: 0x16e12f000 -[MIInstallableBundle performVerificationWithError:]: 696: Failed to unhide archs in executable file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName
<Error>: 0x16e12f000 -[MIInstaller performInstallationWithError:]: Verification stage failed
<Error>: 0x16e247000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=14 "Failed to unhide archs in executable file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName" UserInfo={SourceFileLine=696, NSLocalizedDescription=Failed to unhide archs in executable file:///private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.YMpQfe/extracted/Payload/appName.app/appName, FunctionName=-[MIInstallableBundle performVerificationWithError:]}
<Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Anyone any idea?
This has nothing with provisioning. Offending line Failed to unhide archs means that you're not compiling for given architecture (armv7 or arm64 depending on the device you install to).
I had also different errors like
Failed to unhide archs in executable file
as well as
error MT0000: Unexpected error
or
Error: error MT1006: Could not install the application
or
AMDeviceSecureInstallApplicationBundle returned: 0xe800801c
Now I got it running again after:
Cleaning solution
Deleting content of obj/bin folders
Multiple restart of devices (Mac, iPad, PC, ...)
In general, I recommend to update you development/build environment and to also check your certificates.

What does the installation errror "The packet is unknown" mean?

I am trying to use Xcode 6.2 to install a development build of an iOS app onto my iPod touch (running iOS 8.2).
The installation keeps failing with the message
App instalation failed
The packet is unknown.
The console reports the following details:
Mar 27 12:53:52 iPod-touch com.apple.StreamingUnzipService[164] <Warning>: -[StreamingUnzipState finishStream]:476: Finishing an incomplete stream! This stream will not be resumable.
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: __dispatch_source_read_socket_block_invoke_2:171: Failed to finish extraction: Error Domain=SZExtractorErrorDomain Code=3 "Finishing an incomplete stream! This stream will not be resumable." UserInfo=0x17e33b50 {SZExtractorFunctionNameErrorKey=-[StreamingUnzipState finishStream], SZExtractorSourceFileLineErrorKey=476, NSLocalizedDescription=Finishing an incomplete stream! This stream will not be resumable.}
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: secure_send_message:105: Got error 1 from lockdown_send_message
Mar 27 12:53:52 iPod-touch streaming_zip_conduit[163] <Warning>: secure_send_error:137: Could not send error response to host
These messages seem to imply that the IPA file is somehow corrupted, and can't be extracted, but I had no problem unziping the IPA with Archive Utility on my Mac.
I also already ran codesign -dvvv on Payload/<my-app-name>.app and don't see any obvious problems with the certificate used to sign the app.
What does this error message indicate, and how can the issue be resolved?
note:
I already found this similar question but the only current answer does not help me. Since I have some, possibly relevant, details that may not apply to the previous question, I am asking a new question.
So I was getting this exact error and I tried switching USB ports (from the device plugged into the USB port on my keyboard to the USB port on my laptop) and now it works.

Ad-hoc distribution fail

I work for a big company, and I'm developing an iOS app for iOS 5+. The only way the app will be distributed will be through ad-hoc deployment.
I have had my own server for some time, hosted by o2switch (french hoster). As I started the development, we used it to deploy the app for beta testing purposes. It was working pretty well.
As the app entered its final phase, the company bought the same (in fact, they only have a single one) plan at o2switch (as it was working fine on my server). The "new" server works fine, we have the files required by the iOS app on it and we access them correctly.
My problem is that when I deploy over to the company's server, the install keeps crashing ! The bar below the app's icon is empty, the almost full (in no time), and I get an error saying the app could not be installed. (classic)
I have the so-well-known crash log :
unknown itunesstored[1657] <Notice>: MS:Notice: Installing: com.apple.itunesstored [itunesstored] (690.10)
unknown wifid[23] <Error>: WiFi:[375199765.346102]: Client itunesstored is background application
unknown securityd[1659] <Notice>: MS:Notice: Installing: (null) [securityd] (690.10)
unknown SpringBoard[62] <Warning>: could not save thumbnail for downloading icon: image=(null) path='/var/mobile/Library/SpringBoard/DownloadingIconImageCache/***********'
unknown sandboxd[1661] <Notice>: MS:Notice: Installing: (null) [sandboxd] (690.10)
unknown installd[1663] <Notice>: MS:Notice: Installing: (null) [installd] (690.10)
unknown SpringBoard[62] <Warning>: could not save thumbnail for downloading icon: image=(null) path='/var/mobile/Library/SpringBoard/DownloadingIconImageCache/***********'
unknown keybagd[1665] <Notice>: MS:Notice: Installing: (null) [keybagd] (690.10)
unknown securityd[1667] <Notice>: MS:Notice: Installing: (null) [securityd] (690.10)
unknown SpringBoard[62] <Warning>: Killing *********** for app installation
unknown installd[1663] <Error>: 2ffc1000 extract_package: Could not extract archive
unknown installd[1663] <Error>: 2ffc1000 stage_package: Could not extract /var/tmp/install_staging.I0rwBH/foo.zip to /var/tmp/install_staging.I0rwBH/foo_extracted
unknown com.apple.itunesstored[1657] <Notice>: MobileInstallationInstall: failed with -1
unknown installd[1663] <Error>: 2ffc1000 MobileInstallationInstall: Could not stage the package
unknown installd[1663] <Error>: 2ffc1000 handle_install: API failed
unknown installd[1663] <Error>: 2ffc1000 send_message: failed to send mach message of 71 bytes: 10000003
unknown installd[1663] <Error>: 2ffc1000 send_error: Could not send error response to client
I've tried a lot to get rid of this error, but nothing seemed to work. I've read every single answer on SO talking about this issue, and tried everything I could. I re-downloaded the profiles, updated the build number, checked the ipa's url, and so many other things.. Nothing worked.
I had to deliver the app quickly, so I tried one last thing : put it on my server. And it worked perfectly. First try, and with no problem (maybe one, the bar did not load progressively but stayed grey then filled in blue very quick, but that's not a problem, I know it downloaded the online version). Then I re-tried uploading to the new server, same problem.
BTW, I tested with: iPhone4/iOS5, iPhone4S/iOS6, iPhone5/iOS6, iPad3/iOS6 and a couple other devices, over 3G (3 different providers) and Wifi, same problem every single time.
So, my question is the following :
Does / how can the server impact the ad-hoc deployment ?
I can give information on the server's config if required. Please tell me what info you need.
O2switch is investigating, but they don't know much about iOS ad-hoc deployment, so they don't really know where to look, what service the install calls, etc.
So I'm turning (once again) to you, SO's community ! Any ideas ?
Check the mime-type configuration in the web-server. You need:
application/xml for the .plist file, and
application/octet-stream for the .ipa file.
Did you edit the App.plist file before you moved it to the new server?
The assets url must be absolute, like this: <string>http://someurl.com/App-1.0.0.ipa</string>.
If you are absolutely sure that server returns proper mime types, checked by:
lynx -mime_header http://www.serveraddress/App.plist | head -10
If you are sure that you don't have spaces or new lines in link to your .plist file in your html file.
If you are sure that you have added devices to provisioning profile
And if you have read: http://www.informit.com/articles/article.aspx?p=1829415&seqNum=16
I have all files: .plist, .html, .ipa in the same folder
Then I don't know what is the issue and would suggest you to distribute it from your working server.

Resources