I know that my question is similar to this iOS8 Enterprise app install issue
However none of the answers helped me and I no one explained the crash log errors which I think hold the key for solving the real problem rather then trying to add another solution that might work.
What I tried so far:
This is how my problem looks like :iOS 8 - Can't Install Enterprise App : none fixes or links helped
Tried all from ground on - All new certificates/provisioning profiles...iOS Enterprise OTA distribution Unable to Download Application
Tried hotfixes, cleaning devices, restarts and vodoo stuff...Enterprise App Update Distribution on iOS 8
Here are the logs:
iPad-itunesstored[81] <Warning>: LaunchServices: installing placeholder for com.firmName.
iPad installd[34] <Notice>: 0x1ad5000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/5715016884658519113.app" type Placeholder requested by itunesstored (pid 81)
PID 81 = app installation request
PID 31 = pid81 request a placeholder installation which should be done in the background by pid 31
iPad installd[34] <Notice>: 0x1ad5000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.firmName.AppyName; Version=1.0, ShortVersion=(null)>
Installation in progress...
iPad MobileStorageMounter[187] <Error>: 0x3cce29dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
iPad MobileStorageMounter[187] <Error>: 0x3cce29dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
iPad MobileStorageMounter[187] <Error>: 0x3cce29dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
iPad MobileStorageMounter[187] <Error>: 0x3cce29dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
ERROR OCCURRED
The MobileStorageMountersounds the error, it isn't cause of the ipad storage there is plenty space. PID 31 got killed therefore there is not process and it seems the placeholder got removed aswell thats why there is no such file or directory?
Here is the rest:
iPad installd[34] <Notice>: 0x1ad5000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for com.firmName.AppyName at /private/var/mobile/Containers/Data/Application/FE556E7D-F0BF-4E83-8140-5A9BA7574E8A
iPad installd[34] <Notice>: 0x1ad5000 -[MIContainer makeContainerLiveReplacingContainer:withError:]: Made container live for com.firmName.AppyName at /private/var/mobile/Containers/Bundle/Application/D3564BA0-3940-40EB-926F-F1A04D5FA5BF
iPad installd[34] <Notice>: 0x1ad5000 -[MIInstaller performInstallationWithError:]: Staging: 0.04s; Waiting: 0.00s; Installation: 0.70s; Overall: 0.74s
iPad itunesstored[81] <Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x14d26cf0> com.firmName.AppyName (Placeholder) withPhase:3
iPad itunesstored[81] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.firmName.AppyName.InstallingPlaceholder - <NSProgress: 0x14f94a40> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
iPad lockdownd[24] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
iPad lockdownd[24] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
iPad filecoordinationd[138] <Warning>: sandboxing denied subscription to progress on category com.firmName.AppyName (bundle id (null), EF50B943-DC1D-493E-AAD3-DBAEA8F380D8)
iPad filecoordinationd[138] <Warning>: sandboxing denied subscription to progress on category com.firmName.AppyName (bundle id com.apple.iaptransportd, AC37404E-9FF1-474E-A2A3-F92E3E3EE0ED)
It seems that PID 81 completed with 0 of 100 and was removed. It seems that all failed at the placeholder creation?
The app works perfectly when build by Xcode 6.1.1 and plugged into any device. The also worked one time via Enterprise distribution and then never again (I downloaded and installed it, after which this was never possible). The app is always in the "Waiting..." state.
Any advice or idea is welcome. I really have no clue anymore or any idea. Is there another way beside OTA/Adhoc distribution?
Facing the Same Issues.
Possible workaround is to rename ipa and plist. Then it worked for me.
But I got still no Clue Why this ist happening.
I had the same problems. It worked itself out by not setting any "team" or specific provision profile/code signing cert. for the build target in Xcode project file.
Step-by-step
Team set to "None" (under General)
iOS Developer/Distribution to Automatic under Code signing (Build Settings)
Provisioning profile set to "None"
then Product -> Archive -> Distribute -> Save for Ad Hoc/Enterprise -> Choose your enterprise prov. profile -> save to disk -> install/distribute
Found this site regarding code sign errors
I tried all combinations of answers and solutions for iOS 8.1. both on iPads and iPods with getting no step further. The solution that works is using apples testFlight.
I think that the old way is meant not to work so developers would slowly switch to testFlight.
I wasted two working days, hope this helps you rather then wasting time.
About testFlight: testFlight apple page
This simple tutorial lead me: iOS8 testFlight tutorial
UPDATE 1 (24.05.2015):
The enterprise distribution is working now for me.My colleague updated the SSL on the server twice. He updated some two keys that were used for SSL authentication since some certificates have been changed and updated. Also the distribution works on the following devices:
iPod (4th,8.2),iPhone 5S(8.3), iPad 2 (8.3), iPad 4(8.3).
However it doesn't work and doesn't give any error report (or error line) in Xcode - Window - Devices iPad 3 Console. I have been using successfully uploaded my app using Xcode 6.2+ IDE (currently 6.3.1.). In all cases no default plist file was added and I used the plist file from here : Xcode 6 enterprise plist file example
I had the same “Unable to download app” issue when trying to download an enterprise app to an iPad.
Something that worked for me was powering the iPad off and on again.
No idea why this worked but it did. Hope it helps someone!
I have jail broken device and would like to build the app on the jail broken device. I followed the following links to build the application
Bypassing code sign with xcode 4.5 for iOS6
How can I deploy an iPhone application from Xcode to a real iPhone device?
Test iOS app on device without apple developer program or jailbreak
Created the self signed certificate.
Modified the file /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/SDKSettings.plist
Modified CODE_SIGNING_REQUIRED to NO, ENTITLEMENTS_REQUIRED to NO in SDKSetting.plist file.
After that tried to build the application for the device I got the following error
Code Sign error: A valid provisioning profile matching the application's Identifier could not be found
What things I need to do to build an app on Xcode4.6 jail broken device?
I am building the app on MAC OS 10.8.2 using XCode 4.6 on iOS 6.1sdk
I just used 4.6 and I didn't have any trouble at all with this tutorial http://www.youtube.com/watch?v=h0JS0D2tXGY
I am developing an iPhone application and trying to publish the application via a website. This should work for devices that are registered with the provision profile and it does work when deploying from XCode. Using the site (with a link to a .plist file) the device downloads the application, starts installing but once it is finished the application disappears. I checked the console and the following is shown during installation
Jan 16 10:47:00 unknown SpringBoard[15] <Warning>: could not save thumbnail for downloading icon: image=(null) path='/var/mobile/Library/SpringBoard/DownloadingIconImageCache/MyApp-0B277314-1342-4C88-B4D0-E763EAC12E3B'
Jan 16 10:47:00 unknown SpringBoard[15] <Warning>: could not save thumbnail for downloading icon: image=(null) path='/var/mobile/Library/SpringBoard/DownloadingIconImageCache/MyApp-C35ECE7C-D138-48B7-9195-71E66CED4636'
The problem only occurs on devices with iOs 5. What could be the problem and what should I check?
Thanks
Martijn
I had the same issue because I changed the app identifier to build with new certificates. As the log message said "Could not save thumbnail", the problem was with graphics/icons. From build settings, I modified "Compress PNG file" for release version as "NO", which made XCode to include graphics again, and it resolved the issue.
Other suggestions like changing the plist file name, or cleaning build folder didn't work for me. My 2 cents.
Turned out i had an invalid plist file. Funny thing is that the application did install on iOS 4. Hope this is of use to someone.
I've just had exactly the same problem with the same error on the console during sync, but for a different reason.
My app installed fine on iOS4.x devices (iPhone 3Gs and iPod Touch) but failed on my 5.x device (iPad2). I couldn't find anything wrong with the info.plist.
In the end, after several hours of head scratching, I deleted the app from the iTunes library on my PC and re-added it. It now installs okay on all of my devices again.
The problem might be that the bundle-identifier in the deployment plist file does not match the bundle-identifier in the Info.plist.
I had the same issue, the icon disappeared after installation finished, and it turned out that we were reusing an old plist for ad-hoc deployment even after we had to change the bundle identifier for App Store release.
I have an application that worked just fine on iOS 3.0 - 3.1.3. When testing an iOS 4 SDK ad-hoc build however the app behaves strangely. After installation (with either Xcode, iTunes or iPhone Configuration Utility) the app does one of two things:
App launches and works, but fails on subsequent launches and just shows a black screen.
App fails with black screen immediately.
Debugging is not possible since the app never reaches a point where it can be debugged. The Xcode console shows no contact with the remote debugger, and the iPhone console shows only a single line related to the app:
Sat Jun 26 01:41:48 iPhone SpringBoard[28] : Unable to send activation event to no.applics.myapp resume animate activate: animationStart = 1880.316523041667 deactivate: killed : (ipc/send) invalid destination port
I thought this might indicate multitasking was the problem, but the same thing happens with UIApplicationExitsOnSuspend both on and off.
I also tested a SDK 3.1.3 build and got the same behaviour.
The really interesting part is that if the iPhone is rebooted the installed app works fine. I'm starting to think this is an issue with iOS 4 and provisioning. Has anyone else experienced this or something similar?
I have, just today. I have no idea why. I'm starting to think it may have something to do with syncing with iTunes, then installing an app. I've only noticed it when I've had photos to sync with iPhoto.
I encountered the same bug on a 4.0.1 iPhone 3GS - an app that worked fine the day before started failing on startup, and then presenting a black screen. Running the app from Xcode was causing gdb to crash with "putpkt: write failed" message. I also could not use the organizer to remove the relevant provisioning profiles, and Apple has apparently removed Settings->General->Profiles in iOS4.
Rebooting the phone, removing the app, and removing the provisioning profiles in Xcode organizer fixed this bug for me.
Springboard errors from the console log:
activate: deactivate: eventOnly underLock : (ipc/send) invalid destination port
activate: deactivate: animate : (ipc/send) invalid destination port
Problem
Unlike people have asked at here and
here, I got this error after a brand new installation of Leopard (hackintosh), this problem really driving me crazy and nowhere else to find an clue, I googled and visited every article related with this, still can't get it solved.
After the first time install iPhone SDK 2.2.1, start a new project(any type, Navigate based, OpenGL ES application), then build and go, I got the following problem:
sometime it's:
Failed to launch simulated application: Unknown error.
and sometimes it's:
Failed to launch simulated application: iPhone Simulator failed to find the process ID of com.yourcompany.[application name]
It seems that apps in the simulator crashed immediately, so Xcode can find the process ID.
Solution
This link says that this even can't be solved. Some others make a detailed step by step:
Uncheck Info.plist
Quit XCode
Delete directory /Lib/Caches/com.apple.DeveloperTools.###
Open Xcode project
Clean All Targets
Rebuild
and I reset the iPhone Simulator. This also didn't solve the problem…
I've even tried uninstall the SDK and reinstall it, still got the same error…
Is this a problem related with hardwares? or the operating system version? I'm using a hackintosh (iDenebv1.4 10.5.6), all other software works good including iTunes && vmware fusion.
Great thanks for any further tips or clues!
FIXED For the issue:
iPhone Simulator failed to find the process ID of com.yourcompany.[your application name]
I was having an issue building and simulating a project I built under OS Version 2.2.1, which I could no longer get to build and run in the simulator for XCode 3.1.4, even though I forced XCode to build for "Simulator - 2.2.1 Debug"
I was able to get past this problem by:
- Close the iPhone Simulator
- Putting XCode into View->Detail
- Opening the "Info.plist" file in the "Resources" folder
- Near the top of the file you should see "Info.plist" with and up/down arrow selector
- Click on the up/down arrow selector
- Select "Clear File History"
Built For:
Simulator - 2.2.1
XCode Version:
3.1.4 (Which includes OS3.1 Beta 3)
I had the same issue last night, and suddenly my system got reboot. At that moment, i was trying to install an application into simulator. When system returned, and i tried again to install the app, it said, "Failed to launch simulated application"
Than i did googled it, and tried many solutions, like cleaining all targets and try building again, but didn't worked out.
So i have found the following link, where it is described, how to reset the iPhone Simulator contents:
http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/125-Using_iPhone_Simulator/iphone_simulator_application.html
I tired doing it, and you guys would'nt believe me, it worked :) ,
Solution was : "To set the user content and settings of the simulator to their factory state and remove the applications you have installed, choose iPhone Simulator > Reset Content and Settings"
Best of Luck to all.............. :)
This ends up being a product name issue:
The fix is to revert back to
${EXECUTABLE_NAME}
${PRODUCT_NAME}
for the executable file and com..${PRODUCT_NAME} in the info.plist.
Clean XCode, Quit, rese and quit simulator and you're good to go.
found some wierd log in /var/log/system.log.
May 8 16:17:50 th084134 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard[1170]: MobileInstallationLookup: Generating the install map
May 8 16:17:50 th084134 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard[1170]: load_application_info: Could not load signer identity from /Users/test/Library/Application Support/iPhone Simulator/User/Applications/5D55807A-7489-4DC5-B4D7-2ECD5E230F29/new1.app/new1
May 8 16:17:50 th084134 [0x0-0x2e02e].com.apple.iphonesimulator[1168]: error compiling query "SELECT value FROM _SqliteDatabaseProperties WHERE key = ?;": no such table: _SqliteDatabaseProperties
May 8 16:17:51 th084134 SpringBoard[1170]: Unable to obtain task name port for com.yourcompany.new1. Either it failed to exec or it terminated immediately: (os/kern) failure
May 8 16:17:51 th084134 SpringBoard[1170]: Couldn't activate <SBApplication: 0x123e6d0> com.yourcompany.new1 activate: animated deactivate:
May 8 16:17:51 th084134 SpringBoard[1170]: Application <SBApplication: 0x123e6d0> com.yourcompany.new1 activate: animated deactivate: exited abnormally with signal 256: Unknown signal: 256
May 8 16:17:51 th084134 SpringBoard[1170]: Unable to obtain task name port for com.yourcompany.new1. Either it failed to exec or it terminated immediately: (os/kern) failure
May 8 16:17:51 th084134 com.apple.launchd[164] (UIKitApplication:com.yourcompany.new1[0xa455][1171]): Bug: launchd_core_logic.c:2812 (23714):103: sandbox_init(j->seatbelt_profile, j->seatbelt_flags, &seatbelt_err_buf) != -1
May 8 16:17:51 th084134 com.apple.launchd[164] (UIKitApplication:com.yourcompany.new1[0xa455][1171]): Sandbox failed to init: Cannot apply builtin profile `/Users/test/Library/Application Support/iPhone Simulator/User/Applications/5D55807A-7489-4DC5-B4D7-2ECD5E230F29.sb': Policy not found
May 8 16:17:51 th084134 com.apple.launchd[164] (UIKitApplication:com.yourcompany.new1[0xa455][1171]): Exited with exit code: 1
May 8 16:17:51 th084134 [0x0-0x2e02e].com.apple.iphonesimulator[1168]: 2009-05-08 16:17:51.026 SpringBoard[1170:10b] Unable to obtain task name port for com.yourcompany.new1. Either it failed to exec or it terminated immediately: (os/kern) failure
Here is a discussion about how to run app in simulator via command line, hope it helps to understand how does xcode and simulator works.
But I didn't work it out.
Well, I "solved" it by install another distribution of hackintosh(IPC 10.5.6), works perfect!
In my case, I was adding a target to an existing app that had always worked. In my case, I had forgotten to select all the source code, xibs, frameworks, etc. and click their target checkbox. My clue was that the build happened instantaneously, which didn't make any sense. It never built anything. It just failed to install in the simulator. Once I included all the source files, etc., for the new target, then it built and installed fine.
I had the same problem, I fixed it by launching the simulator through another app and deleting the app I was trying to run on it. Then try to build and run and worked perfect.
Cheers
Matt
I had the same problem. I had accidentally added my info.plist file to my target and it was getting copied to the app bundle every time I built the application. So there were 2 .plist files in the bundle - mine and the Info.plist, created by XCode - which confused the simulator.
Simply delete the app from the simulator (and/or device if you're attempting to run on your device) via the UI of the simulator, then shut the simulator down and attempt to re-run the app. Doing the deletion of the actual files backing the simulator will also remove the app and do the same thing (but the deletion via the simulator's UI, if it works for you, is a little bit faster and easier).
Is your CPU Intel, and, of a model distributed in Apple hardware?
I doubt the Simulator will work reliably (if at all) on non-Intel CPUs and/or in VMWare. The simulator is very CPU specific in order to reflect the arm hardware of the iPhone.
The SDK ONLY supports Intel hardware from Apple.
There is a significant effort involved in creating the simulator and it's not easy or cheap (read, thousands of man hours) to support every CPU.
I fixed this problem by removing the "Icon already includes gloss and bevel effect" property from the Info.plist file in my project.
My problem centered around a Product Name the simulator simply wouldn't accept. Picking alternative names got me past the problem. Changing the name back to the original suspect choked the simulator every time.
Try moving the project to your local hard driver and opening it from there! That solved the issue for me (the project used to be stored on a samba share).
My fix:
restarted the Mac and it was fixed. (before that tried clearing caches, deleting caches from iPhone Simulator, cleaning, rebuilding, quitting OS, quitting Simulator, nothing worked.) Restarting the OS worked.
This was bugging me too but finally got it working.
Unfortunately, I can't reproduce what I did it but here's my list of actions for your information.
The project causing the problem was one I'd downloaded from Apple and tweaked.
Interestingly, I could still launch my own projects fine.
So, here's a list of actions that I did (note that none of the actions below worked just by itself):
- closing the simulator and doing "clear file history"
- restarting simulator
- rebooting
- restarting xcode
- resetting the iPhone with Reset Content and Settings
However, by the time I'd tried all of the above with a fresh version of the code I'd downloaded - it was working again. Just out of interest, I dragged the project that was causing this problem back to the desktop and it was OK now.
Wow, what a pain. I had to uninstall XCode 4 via the command line and then install XCode 3 again. Make sure that you restart after you reinstall. Working...
why anybody didn't tell about restarting simulator.
In my case,
Resetting the iPhone with Reset Content and Settings
and
**ReStart Simulator**
works well~
I had the exact same problem - I reset the iphone simulator and then quit the simulator then started it again.