Why does our App using Ad-Hoc Distribution Profile install on iPhone and immediately uninstall?

Turn2JesusTurn2Jesus USMember
edited January 26 in Xamarin.iOS

We've had a rough time all around trying to get the app to anything other than a simulator (which appears to be a very common issue, as per our countless searches).

The first part was getting the Ad-Hoc Provisioning Profile, installing it, and finally getting our Visual Studio Xamarin iOS project to use it and successfully build.

It kept failing on build, complaining about the signing key or profile. We got past that piece.

Configuration: Ad-Hoc
Platform: Active (iPhone)

iOS Build:
- General tab
- SDK version: (blank)
- Linker behavior: Link SDK assemblies only
- [ x ] Optimize PNG images for iOS
- Advanced tab
- Supported architectures: ARMv7 + ARM64

iOS On-Demand Resources:
- Initial tags: (blank)
- Pre-fetch Order: (blank)
- [ x ] Embed on-demand resources in the app bundle

iOS IPA Options tab:
- [ x ] Build ad-hoc/enterprise package (IPA)
- iTunes Metadata: (blank)
- Package name: (blank)
- [ ] Include Artwork in IPA (we've tried checked and unchecked)

iOS Bundle Signing tab:
- Identity: Distribution (Automatic)
- Provisioning profile: Automatic
- Custom entitlements: Entitlements.plist
- Custom resource rules: (blank)
- Additional arguments: (blank)

Application tab:
- Target Framework: Xamarin.iOS
- Output type: Console Application
- Startup object: (Not set)
- Icon and manifest (selected)
- Icon: (Default Icon)
- Manifest: Properties\app.manifest

The Business logic is in a PCL.
This all works in an emulator (for Android) and the simulator (iOS).

We've tried two different iPhones (an old and new one). All of them are running iOS versions that we are targeting (iOS 10.2 or something like that).
The UDIDs of all of these iPhones are in the Provisioning Portal and the Ad-Hoc Profile that is available when we are building the app.
It is noteworthy that this project will refuse to build Ad-Hoc without that particular profile (not a surprise).
We are able to build the app.
The build takes about 5-10 minutes to complete.
The build (from Visual Studio) generates both an IPA in the bin directory on the PC and somewhere else on the Mac.
We take the location provided in the output window of the build to locate the IPA files.
The actual generation of the IPA file was a major achievement for us, as this is the first time using Xamarin and making an iOS app.
We then proceeded to connect the iPhone to the Mac, open the IPA file in iTunes, and dragged the app onto iPhone.
We started cheering when we saw the iPhone installing the app. It showed the icon for our app with an installation overlay, showing progress of the installation. Once it got to 100%, it disappeared immediately from the app menu and we could find no trace of it on the device.

We tried to find some sort of error log, but we didn't find one. We don't know where to look.

In Visual Studio, we opened the Device Log, selected the iPhone connected to the Mac.
It was a very chatty window. We were hoping to see what was happening by paying attention to that window during the installation process on the phone.
However, once it started installing, the device log went silent--even after the installation failed.

We opened Xcode, went to the iPhone in a window there, clicked a + button to install an application. When it tried installing through that mechanism, it complained about an invalid profile.

I'm not sure what to do. We've looked and looked at the AdHoc profile, double-checked that the UDIDs are in the profile, etc.

Can anyone please give us a clue as to why this may be happening/how to fix this?

Thank you and God bless!
Brandon

Tagged:

Answers

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @Turn2Jesus,

    Provisioning can be a real pain. :)

    It sounds like there is still a code signing issue where the app is not permitted to be installed on that device. This is usually a problem with the UDIDs for the App ID used in the provision. However, let's confirm that first. Try this:

    • On the Mac, open Xcode.
    • Go to the Windows -> Devices and select your attached device on the left-side menu.
    • At the bottom, there is an area for the device logs. If it's not open, click the small square/triangle icon to expand the log panel.
    • Then, try to install the app.
    • Copy the output of the log window once it fails.
    • Paste into your favorite text editor.

    To sort through the noice, search in the log for your Bundle Identifier. This is the value you set in your info.plist file. It is typically in the format com.mycompany.myapp. Look for the area where it tries to install the app and look for any code signing / failed error messages and paste them here. You can replace your app name in the logs for me if that is sensitive. Or, you can attach the entire log if it's not private.

  • GuyLemireGuyLemire USMember ✭✭

    I am having the same issue, I added 2 devices to the Apple ID and updated the provisioning profiles, opened XCode and downloaded the new provisioning profiles and I still cannot install the app on the new device, I haven't tried an old one, but those are working fine. I have included what I think is the error, let me know if there is anything else you need:
    Mar 8 10:50:45 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:45 Fortress-iPod-12 atc(AirTrafficDevice)[36] : 227 bytes available

    Mar 8 10:50:45 Fortress-iPod-12 atc(AirTrafficDevice)[36] : <--- [FileComplete Request. id=5, Session=5, params={
    AssetID = "fortresstechnology.Tracking";
    AssetPath = "FTI Production Tracking .ipa";
    Dataclass = Application;
    }]

    Mar 8 10:50:45 Fortress-iPod-12 atc(AirTrafficDevice)[36] : Matched 1 assets: (
    "[Sync Download, Application, id=fortresstechnology.Tracking, var={Version=2.0, AssetParts=1}, path=(null), pid=0, bypassStore=0, prioritized=0, foreground=0, installOnly=0, \134"FTI Production Tracking\134"]"
    )

    Mar 8 10:50:45 Fortress-iPod-12 atc(ATFoundation)[36] : Completed [Sync Download, Application, id=fortresstechnology.Tracking, "FTI Production Tracking"] with error: (null)

    Mar 8 10:50:45 Fortress-iPod-12 atc(MobileCoreServices)[36] : installPhaseFinishedForProgress: - called, removing progress from cache

    Mar 8 10:50:45 Fortress-iPod-12 atc(MobileInstallation)[36] : ::0:Success:

    Mar 8 10:50:45 Fortress-iPod-12 SpringBoard(FrontBoard)[53] : Added app termination assertion for pid:36 -

    Mar 8 10:50:45 Fortress-iPod-12 atc(MobileInstallation)[36] : :InstallApplication:1:Success:

    Mar 8 10:50:45 Fortress-iPod-12 atc(MobileInstallation)[36] : :InstallProgress:0:Success:

    Mar 8 10:50:45 Fortress-iPod-12 lsd(MobileInstallation)[78] : :LSInstallProgress:3:Success:

    Mar 8 10:50:45 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:45 Fortress-iPod-12 lsd(MobileInstallation)[78] : :LSInstallProgress:1:Success:

    Mar 8 10:50:45 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:45 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:45 Fortress-iPod-12 lsd(MobileInstallation)[78] : :LSInstallProgress:2:Success:

    Mar 8 10:50:45 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:45 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:45 Fortress-iPod-12 installd(MobileSystemServices)[45] : 0x16e193000 -[MIClientConnection _doInstallationForURL:withOptions:completion:]: Install of "/var/mobile/Media/PublicStaging/FTI Production Tracking .ipa" type Customer (LSInstallType = (null)) requested by atc (pid 36)

    Mar 8 10:50:46 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:46 Fortress-iPod-12 SpringBoard(FrontBoard)[53] : Added app termination assertion for pid:45 -

    Mar 8 10:50:46 Fortress-iPod-12 installd(MobileSystemServices)[45] : 0x16e193000 -[MIInstaller performInstallationWithError:]: Installing

    Mar 8 10:50:46 Fortress-iPod-12 installd(MobileInstallation)[45] : :Install (New):0:Success:Begin

    Mar 8 10:50:46 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:46 Fortress-iPod-12 misagent(Security)[109] : could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneProvisioningProfileSigning not true

    Mar 8 10:50:46 Fortress-iPod-12 misagent[109] : attempt to install invalid profile: 0xe8008012

    Mar 8 10:50:46 Fortress-iPod-12 installd(MobileSystemServices)[45] : 0x16e193000 -[MIExecutableBundle installEmbeddedProvisioningProfileWithProgress:]: Could not install embedded profile: 0xe8008012 (This provisioning profile cannot be installed on this device.)

    Mar 8 10:50:46 Fortress-iPod-12 SpringBoard[53] : Updated:

    Mar 8 10:50:46 Fortress-iPod-12 installd(Security)[45] : could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneApplicationSigning not true

    Mar 8 10:50:46 Fortress-iPod-12 securityd[95] : cert[0]: SubjectCommonName =(leaf)[]> 0

    Mar 8 10:50:46 Fortress-iPod-12 securityd[95] : cert[0]: CheckLeafMarkerOid =(leaf)[]> 0

    Mar 8 10:50:46 Fortress-iPod-12 securityd[95] : cert[0]: IssuerCommonName =(path)[]> 0

    Mar 8 10:50:46 Fortress-iPod-12 installd(Security)[45] : [leaf CheckLeafMarkerOid IssuerCommonName SubjectCommonName]

    Mar 8 10:50:46 Fortress-iPod-12 atc(AirTrafficDevice)[36] : ATWorkspaceObserver -- Installs changed [Applications: 1] [Delegate: ]

    Mar 8 10:50:46 Fortress-iPod-12 locationd[59] : message 'kCLConnectionMessageWatchdog' received from client '/System/Library/LocationBundles/TimeZone.bundle'

    Mar 8 10:50:47 Fortress-iPod-12 installd(libmis.dylib)[45] : CreateMISAuthListWithStream: open stream failed (may be non-existing)

    Mar 8 10:50:47 Fortress-iPod-12 installd(libmis.dylib)[45] : CreateMISAuthListWithStream: creating empty auth list

    Mar 8 10:50:47 Fortress-iPod-12 installd(MobileSystemServices)[45] : 0x16e193000 +[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:]: 147: Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.IUVBT8/extracted/Payload/TrackingiOS.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)

  • TedRogersTedRogers USMember ✭✭✭✭

    I would try removing your provisioning profiles and re-download. Lately, I have been using the drag and drop to the Xcode app icon to make sure they get downloaded as the Xcode account manager seems a bit dodgy.

    Also, open up your provisioning profile in a text editor. You should be able to see your device UDID there.

    Of course, do a clean all in Xamarin studio and make sure the proper pp is selected for your app. Sometimes, it can end up pointing to a previous pp.

  • GuyLemireGuyLemire USMember ✭✭

    @TedRogers
    If I knew it would be this much trouble adding a few devices, I would not have done it, I would like to see a better way to add devices, this is asking a lot of time just to expand.
    You have helped me a lot.
    Thank you

  • TedRogersTedRogers USMember ✭✭✭✭

    @GuyLemire If you switch to using TestFlight for distributing builds to friendlies, then you don't have to worry about devices. Or if you are making an enterprise app, you don't need to worry about devices either.

    Otherwise, I would say, you get used to it! :smiley:

  • GuyLemireGuyLemire USMember ✭✭

    @TedRogers At this time we are at the beginning stage of the app, I do thank you for your advice, I will put these suggestions into the project planning.

  • TedRogersTedRogers USMember ✭✭✭✭

    @GuyLemire I don't make ad hocs build anymore for my clients. I only use TestFlight. Two reasons I like TestFlight:

    1. Don't worry about devices!
    2. Submit the exact same build you are testing to the App Store.

    Ted

  • MarlonRibeiroMarlonRibeiro USMember ✭✭✭

    @JohnMiller Could you please take a look at this log?
    I'm facing the same issue and I have no idea what's going on.
    I've replaced my bundle id with

    Jun 12 14:13:12 iPhone-de-Tatiane atc(Apps)[31] : |Finished install for
    Jun 12 14:13:12 iPhone-de-Tatiane atc(Apps)[31] : |Notifying SB we are done syncing
    Jun 12 14:13:12 iPhone-de-Tatiane accountsd(AccountsDaemon)[87] : "Idle-exit-preventing transaction ended!"
    Jun 12 14:13:12 iPhone-de-Tatiane securityd[96] : cert[0]: NonEmptySubject =(leaf)[]> 0
    Jun 12 14:13:12 iPhone-de-Tatiane securityd[96] : cert[0]: AnchorTrusted =(leaf)[force]> 0
    Jun 12 14:13:13 iPhone-de-Tatiane apsd(CFNetwork)[82] : TIC TCP Conn Cancel [23:0x14e9ee60]
    Jun 12 14:13:13 iPhone-de-Tatiane homed(MobileCoreServices)[137] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane iaptransportd(MobileCoreServices)[28] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane atc(MobileCoreServices)[31] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane BTServer(MobileCoreServices)[70] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(MobileInstallation)[49] : :Uninstall:0:Success:
    Jun 12 14:13:13 iPhone-de-Tatiane nsurlsessiond(MobileCoreServices)[110] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane apsd(MobileCoreServices)[82] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane profiled(MobileCoreServices)[119] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane routined(MobileCoreServices)[37] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane routined(libcoreroutine.dylib)[37] : removing application proxy, (null)
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane UserEventAgent(MobileCoreServices)[22] : LaunchServices observer: Uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 12 14:13:13 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 12 14:13:13 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(MobileInstallation)[49] : :Uninstall:0:Success:
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(MobileInstallation)[49] : :Uninstall:0:Success:
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(UserNotificationsServer)[49] : [] Application uninstalled
    Jun 12 14:13:13 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(UserNotificationsServer)[49] : [] Remove data provider
    Jun 12 14:13:13 iPhone-de-Tatiane SpringBoard(UserNotificationsServer)[49] : Removing all attachments for bundle ''

  • MarlonRibeiroMarlonRibeiro USMember ✭✭✭

    @JohnMiller Sorry, this is my log:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileInstallation)[31] : :LSInstallNotifications:1:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileInstallation)[31] : ::4:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(Apps)[31] : |com.personaliza.sage-clube-do-contador install failed unrecoverably: Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.6eaBvR/extracted/Payload/SageAppPCLiOS.app : 0xe8008016 (The executable was signed with invalid entitlements.)" UserInfo={LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.6eaBvR/extracted/Payload/SageAppPCLiOS.app : 0xe8008016 (The executable was signed with invalid entitlements.), SourceFileLine=147}
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileInstallation)[31] : :iCloud restore:0:Fail:install failed unrecoverably
    Jun 13 17:13:28 iPhone-de-Tatiane atc(Apps)[31] : |Changing com.personaliza.sage-clube-do-contador from DOWNLOADED to FAILED
    Jun 13 17:13:28 iPhone-de-Tatiane homed(MobileCoreServices)[137] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane nsurlsessiond(MobileCoreServices)[110] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane iaptransportd(MobileCoreServices)[28] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane BTServer(MobileCoreServices)[70] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileCoreServices)[31] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileInstallation)[31] : :UninstallApplication:1:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(MobileCoreServices)[82] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileInstallation)[31] : :
    :3:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileCoreServices)[31] : LaunchServices: process does not have access to com.apple.lsd.installation service name. Setting connection to nil
    Jun 13 17:13:28 iPhone-de-Tatiane profiled(MobileCoreServices)[119] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane SpringBoard(FrontBoard)[49] : Applications did fail to install: (
    " com.personaliza.sage-clube-do-contador (null) <com.personaliza.sage-clube-do-contador > {AF27F22C-1B2E-4774-A376-3F04DE72F2CC 640}"
    ) (appInfos: (null))
    Jun 13 17:13:28 iPhone-de-Tatiane routined(MobileCoreServices)[37] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane UserEventAgent(MobileCoreServices)[22] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane passd(MobileCoreServices)[689] : LaunchServices observer: Apps Failed be installed:
    Jun 13 17:13:28 iPhone-de-Tatiane iaptransportd(MobileCoreServices)[28] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane homed(MobileCoreServices)[137] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane BTServer(MobileCoreServices)[70] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane atc(MobileCoreServices)[31] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(MobileCoreServices)[82] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane nsurlsessiond(MobileCoreServices)[110] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane profiled(MobileCoreServices)[119] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane routined(MobileCoreServices)[37] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane UserEventAgent(MobileCoreServices)[22] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:0:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane passd(MobileCoreServices)[689] : LaunchServices observer: Will uninstall
    Jun 13 17:13:28 iPhone-de-Tatiane installd(MobileSystemServices)[901] : 0x19138000 -[MIClientConnection uninstallIdentifiers:withOptions:completion:]: Uninstall requested by lsd (pid 78) for identifier com.personaliza.sage-clube-do-contador with options: (null)
    Jun 13 17:13:28 iPhone-de-Tatiane installd(MobileInstallation)[901] : :Uninstall (Application):0:Success:Begin
    Jun 13 17:13:28 iPhone-de-Tatiane installd(MobileSystemServices)[901] : 0x19138000 -[MIUninstaller uninstallBundleWithIdentifier:error:]: Uninstalling identifier com.personaliza.sage-clube-do-contador
    Jun 13 17:13:28 iPhone-de-Tatiane installd(MobileSystemServices)[901] : 0x19138000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.personaliza.sage-clube-do-contador at /private/var/containers/Bundle/Application/BBCD69B6-CBD5-40BD-90E8-0659A844CB7F
    Jun 13 17:13:28 iPhone-de-Tatiane installd(MobileSystemServices)[901] : 0x19138000 -[MIUninstallNotifier performRemovalWithCompletionBlock:]: Destroying container with identifier com.personaliza.sage-clube-do-contador at /private/var/mobile/Containers/Data/Application/5D4A2DDE-C597-4AE0-8111-E284696750A3
    Jun 13 17:13:28 iPhone-de-Tatiane installd(MobileInstallation)[901] : :Uninstall (Application):0:Success:End
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:1:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:3:Fail:
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : LaunchServices: unregistering app
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:0:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:1:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Asking to clear identifiers for vendor /bundle
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:2:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:3:Fail:
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:4:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane searchd[167] : Received "com.apple.distnoted.matching" notification for keyName:
    Jun 13 17:13:28 iPhone-de-Tatiane searchd[167] : Received a notification for name:"", userInfo:, bundleIDs:
    Jun 13 17:13:28 iPhone-de-Tatiane atc(AirTrafficDevice)[31] : ATWorkspaceObserver -- Installs changed [Applications: 1] [Delegate: ]
    Jun 13 17:13:28 iPhone-de-Tatiane lsd(MobileInstallation)[78] : :UninstallApplication:3:Success:
    Jun 13 17:13:28 iPhone-de-Tatiane networkserviceproxy[111] : UUID cache changed
    Jun 13 17:13:28 iPhone-de-Tatiane videosubscriptionsd[964] : Received distnoted matching event.
    Jun 13 17:13:28 iPhone-de-Tatiane nesessionmanager(NetworkExtension)[116] : NESMPathControllerSession[com.apple.commcenter.ne.cellularusage:93BAFDA5-2C9A-4E9A-84B2-82DF4D42C08E]: Skip a start command from nehelper[86]: session in state connected
    Jun 13 17:13:28 iPhone-de-Tatiane networkserviceproxy[111] : : NSPFlowDivert: app rule for is disabled by ratio
    Jun 13 17:13:28 iPhone-de-Tatiane networkserviceproxy[111] : : NSPFlowDivert: app rule for is disabled
    Jun 13 17:13:28 iPhone-de-Tatiane callservicesd[106] : Launched by application uninstalled notification
    Jun 13 17:13:28 iPhone-de-Tatiane callservicesd[106] : Handling
    Jun 13 17:13:28 iPhone-de-Tatiane callservicesd[106] : Unregistering application in environment (null)
    Jun 13 17:13:28 iPhone-de-Tatiane callservicesd[106] : [WARN] No APS connection found for environment (null)
    Jun 13 17:13:28 iPhone-de-Tatiane callservicesd[106] : Disabling topic and invalidating its token for all connections
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: Looking up connection on peer: 14ddd380 found
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: Looking up connection on peer: 14ddd380 found
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: asked by to invalidate token for topic com.personaliza.sage-clube-do-contador.voip identifier
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: Deleting token for appSpecificIdentifier ,5c42ffffffaaffffffe4ffffffff6d525effffffa6047bffffffabffffffc4226affffffe0ffffffedffffff83ffffffc41d
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: setTokenForDomain push.apple.com token (null) appSpecificIdentifier ,5c42ffffffaaffffffe4ffffffff6d525effffffa6047bffffffabffffffc4226affffffe0ffffffedffffff83ffffffc41d
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : SecDbBeginTransaction kSecDbExclusiveTransactionType 0x16e3ca50
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : SecDbEndTransaction kSecDbTransactionDidRollback 0x16e3ca50
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: SecItemDelete() failed: -25300 - setTokenForDomain
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: Looking up connection on peer: 14e69c20 found
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: Looking up connection on peer: 14e69c20 found
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: asked by to invalidate token for topic com.personaliza.sage-clube-do-contador.voip identifier
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: Deleting token for appSpecificIdentifier ,5c42ffffffaaffffffe4ffffffff6d525effffffa6047bffffffabffffffc4226affffffe0ffffffedffffff83ffffffc41d
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: setTokenForDomain sandbox.push.apple.com token (null) appSpecificIdentifier ,5c42ffffffaaffffffe4ffffffff6d525effffffa6047bffffffabffffffc4226affffffe0ffffffedffffff83ffffffc41d
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : SecDbBeginTransaction kSecDbExclusiveTransactionType 0x16e3ca50
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : SecDbEndTransaction kSecDbTransactionDidRollback 0x16e3ca50
    Jun 13 17:13:28 iPhone-de-Tatiane apsd(PersistentConnection)[82] : 2017-06-13 17:13:28 -0300 apsd[82]: SecItemDelete() failed: -25300 - setTokenForDomain
    Jun 13 17:13:28 iPhone-de-Tatiane healthd(HealthDaemon)[709] : Received distnoted notification ""
    Jun 13 17:13:28 iPhone-de-Tatiane healthd(HealthDaemon)[709] : Ignoring LaunchServices notification for placeholder
    Jun 13 17:13:28 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices: failed to find bundle record for { 641}
    Jun 13 17:13:28 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices: failed to find bundle record for { 641}
    Jun 13 17:13:28 iPhone-de-Tatiane itunesstored(iTunesStore)[89] : Noticed software map change, invalidating map
    Jun 13 17:13:28 iPhone-de-Tatiane appstored(iTunesStore)[127] : Noticed software map change, invalidating map
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : cert[0]: NonEmptySubject =(leaf)[]> 0
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : cert[0]: AnchorTrusted =(leaf)[force]> 0
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : cert[0]: NonEmptySubject =(leaf)[]> 0
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : cert[0]: AnchorTrusted =(leaf)[force]> 0
    Jun 13 17:13:28 iPhone-de-Tatiane locationd[67] : message 'kCLConnectionMessageWatchdog' received from client '/System/Library/LocationBundles/WifiCalling.bundle'
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : cert[0]: NonEmptySubject =(leaf)[]> 0
    Jun 13 17:13:28 iPhone-de-Tatiane securityd[96] : cert[0]: AnchorTrusted =(leaf)[force]> 0
    Jun 13 17:13:29 iPhone-de-Tatiane securityd[96] : cert[0]: NonEmptySubject =(leaf)[]> 0
    Jun 13 17:13:29 iPhone-de-Tatiane securityd[96] : cert[0]: AnchorTrusted =(leaf)[force]> 0
    Jun 13 17:13:29 iPhone-de-Tatiane atc(MobileInstallation)[31] : :
    :3:Success:
    Jun 13 17:13:29 iPhone-de-Tatiane atc(MobileInstallation)[31] : :LSInstallNotifications:1:Success:
    Jun 13 17:13:29 iPhone-de-Tatiane atc(MobileInstallation)[31] : :LSInstallNotifications:1:Success:
    Jun 13 17:13:29 iPhone-de-Tatiane atc(MobileInstallation)[31] : :_:4:Success:
    Jun 13 17:13:29 iPhone-de-Tatiane atc(MobileInstallation)[31] : :iCloud restore:0:Success:placeholder removed
    Jun 13 17:13:29 iPhone-de-Tatiane atc(Apps)[31] : |Finished install for com.personaliza.sage-clube-do-contador
    Jun 13 17:13:29 iPhone-de-Tatiane atc(Apps)[31] : |Notifying SB we are done syncing
    Jun 13 17:13:30 iPhone-de-Tatiane homed(MobileCoreServices)[137] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane iaptransportd(MobileCoreServices)[28] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane atc(MobileCoreServices)[31] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane BTServer(MobileCoreServices)[70] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(MobileInstallation)[49] : :Uninstall:0:Success:
    Jun 13 17:13:30 iPhone-de-Tatiane nsurlsessiond(MobileCoreServices)[110] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane apsd(MobileCoreServices)[82] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(MobileCoreServices)[49] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 13 17:13:30 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 13 17:13:30 iPhone-de-Tatiane UserEventAgent(MobileCoreServices)[22] : LaunchServices observer: Uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(MobileInstallation)[49] : :Uninstall:0:Success:
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(MobileInstallation)[49] : :Uninstall:0:Success:
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(UserNotificationsServer)[49] : [com.personaliza.sage-clube-do-contador] Application uninstalled
    Jun 13 17:13:30 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 13 17:13:30 iPhone-de-Tatiane lsd(MobileCoreServices)[78] : Cannot get localizedName for bundle (null)
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(UserNotificationsServer)[49] : [com.personaliza.sage-clube-do-contador] Remove data provider
    Jun 13 17:13:30 iPhone-de-Tatiane SpringBoard(UserNotificationsServer)[49] : Removing all attachments for bundle ''

  • lcocealcocea USMember
    edited June 13
    Here is what works for me:

    a) Do your provisioning profile and bundle identifier/app ID stuff in the Member Center at the Apple web site. Make sure you add the test device (UDID) to the list of devices the generated provisioning profile is enabled for.
    b) Launch Xcode and create a dummy app with the bundle identifier defined above. Build it once for the test device (make sure you choose the right development team): Xcode will download/install the provisioning profile for you. Close Xcode.
    - Create your app project in Xamarin.iOS/Visual Studio for Mac using the bundle identifier above. You should now be able to successfully build and install it to the test device.
  • MarlonRibeiroMarlonRibeiro USMember ✭✭✭

    @lcocea I did it! It used to work well, but it started to happen when I implemented Push Notifications on my app.

  • MarlonRibeiroMarlonRibeiro USMember ✭✭✭

    I've found someone with the same problem, and I could fixed it!
    I noticed there was a problem in my Entitlements.plist in the logs:

    Jun 13 17:13:28 iPhone-de-Tatiane atc(Apps)[31] : |com.personaliza.sage-clube-do-contador install failed unrecoverably: Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.6eaBvR/extracted/Payload/SageAppPCLiOS.app : 0xe8008016 (The executable was signed with invalid entitlements.)" UserInfo={LibMISErrorNumber=-402620394, LegacyErrorString=ApplicationVerificationFailed, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], NSLocalizedDescription=Failed to verify code signature of /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.6eaBvR/extracted/Payload/SageAppPCLiOS.app : 0xe8008016 (The executable was signed with invalid entitlements.), SourceFileLine=147}

    So, the only thing I did was changing my aps-environment string from "development" to "production".
    Hope it helps you!

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    @MarlonRibeiro,

    Sorry for the delay! Looks like you found the issue.

  • PrashanthNaikPrashanthNaik USMember

    If you're using an Ad-Hoc provisioning profile, all your device UUID's should be present in the profile. Check do you want an AdHoc profile or you want to have an In-House profile. This worked for me by changing to In-House.

Sign In or Register to comment.