Fastline + Crashlytics Unable to Download App - ios10

I have an issue with my App. I have been able to archive it with fastline and to distribute it with Crashlytics.
But then when I install the app I have a pop up with the error : "Unable to Download App" with the option to retry.
I have looked to the device logs, but I don't understand the error :
Jun 7 16:22:50 sherpas-iPhone-6-plus installd(MobileSystemServices)[854] <Notice>: 0x16dff7000
-[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.sherpa-solutions.HIMSS2017; Version=713, ShortVersion=3.5> Jun 7 16:22:50 sherpas-iPhone-6-plus installd(MobileInstallation)[854] <Notice>: <private>:Install (New):0:Success:Begin Jun 7 16:22:50 sherpas-iPhone-6-plus installd(MobileSystemServices)[854] <Notice>: 0x16dff7000
-[MIFileManager realPathForURL:ifChildOfURL:]: Rejecting /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.jQyktL/extracted/Payload/HIMSS2017.app/ActivTouchResources.bundle
-> /Users/jgahide/Library/Developer/Xcode/DerivedData/HIMSS2017-dehtvbvvxajesreqckfuqhvjxfyj/Build/Intermediates/ArchiveIntermediates/HIMSS2017/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/ActivTouchResources.bundle, as absolute symlinks are not allowed
Jun 7 16:22:50 sherpas-iPhone-6-plus SpringBoard[4589] <Info>: Updated: <private> Jun 7 16:22:50 sherpas-iPhone-6-plus installd(MobileSystemServices)[854] <Notice>: 0x16dff7000
__87-[MIFileManager standardizeOwnershipAtURL:toUID:GID:validateSymlinks:removeACLs:error:]_block_invoke: 423: invalid symlink at /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.jQyktL/extracted/Payload/HIMSS2017.app/ActivTouchResources.bundle
Jun 7 16:22:50 sherpas-iPhone-6-plus installd(MobileSystemServices)[854] <Notice>: 0x16dff7000
-[MIInstaller performInstallationWithError:]: Preflight stage failed
I tried Crashlytics with iOS 9 Unable to Download App but it didn't work.

Related

App downloaded from App Store fails to start, no crash or crash log

My App fails to start when downloaded from the App Store, see below. No crash or crash log. Any ideas?
Jul 5 08:54:40 unknown fairplayd.N90[41] <Error>: libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
Jul 5 08:54:40 unknown SpringBoard[52] <Warning>: Unable to obtain a task name port right for pid 1310: (os/kern) failure
Jul 5 08:54:40 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:xxxxxxxx.Xxxxxxx[0x5760]) Exited: Killed: 9
Jul 5 08:54:40 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:xxxxxxxx.Xxxxxxx[0x5760]) Throttling respawn: Will start in 2147483647 seconds
Jul 5 08:54:40 unknown SpringBoard[52] <Warning>: Application 'Xxxxxxx' exited abnormally with signal 9: Killed: 9
Jul 5 08:54:40 unknown kernel[0] <Debug>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42110
>
Jul 5 08:55:29 unknown lockdownd[26] <Notice>: 00381000 spawn_and_handle_checkin: Timeout waiting for com.apple.crashreportmover service agent to checkin. spawn=1341471314 select=1341471314 now=1341471329
Jul 5 08:55:29 unknown ReportCrash[1346] <Error>: libMobileGestalt computeUniqueDeviceID: total time for bb to return imei: 0
Jul 5 08:55:29 unknown ReportCrash[1346] <Notice>: Saved crashreport to /Library/Logs/CrashReporter/stacks-2012-07-05-085529.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Jul 5 08:55:30 unknown lockdownd[26] <Notice>: 00381000 spawn_service_agent: Could not look up service in the map
Jul 5 08:55:30 unknown lockdownd[26] <Notice>: 00381000 spawn_and_handle_checkin: Could not spawn the com.apple.crashreportcopy service agent:InvalidService
>
Jul 5 08:55:30 unknown lockdownd[26] <Notice>: 00381000 spawn_service_agent: Could not look up service in the map
Jul 5 08:55:30 unknown lockdownd[26] <Notice>: 00381000 spawn_and_handle_checkin: Could not spawn the com.apple.crashreportcopy service agent:InvalidService
There's been some problems with Apps downloaded from the AppStore over the last couple of nights being corrupted from the AppStore. Delete and re-install from the AppStore.
http://www.marco.org/2012/07/04/app-store-corrupt-binaries

App Release Version crashes Debug Version works, no idea why

So I have this app I'm working on and after building running the App from XCode on the device everything works fine. However after installing the same App from the App Store (no changes only the provisioning profile is different) the App crashes shortly before it starts.
Console errors:
Fri Sep 30 12:48:42 unknown locationd[540] <Notice>: MS:Notice: Installing: (null) [locationd] (550.32)
Fri Sep 30 12:49:47 itess Ola Portugal[556] <Notice>: MS:Notice: Installing: com.mindovertech.olaportugal [Ola Portugal] (550.32)
Fri Sep 30 12:49:47 itess kernel[0] <Debug>: launchd[556] Builtin profile: container (sandbox)
Fri Sep 30 12:49:47 itess kernel[0] <Debug>: launchd[556] Container: /private/var/mobile/Applications/13E9B45C-84ED-4FD3-BDAA-8527BA34CB3F [69] (sandbox)
Fri Sep 30 12:49:47 itess Ola Portugal[556] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
Fri Sep 30 12:49:47 itess Ola Portugal[556] <Notice>: MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/PDFPatch_CVE-2010-1797.dylib
Fri Sep 30 12:49:49 itess locationd[557] <Notice>: MS:Notice: Installing: (null) [locationd] (550.32)
Fri Sep 30 12:49:51 itess Ola Portugal[556] <Warning>: Warning: Libinfo call to mDNSResponder on main thread
Fri Sep 30 12:49:56 itess ReportCrash[559] <Notice>: Formulating crash report for process Ola Portugal[556]
Fri Sep 30 12:49:57 itess com.apple.launchd[1] (UIKitApplication:com.mindovertech.olaportugal[0xeace][556]) <Warning>: (UIKitApplication:com.mindovertech.olaportugal[0xeace]) Job appears to have crashed: Bus error
Fri Sep 30 12:49:57 itess SpringBoard[28] <Warning>: Application 'Olá Portugal' exited abnormally with signal 10: Bus error
Fri Sep 30 12:49:57 itess ReportCrash[559] <Error>: Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Ola Portugal_2011-09-30-124953_itess.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Device log:
Incident Identifier: B2ABCA98-7942-4FF2-968A-F5FE4AFDDE4D
CrashReporter Key: fd9745556d91de13e834ad1bbd0bee6c29b17976
Hardware Model: iPod2,1
Process: Ola Portugal [556]
Path: /var/mobile/Applications/13E9B45C-84ED-4FD3-BDAA-8527BA34CB3F/Ola Portugal.app/Ola Portugal
Identifier: Ola Portugal
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-09-30 12:49:53.028 +0100
OS Version: iPhone OS 4.0 (8A293)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00816a00
Crashed Thread: 0
Thread 0 Crashed:
0 ??? 0x00816a00 0 + 8481280
(Didn t copy the other threads because they seems to be fine)
Here's one more detail, the device where it crashes is an iPod touch running 4.0
The same App (from the App Store) works perfectly on an iPhone4/iPad2 running 4.3.3
I'm not sure if the problem is with the device or with the OS and what I can do to fix it.
Like I said before If I run the debug version on the device from XCode it works fine.
Any ideas?
Generally this kind of error occurs when we are updating new version on store because of coredata.
If you have changed any thing related to coredata then you need to delete old .Sqlite file at first launch of new version. remember not every time to delete .squlite but only once the application starts and old file exist.
I forgot about this thread. I eventually found out it had to do with iAD, I was using an instruction available on 4.1 but not 4.0

Xcode 4 - My App Is Installed But Never Run On Device

My app builds perfectly, and gets installed onto my iPod Touch 1G (iOS 3.1.3), but when Xcode 4 says it is running it on my device, it never gets started. If I check in the Console for my device in the Organizer, I get the following:
Fri Jul 8 19:23:37 unknown mobile_installationd[4204] <Error>: 0080ba00 install_embedded_profile: Skipping the installation of the embedded profile
Fri Jul 8 19:23:47 unknown SpringBoard[25] <Warning>: Reloading and rendering all application icons.
Fri Jul 8 19:23:56 unknown lockdownd[16] <Error>: (0x837000) spawn_service_agent: Could not look up service in the map
Fri Jul 8 19:23:56 unknown lockdownd[16] <Error>: (0x837000) handle_start_service: Could not spawn the com.apple.debugserver service agent: 515048
Fri Jul 8 19:23:56 unknown lockdownd[16] <Error>: (0x837000) set_response_error: handle_start_service InvalidService
Fri Jul 8 19:24:06 unknown lockdownd[16] <Error>: (0x837000) spawn_service_agent: Could not look up service in the map
Fri Jul 8 19:24:06 unknown lockdownd[16] <Error>: (0x837000) handle_start_service: Could not spawn the com.apple.debugserver.applist service agent: 515048
Fri Jul 8 19:24:06 unknown lockdownd[16] <Error>: (0x837000) set_response_error: handle_start_service InvalidService
Is there anything I can do to fix this, as I cannot debug it on my device at the moment?
EDIT: Never mind. I forgot to try simply rebooting my iPod - I had restarted Xcode, and then my Mac, but did not think to reboot my iPod!
Never mind. I forgot to try simply rebooting my iPod - I had restarted Xcode, and then my Mac, but did not think to reboot my iPod!

provisioning profile hell

once in a while I run across a problem with provisioning a device with a dev version of an app . The error message is usually "a valid provisioning profile for this executable was not found".
I have followed all the Apple instructions: I have a valid dev certificate, the developer provisioning profile includes the device ID of the device in question, codesigning works during build. I have the signing identity set for my developer identity, which Xcode matches up with the development provisioning profile just like it should.
Then, when I try to install the app on the device by doing a 'build/run' in xcode, I get the error described above, and I'm at a total loss. It works just fine on any number of other devices, but for some reason, there are a few devices for which this process bombs.
Here's the console log for the failed install on the device:
Sat Sep 18 11:41:14 unknown SpringBoard[27] <Warning>: Reloading and rendering all application icons.
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 verify_signer_identity: Could not copy validate signature: -402620395
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.pJ8ST8/MyApp.app
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 install_application: Could not preflight application install
Sat Sep 18 11:41:36 unknown mobile_installation_proxy[855] <Error>: handle_install: Installation failed
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 handle_install: API failed
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 send_message: failed to send mach message of 64 bytes: 10000003
Sat Sep 18 11:41:36 unknown installd[820] <Error>: 00503000 send_error: Could not send error response to client
Sat Sep 18 11:42:32 unknown MobileMail[809] <Warning>: SecItemCopyMatching result: -25300
Sat Sep 18 11:42:37 unknown MobileMail[809] <Warning>: SecItemCopyMatching result: -25300
Sat Sep 18 11:43:32 unknown CommCenter[31] <Notice>: com.apple.persistentconnection[MobileMail,809] is releasing its assertion on PDP context 0.
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 verify_signer_identity: Could not copy validate signature: -402620395
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 preflight_application_install: Could not verify executable at /var/tmp/install_staging.cgJjHu/MyApp.app
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 install_application: Could not preflight application install
Sat Sep 18 11:44:53 unknown mobile_installation_proxy[867] <Error>: handle_install: Installation failed
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 handle_install: API failed
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 send_message: failed to send mach message of 64 bytes: 10000003
Sat Sep 18 11:44:53 unknown installd[866] <Error>: 00503000 send_error: Could not send error response to client
Team and I ran into same issue as you. It work fine with many device except the customer iPod. We try to create everything from scratch. App ID, Provision, Build. No Luck.
So, after review great article at http://boga.wordpress.com/2008/07/16/debugging-ipod-provision-profilescertificates/
so, I use the Organize to sync provision with iTunes Connect site. then check provision file with TextEdit (Vim).
this line should be appear. After that my deploy with Adhoc success.
<key>Entitlements</key>
<dict>
<key>application-identifier</key>
<string>H33HFFQMS8.icpsstock</string>
<key>get-task-allow</key>
<false/>
<key>keychain-access-groups</key>
<array>
<string>H33HFFQMS8.*</string>
</array>
</dict>
Hope this help, my configuration looks like this.
Target iOS 3.1.3
Base SDK 4.2
LLVM GCC 4.2 Build
get-task-allow in Entitlement.plist must be false
Sync Organizer's provision with iTunes Connect
You might want to try the whole provisioning process from the beginning again. Yesterday, the XCode managed "automatic" provisioning profile gave me that error when I try to test on a new iPhone. So I had to resolve to the old manual installation of provisioning profile.
I deleted all my profiles from both the device and the XCode. Added the new device to the provisioning profile on the iOS provisioning portal on the apple website. (I think I also closed XCode and restarted my machine.) Re-downloaded the new profile and installed to the XCode. Changed to that profile in the project setting. And it worked.
The only thing that I didn't do was regeneration of the certificate.

Renaming project gives med code signing error

I just renamed my project and also in the project.pbxproj renamed my product to the new name.
Now I am getting codesigning error when trying to debug on the phone. How come and how do I fix this? I have defined the profile to the same as on my phone for "debug"-ing.
It works well on the simulator. It didn't work before changing the product name either. I have also cleared the file history.
Inlcuding the log here:
Fri Jul 30 12:51:36 unknown SpringBoard[28] <Warning>: Killing <SBApplication:0x6343510> com.iAndApp.BlockPop activate: deactivate: for app installation
Fri Jul 30 12:51:37 unknown SpringBoard[28] <Warning>: Reloading and rendering all application icons.
Fri Jul 30 12:51:42 unknown com.apple.debugserver-48[2630] <Warning>: debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Fri Jul 30 12:51:42 unknown com.apple.debugserver-48[2630] <Warning>: Connecting to com.apple.debugserver service...
Fri Jul 30 12:51:42 unknown kernel[0] <Debug>: lockbot[2617] Builtin profile: debugserver (sandbox)
Fri Jul 30 12:51:44 unknown SpringBoard[28] <Notice>: MultitouchHID(20af30) uilock state: 1 -> 0
Fri Jul 30 12:51:44 unknown SpringBoard[28] <Notice>: MultitouchHID(2277a0) device bootloaded
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) Spawned and waiting for the debugger to attach before continuing...
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Error>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) posix_spawn("/var/mobile/Applications/CB93DCE9-6063-4486-9E48-E502D748CC3A/BlockPop.app/BlockPopLite", ...): Permission denied
Fri Jul 30 12:51:45 unknown SpringBoard[28] <Warning>: Unable to obtain a task name port right for pid 2631: (os/kern) failure
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) Exited with exit code: 1
Fri Jul 30 12:51:45 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.iAndApp.BlockPop[0x5ab4]) Throttling respawn: Will start in 2147483647 seconds
Fri Jul 30 12:51:45 unknown SpringBoard[28] <Warning>: Application 'BlockPopLite' exited abnormally with exit status 1
Fri Jul 30 12:52:15 unknown com.apple.debugserver-48[2630] <Error>: error: failed to lookup the process ID for CFBundleIdentifier com.iAndApp.BlockPop.
Fri Jul 30 12:52:15 unknown com.apple.debugserver-48[2630] <Warning>: error: failed to launch process (null): unknown error.
Fri Jul 30 12:52:15 unknown com.apple.debugserver-48[2630] <Warning>: 1 [0a46/1403]: error: ::read ( 6, 0x3809f4, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Fri Jul 30 12:52:45 unknown SpringBoard[28] <Notice>: MultitouchHID(20af30) uilock state: 0 -> 1
Thanks in advance!
Niklas
Well, I did as many other did, I recreated the project and moved the content to the new project. Some lessons learned that may be valuable for others:
First, I tried to create an empty project and then copied all content by just dragging the files (classes, sound files, xib files, etc.). That didn't work, complaints about that it couldn't load the files. May also have to do with that I changed name of the project earlier, that's actually when all problems started.
I created a new project that's window-based. Could be my incompetence, but I didn't manage to get the first view loaded properly and, hence, ended up with a grey first view. I created all files and xibs and copied the code from to the newly created class files. I copied/pasted all graphical objects in my xib and configured everything as they're supposed to be (class associations, actions, outlets, etc).
I created a new view-based application with exactly the name I was going to use for my app. By doing this I get the delegate AND controller file for free, and I was hoping that some of the assocations I failed to do was going to come for free now. Differently from 2 above, I now added my files by rigth-clicking on Classes/Other Resources/etc.->Add->Existing Files. The only thing I dragged from my old project was png-files. I cannot really explain why, but I guess that some associations happens behind the scenes when xCode creates the delegate and controller files which I couldn't controll when creating a windows based project, due to my incompetence or how xCode works.
Cheers,
Niklas
I had a similar problem. The Console log showed:
Mon Dec 6 10:43:46 (deviceName) com.apple.launchd[1] (UIKitApplication:(appId)[0x7f1b][2763]) : ((appId)[0x7f1b]) posix_spawn("/var/mobile/Applications/427DC185-7DD3-4286-B73E-9B650798A37D/(appName).app/CO", ...): Permission denied
This only occurred when running/debugging with XCode debugger. The app would not crash when launching from the launcher.
I tried reinstalling certificates with no success.
It appeared to me that the problem was with the debugger connecting.
I deleted the application, and on the next run/debug with XCode the problem had gone away!
I am using this script to rename my iOS project. https://github.com/ytbryan/rename
Remember to update your Xcode scheme too.