Building error of iOS app to an ipad - ios

Currently Im making an iOS app and got an error to build the app to iPad.
I have 2 iMacs, on first iMac, building succeeds. but doesn't succeed on Second iMac.The second iMac's documents, apps, user accounts, and settings are the same to the first iMac because I set up the second iMac using migration assistant, so I expected not to have any trouble.
Some information says that there are kind of parent-children relationship between Mac PCs, so I tried to export certification from the first iMac and install to the Second iMac, but It didn't work.
I also tried to make another provisioning profile, change settings of Code Signing in Build Settings, clean, or reboot Xcode, but nothing worked.
Below is error messages I've got.
Feb 12 20:20:34 ec1 streaming_zip_conduit[215] :
LaunchServices: installing app for existing placeholder
jp.co.worksap.E-OmniSupport03
<(null) Not found in database> Feb 12 20:20:34 ec1
streaming_zip_conduit[215] : LaunchServices: Not creating
progress for
jp.co.worksap.E-OmniSupport03 <(null) Not found in database> since
it is not a placeholder. Feb 12 20:20:34 ec1 installd[47] :
0x16e1bb000 -[MIClientConnection installPath:withOptions:completion:]:
Install of "/var/mobile/Media/PublicStaging/E-OmniSupport.app" type
Developer (LSInstallType = (null)) requested by streaming_zip_conduit
(pid 215) Feb 12 20:20:35 ec1 installd[47] : 0x16e087000
-[MIInstaller performInstallationWithError:]: Installing Feb 12 20:20:35 ec1 profiled[85] : (Note )
MC: Provisioning profiles changed Feb 12 20:20:35 ec1 profiled[85]
: (Note ) MC: Updating MIS trust... Feb 12 20:20:35 ec1
securityd[86] : secTaskDiagnoseEntitlements MISSING keychain
entitlements: no stored taskRef found Feb 12 20:20:35 ec1
securityd[86] : secTaskDiagnoseEntitlements MISSING keychain
entitlements: no stored taskRef found Feb 12 20:20:35 ec1 installd[47]
: SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Feb 12 20:20:35 ec1 securityd[86] :
secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored
taskRef found Feb 12 20:20:35 ec1 securityd[86] :
secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored
taskRef found Feb 12 20:20:35 ec1 installd[47] :
SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName] Feb 12
20:20:35 ec1 securityd[86] : secTaskDiagnoseEntitlements
MISSING keychain entitlements: no stored taskRef found Feb 12 20:20:35
ec1 securityd[86] : secTaskDiagnoseEntitlements MISSING
keychain entitlements: no stored taskRef found Feb 12 20:20:35 ec1
installd[47] : SecTrustEvaluate [leaf IssuerCommonName
SubjectCommonName] Feb 12 20:20:35 ec1 installd[47] : MIS:
unrecognized status -67049 from codesigning library Feb 12 20:20:35
ec1 installd[47] : 0x16e087000 +[MICodeSigningVerifier
_validateSignatureAndCopyInfoForURL:withOptions:error:]: 142: Failed to verify code signature of
/private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 0xe8008001 (An unknown error has occurred.) Feb 12 20:20:35 ec1
installd[47] : 0x16e087000 -[MIInstaller
performInstallationWithError:]: Verification stage failed Feb 12
20:20:35 ec1 streaming_zip_conduit[215] : 0x16e12f000
__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.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 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.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 0xe8008001 (An unknown error has occurred.)} Feb 12 20:20:35 ec1
streaming_zip_conduit[215] : ERROR:
MobileInstallationInstallForLaunchServices returned nil Feb 12
20:20:35 ec1 streaming_zip_conduit[215] :
__dispatch_source_read_socket_block_invoke:274: Failed to install application at
file:///var/mobile/Media/PublicStaging/E-OmniSupport.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.2KUwcn/extracted/E-OmniSupport.app/Frameworks/SCLAlertView.framework
: 0xe8008001 (An unknown error has occurred.)}
Can you come up with anything to this message?
I hope someone helps me out.

Related

Cordova iOS strange behavior, app close after splashscreen

I have experienced a strange behavior on a demo app i've done.
I'm learning how to develop apps with cordova, i developed a really simple demo app and i installed it with "RUN" of the xcode, in my iPhone 5S with iOS 9.3.
At first the app works really well but after a few days the app starts closing/crashing after the splashscreen.
The app stays in background but when i try to bring it up it closes/crashes again.
-- UPDATE --
After using Configurator for logging i got this :
========== 15/07/2016, 15:31:57 ==========
Jul 15 15:32:00 iPhone-de-Luis SpringBoard[54] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jul 15 15:32:00 iPhone-de-Luis SpringBoard[54] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jul 15 15:32:00 iPhone-de-Luis securityd[93] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Jul 15 15:32:00 iPhone-de-Luis securityd[93] : secTaskDiagnoseEntitlements MISSING keychain entitlements: no stored taskRef found
Jul 15 15:32:00 iPhone-de-Luis amfid[2207] : SecTrustEvaluate [leaf IssuerCommonName SubjectCommonName]
Jul 15 15:32:00 iPhone-de-Luis amfid[2207] : MIS: entitlement 'application-identifier' has value not permitted by provisioning profile 'iOS Team Provisioning Profile: io.ionic.luis.conference'
Jul 15 15:32:00 iPhone-de-Luis amfid[2207] : /private/var/containers/Bundle/Application/EE241426-5F1E-43B1-911F-C1C292F57F9D/RederiaCatalog.app/RederiaCatalog not valid: 0xe8008016: The executable was signed with invalid entitlements.
Jul 15 15:32:00 iPhone-de-Luis com.apple.xpc.launchd[1] (UIKitApplication:com.project.rederia[0xfc77][2872]) : Service exited due to signal: Killed: 9
Jul 15 15:32:00 iPhone-de-Luis assertiond[63] : Unable to obtain a task name port right for pid 2872: (os/kern) failure (5)
Jul 15 15:32:00 iPhone-de-Luis SpringBoard[54] : Unable to register for exec notifications: No such process
Jul 15 15:32:00 iPhone-de-Luis SpringBoard[54] : Unable to obtain a task name port right for pid 2872: (os/kern) failure (5)
Jul 15 15:32:00 iPhone-de-Luis SpringBoard[54] : Unable to obtain a task name port right for
Jul 15 15:32:00 iPhone-de-Luis SpringBoard[54] : Application 'UIKitApplication:com.project.rederia[0xfc77]' exited abnormally via signal.
Jul 15 15:32:01 iPhone-de-Luis SpringBoard[54] : Application '(null)' exited for an unknown reason.

iOS MDM enrollment fails in iOS 9 devices

This has been previously working for iOS 7 and 8 devices but now the enrollment fails for new iOS 9 devices. This is what I see in the device logs.
Oct 26 18:00:34 iPhone profiled[412] <Notice>: (Note ) MC: Enrolling in OTA Profile service...
Oct 26 18:00:35 iPhone profiled[412] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Oct 26 18:00:38 iPhone securityd[83] <Error>: securityd_xpc_dictionary_handler profiled[412] add Error Domain=NSOSStatusErrorDomain Code=-25299 "duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284" UserInfo={NSDescription=duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284}
Oct 26 18:00:38 iPhone profiled[412] <Error>: SecOSStatusWith error:[-25299] Error Domain=NSOSStatusErrorDomain Code=-25299 "duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284" UserInfo={NSDescription=duplicate item O,cert,159EFDE0,L,dku,com.apple.certificates,0,ctyp,cenc,labl,subj,issr,slnr,pkhh,v_Data,20151026123038.608026Z,7C914284}
Oct 26 18:00:38 iPhone profiled[412] <Error>: SecTrustEvaluate [leaf AnchorTrusted]
Oct 26 18:00:38 iPhone profiled[412] <Notice>: (Note ) MC: Attempting to retrieve issued certificate...
Oct 26 18:00:39 iPhone securityd[83] <Error>: SecDbRecordChange db <SecDbConnection rw open> changed outside txn
Oct 26 18:00:39 iPhone profiled[412] <Notice>: (Note ) MC: Issued certificate received.
Oct 26 18:00:39 iPhone Preferences[406] <Notice>: (Error) MC: Install profile data, interactive error. Error: NSError:
Desc : Couldn’t communicate with a helper application.
Sugg : Try your operation again. If that fails, quit and relaunch the application and try again.
Domain : NSCocoaErrorDomain
Code : 4097
Extra info:
{
NSDebugDescription = "connection to service named com.apple.managedconfiguration.profiled";
}
Oct 26 18:00:39 iPhone com.apple.xpc.launchd[1] (com.apple.managedconfiguration.profiled[412]) <Notice>: Service exited due to signal: Trace/BPT trap: 5
Oct 26 18:00:40 iPhone ReportCrash[423] <Error>: assertion failed: 13A452: libsystem_trace.dylib + 15931 [45DE3123-E22D-320F-9F75-1CCD65A33451]: 0x0
Oct 26 18:00:40 iPhone Unknown[423] <Error>:
Oct 26 18:00:40 iPhone ReportCrash[423] <Warning>: os_activity_diagnostic_for_pid() failed!
Oct 26 18:00:40 iPhone ReportCrash[423] <Notice>: Formulating report for corpse[412] profiled
assertion failed: 13A452: libsystem_trace.dylib + 15931
means that your process "profiled" overran its allocated memory and was killed via the kernel/jetsam. iOS 9 has aggressive memory management and kills processes all over the place and even reboots the device nightly.
Just answering my own question. In order to create the X509 certificate from csr you need to create relative distinguished names (RDNs) and add it to the certificate. Once you get the X500Name from PKCS10CertificationRequest and set it to X509v3CertificateBuilder it throws this error. Rather you have to create separate X500Names and proceed with the certificate generation which solved this issue.

Apple Watchkit app and extension not installing on local watch [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I have a Watchkit app, but everytime I try installing I keep getting the failed to install error. I have followed all of apples docs and tech sheets and looked for an answer. My provisioning profile also appears to be correct. Any idea?
Jun 2 12:27:51 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x12d52e9f0> com.devglasses.iris
Jun 2 12:27:51 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x12d52e9f0> com.devglasses.iris since it is not a placeholder.
Jun 2 12:27:51 SausageKings-iPhone pkd[147] <Warning>: UNINSTALLED:com.devglasses.iris.watchkitextension com.devglasses.iris.watchkitextension(2.1.0) E2342D5F-E5FC-470E-BA39-DDA796CBE5E3 /private/var/mobile/Containers/Bundle/Application/DCEE58B5-78C8-471C-B5AB-2D6679934757/Iris.app/PlugIns/Iris WatchKit Extension.appex
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Notice>: 0x10050c000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/Iris.app" type Developer requested by streaming_zip_conduit (pid 304)
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Notice>: 0x10050c000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.devglasses.iris; Version=2.1.0, ShortVersion=2.1.0>
Jun 2 12:27:51 SausageKings-iPhone profiled[124] <Notice>: (Note ) MC: Provisioning profiles changed
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jun 2 12:27:51 SausageKings-iPhone profiled[124] <Notice>: (Note ) MC: Provisioning profiles changed
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: SecTrustEvaluate [leaf CriticalExtensions IssuerCommonName]
Jun 2 12:27:51 SausageKings-iPhone CLTM[20] <Error>: CLTM: _subscription 0x0, _subscribedChannels 0x0
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: resource modified: /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex/Assets.car
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: 0x10050c000 -[MICodeSigningVerifier performValidationWithError:]: 188: Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)
Jun 2 12:27:51 SausageKings-iPhone installd[47] <Error>: 0x10050c000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Jun 2 12:27:52 SausageKings-iPhone streaming_zip_conduit[304] <Error>: 0x10040c000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)" UserInfo=0x12d6227b0 {LibMISErrorNumber=-402620393, LegacyErrorString=ApplicationVerificationFailed, SourceFileLine=188, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)}
Jun 2 12:27:52 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jun 2 12:27:52 SausageKings-iPhone streaming_zip_conduit[304] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/Iris.app/ : Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x12d6242f0 {Error=ApplicationVerificationFailed, ErrorDetail=-402620393, ErrorDescription=Failed to verify code signature of <MIPluginKitPluginBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.sfYkm7/extracted/Iris.app/PlugIns/Iris WatchKit Extension.appex identifier = com.devglasses.iris.watchkitextension type = 7> : 0xe8008017 (Signed resources have been added, removed, or modified)}

iOS Provisioning Profile - Cannot install (developer cert trust result = 5)

I recently generated a new certificate and provisioning profile and I'm unable to install (install loop) the IPA on a device.
device is registered in the provisioning profile
profile is on the device
profile is valid
profile is listed un Xcode
cert is in my keychain, all green
I'm using Hudson to build the IPA and it all worked fine until I had to updated the cert and the profile.
Console log I'm getting when installing:
Jan 10 12:12:52 Martins-iPhone SpringBoard[1790] : Killing com.wci.turntape for app installation
Jan 10 12:12:52 Martins-iPhone itunesstored[1788] : LaunchServices: installing app for existing placeholder LSApplicationProxy: com.wci.turntape (Placeholder)
Jan 10 12:12:52 Martins-iPhone itunesstored[1788] : LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.wci.turntape (Placeholder) withPhase:1
Jan 10 12:12:52 Martins-iPhone lsd[1787] : LaunchServices: Updating installPhase for parent to 1
Jan 10 12:12:52 Martins-iPhone installd[62] : 0x303000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/-3941318386609200153/2973774017215790161" requested by itunesstored
Jan 10 12:12:55 Martins-iPhone installd[62] : 0x303000 MobileInstallationInstall_Server: Installing app com.wci.turntape
Jan 10 12:12:56 Martins-iPhone installd[62] : developer cert trust result = 5
Jan 10 12:12:56 Martins-iPhone installd[62] : 0x303000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.p38MaR/foo_extracted/Payload/Turntape.app/turntape: 0xe8008018
Jan 10 12:12:56 Martins-iPhone installd[62] : 0x303000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.p38MaR/foo_extracted/Payload/Turntape.app
Jan 10 12:12:56 Martins-iPhone installd[62] : 0x303000 install_application: Could not preflight application install
Jan 10 12:12:56 Martins-iPhone itunesstored[1788] : 0x1e60000 MobileInstallationInstallForLaunchServices: failed with -1
Jan 10 12:12:56 Martins-iPhone itunesstored[1788] : ERROR: MobileInstallationInstallForLaunchServices returned nil
Jan 10 12:12:56 Martins-iPhone lsd[1787] : LaunchServices: installation failed for app com.wci.turntape
Does anything in the log ring a bell to anyone?
But all my
I found this guy with the same issue
http://community.phonegap.com/nitobi/topics/error_on_installation-p3psw
But his solution was to renew his expired certificate (which is what I did in the first place).
After spilling a lot of blood, I've found what was causing the problem...
The new certificates now have an organizational unit id (mine was YXW8YWB9K4) has a suffix to the certificate. Hudson was configured to look for the certificate without this suffix.
The problem was that we also had an Enterprise certificate and the build was getting messed up between the two certificates. With the previous certificate, there was no ambiguity because there was no suffix.
So I had to add the suffix my build parameter .
Example:
"iPhone Distribution: Company Inc"
And my certificates were:
"iPhone Distribution: Company Inc (YXW8YWB9K4)"
"iPhone Distribution: Company Inc (Ent)"
Btw for those having an Enterprise account, Apple's advice is to have a separate keychain for those certificates.
Please check once again that the IPA you are distributing is being signed with the correct profile. Make sure your new certificates are having the bundle identifier for the matching profile.

Ad Hoc iOS .ipa file won't install for devices added to profile since iOS 7 came out

I have an iOS app that I've developing for a while. Initially there were around 8 devices in the iOS dev account, ad builds were prepared and distributed through Hockey App, no problems. Recently, we've added a bunch more devices, but for some reason the ad hoc builds won't install on those devices (but continues to install just fine on the original set).
I have been over and over the certificates, devices and provisioning profiles in the iOS Dev Center. I've triple checked all the Build Settings in XCode. The app is for iOS 6 and iOS 7 only. It is built in XCode 5. I've tried installing the app through HockeyApp and direct through iTunes.
When attempting to install the app on a device, this is the output from the console:
Sep 24 21:45:02 Micks-iPad itunesstored[88] : LaunchServices: updating placeholder for com.purifier.ios with icons
Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: Install of "/var/mobile/Library/Caches/com.apple.itunesstored/AppPlaceholders/3119681654421541181.app" requested by itunesstored
Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Installing app com.purifier.ios
Sep 24 21:45:02 Micks-iPad installd[62] : 0x304000 install_application: Installing placeholder
Sep 24 21:45:03 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Staging: 0.01s; Waiting: 0.00s; Installation: 0.14s; LS Sync: 0.00s; Overall: 0.15s
Sep 24 21:45:06 Micks-iPad itunesstored[88] : LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.purifier.ios (Placeholder) withPhase:0
Sep 24 21:45:06 Micks-iPad lsd[74] : LaunchServices: Updating installState for parent to LSInstallStateWaiting
Sep 24 21:45:06 Micks-iPad lsd[74] : LaunchServices: Updating installPhase for parent to 0
Sep 24 21:45:19 Micks-iPad SpringBoard[33] : Killing com.purifier.ios for app installation
Sep 24 21:45:19 Micks-iPad itunesstored[88] : LaunchServices: installing app for existing placeholder LSApplicationProxy: com.purifier.ios (Placeholder)
Sep 24 21:45:19 Micks-iPad itunesstored[88] : LaunchServices: Creating installProgressForApplication:LSApplicationProxy: com.purifier.ios (Placeholder) withPhase:1
Sep 24 21:45:19 Micks-iPad lsd[74] : LaunchServices: Updating installPhase for parent to 1
Sep 24 21:45:19 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: Install of "/var/mobile/Media/Downloads/3119681654421541181/-915963357124799252" requested by itunesstored
Sep 24 21:45:20 Micks-iPad installd[62] : 0x304000 MobileInstallationInstall_Server: Installing app com.purifier.ios
Sep 24 21:45:20 Micks-iPad installd[62] : profile not valid: 0xe8008012
Sep 24 21:45:20 Micks-iPad installd[62] : 0x304000 install_embedded_profile: Could not install embedded profile: 0xe8008012
Sep 24 21:45:21 Micks-iPad securityd[77] : OCSPResponse: now > latestNextUpdate
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.AFwPty/foo_extracted/Payload/Purifier.app/Purifier: 0xe8008015
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.AFwPty/foo_extracted/Payload/Purifier.app
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 install_application: Could not preflight application install
Sep 24 21:45:22 Micks-iPad itunesstored[88] : 0x441000 MobileInstallationInstallForLaunchServices: failed with -1
Sep 24 21:45:22 Micks-iPad itunesstored[88] : ERROR: MobileInstallationInstallForLaunchServices returned nil
Sep 24 21:45:22 Micks-iPad lsd[74] : LaunchServices: installation failed for app com.purifier.ios
Sep 24 21:45:22 Micks-iPad itunesstored[88] : LaunchServices: installPhaseFinishedForProgress: com.purifier.ios.Installing - called, removing progress from cache
Sep 24 21:45:22 Micks-iPad installd[62] : 0x304000 handle_install_for_ls: API failed
Sep 24 21:45:31 Micks-iPad SpringBoard[33] : Killing com.purifier.ios for app installation
I've tried absolutely everything I can think of. Any help, even ideas about how to diagnose the problem, would be greatly appreciated.
The problem was that the UDID was wrong (thanks #neilco). The reason the UDID was wrong was because the UDID app I'm using is giving the wrong UDID as of iOS7.
I checked a bunch of other UDID apps and they're all giving the wrong UDID in iOS7. It seems that anything that starts with a bunch of FFFFFFFF... is wrong.
Back to bloody iTunes...
Here's the source of your problem:
Sep 24 21:45:20 Micks-iPad installd[62] : profile not valid: 0xe8008012
0xE8008012 is "The UUID of the device does not match any in the Provisioning Profile being loaded"
Check and double-check the UUIDs associated with the profile in the Provisioning Portal and make sure you're using the correct and current profile to sign the app. Also check you only have the current developer certs in your keychain. Remove any previous certs.
Ensure you re-download the provisioning profile after adding the new devices to it.
You need to edit the profile and tick the new devices in the list. Then re-dwonload it.
xcode open organizer -> Select devices -> in left pane select provisioning profile from the top delete your current provisioning profile.
Download updated provisioning profile from your developer account and now try to build your .ipa for new devices.
Don't forget to update provisioning in devices.
Please note that Apple has changed the UDID retrieval API due to privacy concerns. So, I don't think you may use some of those older apps to get the UDID. You can connect your device to your PC/Mac and get the UDID using iTunes (or XCODE). In iTunes, click on the Serial Number and it will change to UDID (once the phone is connected to the computer and you click the device in iTunes)
Swift 4 if you need to install it as development for testing Please Edit the Provisioning Profile or if you have no Provisioning Profile for this app then the unable to install in the device so please then create new Provisioning Profile and select all the devices and then rebuild IPA and install it simple

Resources