I have final version of XCode 6 (version 6.0.1). In my project, I have problem when running it.
I got
"App installation failed - Could not inspect the application package."
If I run project again, it runs ok. Another run, problem again... etc. So every second run ends in this error, right after that application run just fine.
I have no problem in XCode 5.
If you have moved or copied a folder named resources or resource into your project, try renaming it. Then perform a clean.
I had the same issue, And was unable to install the ipa. It always ended with an error "Could not inspect the application package." and some warnings in device console
Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.
Feb 10 17:38:16 iPhone mobile_installation_proxy[356] <Warning>: LaunchServices: installing app with unknown bundleID
.
.
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 -[MIBundle _validateWithError:]: 28: Failed to load Info.plist from bundle at path
Feb 10 17:38:16 iPhone installd[44] <Error>: 0x101bcc000 + [MIInstallable installablesAtURL:packageFormat:userOptions:error:]: Failed to create bundle for …
After spending hours, I got it fixed by adding the "Application requires iPhone environment" in info.plist
<key>LSRequiresIPhoneOS</key>
<true/>
Related
I'm gonna try to explain the problem as clearly as possible, here are the steps:
I compile the app on the device (width bundled file on disk - Options 2)
The app starts, and work
After a few days, when i click on the app's icon, it open the 'powered by react-native' screen, then it crash
I had the same problem over multiple devices, and multiple times
I'm pretty sure it is not a JS error, since nothings change between the day it work, and the day it doesnt
here's the app logs on app start:
$ cat crachReport|grep MyApp
Aug 29 14:26:47 Abels-iPhone amfid[1524] <Notice>: /private/var/containers/Bundle/Application/BDC567B0-B341-4B9A-8329-90B5CEC26440/MyApp.app/MyApp not valid: 0xe8008015: A valid provisioning profile for this executable was not found.
Aug 29 14:26:47 Abels-iPhone SpringBoard(BaseBoard)[1682] <Error>: Unable to get pid for 'UIKitApplication:org.reactjs.native.example.MyApp[0x9347]': No such process (err 3)
Aug 29 14:26:47 Abels-iPhone SpringBoard(FrontBoard)[1682] <Error>: Bootstrapping failed for <FBApplicationProcess: 0x1705f9500; org.reactjs.native.example.MyApp; pid: -1>
Aug 29 14:26:47 Abels-iPhone sharingd[62] <Notice>: SystemUI unknown identifier: 'org.reactjs.native.example.MyApp'
the unfound provisionning profile error does not appear on the logs when the app work, so i think it may come from here.
However i'm not sure since i'm new to ios developpement,
Thanks in advance
After compilation with a valid provisionning profile, this problem does not appear.
The default provisionning profile was valid for 7 days, so the error was coming from there.
After install macOS Sierra + Xcode 8 beta
My Xcode 7.3.1 can't run iOS simulator anymore,
How can i fixed this?
here is system logs.
Jun 15 07:46:11 Siams-MacBook-Pro com.apple.xpc.launchd[1] (com.apple.CoreSimulator.CoreSimulatorService[2246]): Service exited due to signal: Killed: 9 sent by com.apple.CoreSimulator.CoreSimu[2246]
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: com.apple.CoreSimulator.CoreSimulatorService 209.19 starting.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device D340C405-CF9F-482C-82CE-ADE8A2399529 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device C3CBAFAD-D139-49CE-9EF1-E2437A2349A7 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 0916CCBC-1DAA-4CA4-8DCA-FFD87C8941E0 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Jun 15 07:46:12 Siams-MacBook-Pro com.apple.CoreSimulator.CoreSimulatorService[2748]: Default device 9CC780B5-3034-4083-B52F-2354FB0A8252 is no longer in the set, and an alternative could not be found. iPhone / Watch pairings may not be correct.
Another log
Jun 15 10:03:26 Siams-MacBook-Pro DTServiceHub[11482]: DTServiceHub[11482]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: +[DTServiceHubClient localConnectionWithAuthorization:returningServerPid:]: failed to establish connection with DTServiceHub service '/Applications/Xcode.app/Contents/SharedFrameworks/DVTInstrumentsFoundation.framework/Resources/DTServiceHub'
Jun 15 10:03:36 Siams-MacBook-Pro Xcode[10188]: Xcode[10188]: [error] 'mach_msg_send' failed: (ipc/send) invalid destination port (268435459)
Short term solution:
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
This isn't recommended since you have to do it every time you want to run your app.
Long term solution (recommended):
Reinstall Xcode from the Developer Center. Doing so will clear this error, and the app will run smoothly.
This should work.
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
I fixed the problem by deleting both XCode 7.3.1 and 8 Beta and reinstalling just XCode 7.3.1 from DMG.
My app runs fine in the simulator, but when I try to install it on my iPhone it says
App installation failed: An unknown error has occurred.
I opened my device logs and got this:
Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: installing app for existing placeholder Raritea.FSS-App <(null) Not found in database>
Nov 12 21:17:19 Isaacs-iPhone streaming_zip_conduit[5853] : LaunchServices: Not creating progress for Raritea.FSS-App <(null) Not found in database> since it is not a placeholder.
Nov 12 21:17:19 Isaacs-iPhone installd[4549] : 0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/FSS App.app" type Developer (LSInstallType = (null)) requested by streaming_zip_conduit (pid 5853)
Nov 12 21:17:19 Isaacs-iPhone installd[4549] : 0x16e12f000 -[MIInstaller performInstallationWithError:]: Installing
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Provisioning profiles changed
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Updating MIS trust...
Nov 12 21:17:20 Isaacs-iPhone securityd[4588] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Nov 12 21:17:20 Isaacs-iPhone securityd[4588] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Provisioning profiles changed
Nov 12 21:17:20 Isaacs-iPhone profiled[4644] : (Note ) MC: Updating MIS trust...
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : unrecognized status -67049 from codesigning library
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : 0x16e12f000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)
Nov 12 21:17:20 Isaacs-iPhone installd[4549] : 0x16e12f000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : 0x16e087000 __MobileInstallationInstallForLaunchServices_block_invoke222: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)" UserInfo={LibMISErrorNumber=-402620415, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=142, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)}
Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : ERROR: MobileInstallationInstallForLaunchServices returned nil
Nov 12 21:17:20 Isaacs-iPhone streaming_zip_conduit[5853] : __dispatch_source_read_socket_block_invoke:274: Failed to install application at file:///var/mobile/Media/PublicStaging/FSS%20App.app/ : Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=ApplicationVerificationFailed, ErrorDetail=-402620415, ErrorDescription=Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex : 0xe8008001 (An unknown error has occurred.)}
This line in the device logs stood out to me, and hopefully you saw it too:
Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.FvOJz0/extracted/FSS App.app/PlugIns/QuickSched.appex
This is saying that (although Xcode thought everything was OK at build time), your device rejected the code signature of your app extension.
There are a few solutions here, but in my personal experience, this issue can only be fixed by tinkering with the code signing settings for your app and app extension. Make sure that the app and app extension are being signed with the same certificate (although likely different provisioning profiles).
As others have recommended, I've also been able to fix this by running the Clean action in Xcode for the project, and also by deleting the derived data directories. But I have not always been successful with this.
This happened to me before. I had to navigate to derived data and delete it. Restart Xcode. Solved the issue for me. You may want to restart your computer as well.
I have had luck by disconnecting my iPhone from my mac, and then Analyzing (Shift + Command + B or Product -> Analyze).
After that I plugged my iPhone back in and did a clean (Command + k) and then ran! Worked!
I spent a long time on this issue. Doing the following in XCode finally resolved it for me. Some of this is mentioned already, but no.4 finally resolved it for me.
Product > Clean Build Folder (Cmd+Shift+K)
Project > Target (Project) > Build Settings, and check if path of "Info.plist" file is same as the path you get if you right click on the file > Show file inspector > location="Relative to Project"
Disconnect Phone & restart laptop & restart phone
Project > Target (Project) > Build Settings, and ensure "Excluded Architectures" is empty. Mine had arm64 in excluded architectures for some reason.
Hopefully this helps.
I had the same problem but with an app without app extension on XCode 10.2.1.
None of the solutions worked for me, so I deleted the XCode target and recreated it with the same files and settings. This worked for me.
try it :
Xcode-> Preferences->Locations->Derived Data-> Delete it...
It will clean your project,
Try to restart your device.
Then build the app on the device.
I also had this problem, in device log it said that code signing failed for my app extension ....appex. I went to my App Target -> Build phases -> Embed App Extensions and checked Copy only when installing, after that I could install the app on the phone.
This worked for me :
1) Product > Archive (From Xcode)
2) Export iPa
3) Install this iPa from iTunes or Diawi.
I have been looking into this issue for a long time now and have gone over many questions on here which have helped clear up somethings but I am now getting some new warnings and errors in the device logs and I am unable to decipher them.
Firstly I was getting the following:
<Warning>: LoadExternalDownloadManifestOperation: Ignore manifest download, already have bundleID:
which wouldn't even kick the install off but I followed the steps in the following link: iOS 8 - Can't Install Enterprise App made some changes to the bundle identifier and the manifest file and it would try and kick off the download.
However I am now getting the following errors/warnings and I am unsure what is causing them:
<Notice>: 0x101dcc000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.bundle-name; Version=3.0, ShortVersion=(null)>
<Error>: 0x198de7310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
<Error>: 0x198de7310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
<Error>: 0x198de7310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
<Error>: 0x198de7310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
<Error>: 0x198de7310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
<Error>: 0x198de7310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
<Error>: 0x198de7310 Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
as well as:
<Warning>: LaunchServices: Creating installProgressForApplication:<LSApplicationProxy: 0x13cf84870> com.bundle-name(Placeholder) withPhase:3
<Warning>: LaunchServices: installPhaseFinishedForProgress: com.bundle-name.InstallingPlaceholder - <NSProgress: 0x13e003120> : Parent: 0x0 / Fraction completed: 0.0000 / Completed: 0 of 100 called, removing progress from cache
and:
<Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Any Help deciphering these and shedding some light would be greatly appreciated.
Update:
I went back and checked iOS 7.1.1 and it was failing to installing there so I switched the manifest file iPA url back to being ftp:// and it worked on 7.1.1 again but iOS8 throws the following warning and fails to download the app:
<Notice>: Invalid URL scheme for background tasks: ftp. Valid schemes are http or https
but switching the IPA url over to HTTPS means the app doesn't download for both iOS 7.1.1 or iOS 8.1
I found the solution to my problem and here is everything I did to get it working.
Our setup + backstory:
We have an AWS webserver with an HTTPS website running on it. Since iOS 7.1 our manifest (plist) is hosted on the server but the IPA was stored on an FTP and this worked fine throughout iOS 7. The introduction of iOS 8 meant the FTP could no longer be used for the IPA so we wanted to move it onto the webserver the same as the PLIST. Before doing this though we had other issues that were preventing the iPad from even trying to download because I was getting the following error message:
Ignore manifest download, already have bundleID: {bundle_id}
The Fix:
Firstly I followed the steps in this question and made sure that both full-size-image and display-image exist in the manifest file.
I then made some other changes to the manifest file based on another answer in this question. These changes were to the bundle-identifier and bundle-version
In doing this my iOS 8 test iPad would pick up the install display the shadow icon but then fail to install, however the iOS 7 iPad would still install I saw the following message:
<Notice>: Invalid URL scheme for background tasks: ftp. Valid schemes are http or https
Which led me to move all the files onto the webserver, but then both iOS 7 and iOS 8 wouldn't install.
I originally thought one of the above errors / warnings might have been causing it to fail but couldn't seem to find an answer. After hours of searching and trying to fix I had an epiphany because when trying to view the IPA in a web browser I was getting a 404 and I remembered we had a similar issue when moving the PLIST file onto the server. To fix this I had to add the IPA MIME type on the IIS 7 server. As soon as I did this my 7 build of our app will download an install on both the iOS 7 and iOS 8 iPads. The correct MIME type for an application/octet-stream
EDIT: My problem was because the plist file was corrupted . So if you have the same issue, probably is because of something in you plist file.
SO i have this app and everything worked just fine until i updated my device to IOS 6. After that i couldn't install the app on the device . The app worked just fine on IOS 5.0 simulator and IOS 6.0 simulator . When i try to build it for device , the splash screen appears for two second and then the app closes . In Xcode i receive this error :
timed out waiting for app to launch
I searched the web and it said that it is a AdHoc provisioning problem but my provisioning profiles are in order . I even changed the app id and deleted the old provisioning and i got the same error .
In the device console i receive this weird error :
Oct 15 23:48:23 iPad2-3G backboardd[51] <Warning>: Launch Services: Registered unknown app identifier InvoiceAppDev
��Oct 15 23:48:23 iPad2-3G backboardd[51] <Warning>: Launch Services: Unable to find app identifier InvoiceAppDev
Oct 15 23:48:23 iPad2-3G backboardd[51] <Warning>: Can't create application "InvoiceAppDev" without a bundle path
Oct 15 23:48:44 iPad2-3G mobile_house_arrest[200] <Error>: Max open files: 78
��Oct 15 23:48:44 iPad2-3G installd[30] <Error>: 0x2ff81000 handle_install: Install of "/var/mobile/Media/PublicStaging/InvoiceApp.app" requested by mobile_installation_proxy
Oct 15 23:48:44 iPad2-3G installd[30] <Error>: 0x2ff81000 MobileInstallationInstall_Server: Installing app InvoiceAppDev
��Oct 15 23:48:44 iPad2-3G installd[30] <Error>: Oct 15 23:48:44 SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Oct 15 23:48:45 iPad2-3G installd[30] <Error>: entitlement 'application-identifier' has value not permitted by a provisioning profile
��Oct 15 23:48:45 iPad2-3G installd[30] <Error>: entitlement 'com.apple.developer.ubiquity-container-identifiers' has value not permitted by a provisioning profile
I don't have any clue what happened . Does anybody has any idea why this happened ?
I saw the same error caused by the accidental entry of the following blank field in app.plist:
+ <key>LSApplicationCategoryType</key>
+ <string></string>
I had the exact same symptoms. Believe it or not, I changed my target code signing from distribution to developer and everything worked as expected.
Thanks #nycynik - that solved the problem.
In xcode open the the "Organizer", choose the device (ex. iPhone), select "Application" and delete the previous Version of the
App. Than run again.