can't install on iphone

Hi,

I’ve run out of ideas to get my app onto my iphone.  I’ve done this before but can’t get it working this time.

I’ve added the devices UUID to the provisioning profile

If I hook it up to XCode, then the provisioning profile that I’m using shows up under the phone as a valid profile.

This is what I’m getting in the console when I try to install from ITunes:

Mar  3 09:33:35 Natalies-iPhone installd[62] <Notice>: 0x241000 handle_install_for_ls: Install of “/var/mobile/Media/PublicStaging/TheBestCricketGameEver.ipa” requested by atc
Mar  3 09:33:35 Natalies-iPhone installd[62] <Notice>: 0x241000 MobileInstallationInstall_Server: Installing app com.sportspunter.cricket
Mar  3 09:33:35 Natalies-iPhone installd[62] <Error>: 0x241000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.MMNucf/foo_extracted/Payload/TheBestCricketGameEver.app/TheBestCricketGameEver: 0xe800801c
Mar  3 09:33:35 Natalies-iPhone installd[62] <Error>: 0x241000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.MMNucf/foo_extracted/Payload/TheBestCricketGameEver.app
Mar  3 09:33:35 Natalies-iPhone installd[62] <Error>: 0x241000 install_application: Could not preflight application install
Mar  3 09:33:35 Natalies-iPhone atc[593] <Error>: 0x1c2c000 MobileInstallationInstallForLaunchServices: failed with -1
Mar  3 09:33:35 Natalies-iPhone atc[593] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Mar  3 09:33:35 Natalies-iPhone lsd[76] <Warning>: LaunchServices: installation failed for app com.sportspunter.cricket
Mar  3 09:33:35 Natalies-iPhone atc[593] <Warning>: LaunchServices: installPhaseFinishedForProgress: com.sportspunter.cricket.Installing - <NSProgress: phase=Installing; state=Failed; fractionCompleted=0.000000> called, removing progress from cache

Is it possible to pinpoint what the problem is from this log?

thanks

It says it can’t verify the executable which could mean a signing issue.  Can you please try to use Xcode’s Organizer to install the app?  Generally I find the messages from it more meaningful that iTunes.

Rob

hi rob,

i can’t work out how to install using the xcode organiser.

If I click on Applications under the device, then the Add+ icon is greyed out.  If I try to drag the app into either frame, it’s just not possible. 

I tried googling why this is but couln’t find anything.   Any suggestions?

thanks

You might have to click on your device in the side bar and bring up it’s info pane.  There may be a button there that says something like “Use this device for development”. 

You may have to click that first.

Rob

Hi Rob,

I’ve added it for development.  Still got the same problem.

I also closed and reopened xcode, still the same problem …

actually i just tried again and it’s working now…

Can you click on “Console” and see the console log?

Okay if I try to add the app i get a simple error message “No code signature found”

the console says …

ar  3 12:47:59 Natalies-iPhone awdd[210] <Error>: CoreLocation: CLClient is deprecated. Will be obsolete soon.
Mar  3 12:48:03 Natalies-iPhone mobile_installation_proxy[102] <Warning>: LaunchServices: Please include the kCFBundleIdentifierKey in the options dictionary when installing an app.
Mar  3 12:48:03 Natalies-iPhone mobile_installation_proxy[102] <Warning>: LaunchServices: installing app for existing placeholder (null)
Mar  3 12:48:03 Natalies-iPhone installd[62] <Notice>: 0x255000 handle_install_for_ls: Install of “/var/mobile/Media/PublicStaging/TheBestCricketGameEverMarch2.app” requested by mobile_installation_proxy
Mar  3 12:48:03 Natalies-iPhone installd[62] <Notice>: 0x255000 MobileInstallationInstall_Server: Installing app com.sportspunter.cricket
Mar  3 12:48:03 Natalies-iPhone installd[62] <Error>: 0x255000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.tnRbBB/TheBestCricketGameEverMarch2.app/TheBestCricketGameEverMarch2: 0xe800801c
Mar  3 12:48:03 Natalies-iPhone installd[62] <Error>: 0x255000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.tnRbBB/TheBestCricketGameEverMarch2.app
Mar  3 12:48:03 Natalies-iPhone installd[62] <Error>: 0x255000 install_application: Could not preflight application install
Mar  3 12:48:03 Natalies-iPhone mobile_installation_proxy[102] <Error>: 0x345000 MobileInstallationInstallForLaunchServices: failed with -1
Mar  3 12:48:03 Natalies-iPhone mobile_installation_proxy[102] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Mar  3 12:48:03 Natalies-iPhone mobile_installation_proxy[102] <Error>: 0x345000 handle_install: Installation failed: Error Domain=LaunchServicesError Code=0 “The operation couldn’t be completed. (LaunchServicesError error 0.)” UserInfo=0x17d46e70 {Error=ApplicationVerificationFailed, ErrorDetail=-402620388}
Mar  3 12:48:03 Natalies-iPhone installd[62] <Error>: 0x255000 handle_install_for_ls: API failed
 

Can you take a screen shot of your build screen before  you hit the build button?  Also your build.settings file could be useful.

build screen shot attached

build.settings

settings =
{

    iphone = {
        plist = {

            UIApplicationExitsOnSuspend = false,

            FacebookAppID = “188128428059002”,  --replace XXXXXXXXXX with your Facebook App ID

            CFBundleURLTypes = {
                {
                CFBundleURLSchemes = { “fb188128428059002”, }  --replace XXXXXXXXXX with your Facebook App ID
                }
            },
            
            [“URL types”] = {
                item = {
                    [“URL Schemes”] =
                        { [“Item 0”] = “fb188128428059002” },  --replace XXXXXXXXXX with your Facebook App ID
                },
            },            
        }
    },
    
    android =
    {
    versionCode = “1”,
    installLocation=“preferExternal”
    },

    androidPermissions =
    {
       “android.permission.READ_PHONE_STATE”,
       “android.permission.ACCESS_NETWORK_STATE”,
       “android.permission.VIBRATE”,
       “android.permission.INTERNET”,
        “android.permission.ACCESS_WIFI_STATE”,    
        “android.permission.ACCESS_FINE_LOCATION”,
        “android.permission.ACCESS_COARSE_LOCATION”,
        “com.android.vending.CHECK_LICENSE”,
        “com.android.vending.BILLING”,
        },

    plugins =
    {
      --key is the name passed to Lua’s ‘require()’
     [“CoronaProvider.native.popup.social”] =
      {
        --required
        publisherId = “com.coronalabs”, – don’t change, is’t the publisher of the plugin
      },
      
      
        – key is the name passed to Lua’s ‘require()’
        [“CoronaProvider.ads.admob”] =
        {
            – required
            publisherId = “com.coronalabs”, – don’t change, it’s the publisher of the plugin
        },
        
        – key is the name passed to Lua’s ‘require()’
        [“CoronaProvider.ads.vungle”] =
        {
            – required
            publisherId = “com.vungle”,
        },
        
    },

  orientation =
    {
        default = “portrait”,
        supported =
        {
        “portrait”,
        },
                    
    },
    

}
  

hope i didn’t confuse you with the screen shot.  I tried to build twice - once with an ad hoc distribution profile, and once with a development profile.  They both had the same result

thx

Is there anything in the Corona terminal build log that might be of interest?

here are the interesting looking bits:

sing additional build settings from: /Users/MacKirk/Dropbox/Best Cricket Pro Graphics/build.settings
WARNING: Your SDK may be out of date b/c the following SDK directory could not be found:    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk
WARNING: Using the following SDK instead:     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk
WARNING: Your SDK may be out of date b/c the following SDK directory could not be found:    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk
WARNING: Using the following SDK instead:     /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk
Created XCENT: /var/folders/3n/_x6qhr1n2xg13tfn2rykb0cm0000gn/T/1393819096/entitlements.xcent
2014-03-03 13:58:45.025 defaults[15202:f07]
Domain (/Users/MacKirk/Dropbox/TheBestCricketGameEverMar2.app/Info) not found.
Defaults have not been changed.
2014-03-03 13:58:45.044 defaults[15203:f07]
Domain (/Users/MacKirk/Dropbox/TheBestCricketGameEverMar2.app/Info) not found.
Defaults have not been changed.
 

iPhone Developer: Daniel Kirk (45L778PUPR): ambiguous (matches “iPhone Developer: Daniel Kirk (45L778PUPR)” and “iPhone Developer: Daniel Kirk (45L778PUPR)” in /Users/MacKirk/Library/Keychains/login.keychain)
2014-03-03 13:58:53.469 Corona Simulator[15161:707] validationTool: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/Validation

okay so i’ve deleted the duplicate entry in the key chain, and voila, i’ve got an app on my device!

thx heaps Rob, I’ll owe you a beer or two when my app goes viral

hi again Rob, I was wondering if those SDK errors are going to give me any headaches?

eg

WARNING: Using the following SDK instead:   
 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk

I’m running the latest version I downloaded just yesterday or the day before… Version 2013.2100
 

thanks

Those SDK errors are harmless and have been supposedly have been fixed or are being fixed.  2100 is not the latest daily build.  It’s the latest public build.  The current daily build is 2187.  http://developer.coronalabs.com/downloads/daily-builds

Rob

It says it can’t verify the executable which could mean a signing issue.  Can you please try to use Xcode’s Organizer to install the app?  Generally I find the messages from it more meaningful that iTunes.

Rob

hi rob,

i can’t work out how to install using the xcode organiser.

If I click on Applications under the device, then the Add+ icon is greyed out.  If I try to drag the app into either frame, it’s just not possible. 

I tried googling why this is but couln’t find anything.   Any suggestions?

thanks