Run app on iOS device "The applicaton does not have a valid signature"

I am an iOS developer. I have submitted a few apps to App Store. But I am newbie in Corona.

Mac os : 10.10.1 (Yosemite)

Xcode : 6.1.1

I have created the following

a. APP ID : com.mycompany.myapp

b. Provisioning profile for development and distribution

c. Corona Simulator : 2014.2511

In Corona Simulator, I select “build for device”. Myapp.app is successfully built.

I want to run this app in my iPad. And I got an error message “The applicaton does not have a valid signature” when I add myapp.app in Xcode > device

I have tried to use provisioning profile for development and distribution. Same error messages are obtained.

What is problem of my signature ?  Do I need to specify my bundle identifier of my app ?

Thanks

Is your distribution profile an “AdHoc” or a “For the store” profile? 

Did you add your Device to the developer’s provisioning portal?

Did you make sure to add your device to the the profile itself, download it, install it in ~/Library/MobileDevice/Provisioning Profiles/ folder?  Restart Corona after doing that?

Corona should grab your Bundle ID and such from the profile…

Rob

The distribution profile is “For the store”

I have added my device to the developer’s provisioning portal

If I build Xcode app using bundle identifier “com.mycompany.myapp”, I can debug it in my iPad and submit it to App store. That means all the profiles are installed correctly.

For using Corona,  I still got an error message “The applicaton does not have a valid signature” when I add myapp.app in Xcode > device after restarting Corona.

Below is the error log in XCode > device

================================

Dec 13 14:57:08 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:08 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:08 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:08 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:08 de-iPad streaming_zip_conduit[2236] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x16d2fbd0> myapp
Dec 13 14:57:08 de-iPad streaming_zip_conduit[2236] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x16d2fbd0> myapp since it is not a placeholder.
Dec 13 14:57:08 de-iPad installd[2211] <Notice>: 0x3c3000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of “/var/mobile/Media/PublicStaging/myapp.app” type Developer requested by streaming_zip_conduit (pid 2236)
Dec 13 14:57:09 de-iPad installd[2211] <Notice>: 0x3c3000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=myapp; Version=2014.12.131454, ShortVersion=1.0>
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 13 14:57:09 de-iPad profiled[84] <Notice>: (Note ) MC: Provisioning profiles changed
Dec 13 14:57:09 de-iPad installd[2211] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Dec 13 14:57:09 de-iPad installd[2211] <Error>: 0x3c3000 -[MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid)
Dec 13 14:57:09 de-iPad installd[2211] <Error>: 0x3c3000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Dec 13 14:57:09 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:09 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:09 de-iPad streaming_zip_conduit[2236] <Error>: 0x1b5b000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 “Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid)” UserInfo=0x16e4a450 {LibMISErrorNumber=-402620391, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid), SourceFileLine=186}
Dec 13 14:57:09 de-iPad streaming_zip_conduit[2236] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Dec 13 14:57:09 de-iPad streaming_zip_conduit[2236] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/myapp.app/ : Error Domain=LaunchServicesError Code=0 “The operation couldn’t be completed. (LaunchServicesError error 0.)” UserInfo=0x16e4a540 {Error=ApplicationVerificationFailed, ErrorDetail=-402620391, ErrorDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid)}
Dec 13 14:57:09 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:09 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:09 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
 

I have no idea. Any suggestion ?

Can you post a screen shot of your Corona SDK build screen just before you press the “build” button.  Please do not blur out any fields.

Common causes:

UTF8 characters in the project name

Spaces in the project name

A folder icon on the project folder

A folder in your project named “res” or “resources”

Outputting your build to the project folder.

In 2511 we should be catching most of thesee.

Rob

I create another project with app id : com.peterhohsy.mygame and its provisioning profiles.

But I still got an error message “The applicaton does not have a valid signature” when I add myapp.app in Xcode > device after restarting Corona.

corona_build.jpg

You cannot directly put an app built with a distribution for the store profile on a device.  It can only be sent to iTunes connect.   If you want to put a distribution profile built app on a device directly, you have to use an “AdHoc” profile.  

Rob

I have created “AdHoc” profile and re-build it. But it still fails

corona_build2.png

Below is the error log in XCode > device

================================

Dec 14 11:28:12 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:12 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:12 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:12 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:12 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x16d78e50> com.peterhohsy.mygame
Dec 14 11:28:12 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x16d78e50> com.peterhohsy.mygame since it is not a placeholder.
Dec 14 11:28:12 Siu-Yuens-iPad installd[37] <Notice>: 0x443000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of “/var/mobile/Media/PublicStaging/mygame.app” type Developer requested by streaming_zip_conduit (pid 216)
Dec 14 11:28:12 Siu-Yuens-iPad installd[37] <Notice>: 0x443000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.peterhohsy.mygame; Version=2014.12.141135, ShortVersion=1.0>
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 14 11:28:13 Siu-Yuens-iPad profiled[76] <Notice>: (Note ) MC: Provisioning profiles changed
Dec 14 11:28:13 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:13 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:13 Siu-Yuens-iPad installd[37] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Dec 14 11:28:13 Siu-Yuens-iPad installd[37] <Error>: 0x443000 -[MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid)
Dec 14 11:28:13 Siu-Yuens-iPad installd[37] <Error>: 0x443000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Dec 14 11:28:13 Siu-Yuens-iPad streaming_zip_conduit[216] <Error>: 0x425000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 “Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid)” UserInfo=0x16d7b0c0 {LibMISErrorNumber=-402620391, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid), SourceFileLine=186}
Dec 14 11:28:13 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Dec 14 11:28:13 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/mygame.app/ : Error Domain=LaunchServicesError Code=0 “The operation couldn’t be completed. (LaunchServicesError error 0.)” UserInfo=0x16d72fc0 {Error=ApplicationVerificationFailed, ErrorDetail=-402620391, ErrorDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid)}
Dec 14 11:28:13 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:13 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:13 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:13 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument

Any suggestions ?

Thanks !

Can you post your build.settings file?

Here it is  :


– For more information on build.settings see the Corona SDK Build Guide at:
http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings =
{
    
    orientation =
    {
        – Supported values for orientation:
        – portrait, portraitUpsideDown, landscapeLeft, landscapeRight

        default = “portrait”,
        supported = { “portrait”, }
    },
    
    excludeFiles =
    {
        – Include only the necessary icon files on each platform
        iphone = { “Icon-*dpi.png”, },
        android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },
    },

    –
    – iOS Section
    –
    iphone =
    {
        plist =
        {
            UIStatusBarHidden = false,
            UIPrerenderedIcon = true, – set to false for “shine” overlay
            --UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

            CFBundleIconFiles =
            {
                “Icon.png”,
                “Icon@2x.png”,
                “Icon-60.png”,
                “Icon-60@2x.png”,
                “Icon-60@3x.png”,
                “Icon-72.png”,
                “Icon-72@2x.png”,
                “Icon-76.png”,
                “Icon-76@2x.png”,
                “Icon-Small.png”,
                “Icon-Small@2x.png”,
                “Icon-Small@3x.png”,
                “Icon-Small-40.png”,
                “Icon-Small-40@2x.png”,
                “Icon-Small-50.png”,
                “Icon-Small-50@2x.png”,
            },

            --[[
            – iOS app URL schemes:
            CFBundleURLTypes =
            {
                {
                    CFBundleURLSchemes =
                    {
                        “fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId
                    }
                }
            }
            --]]
        }
    },
    
    –
    – Android Section
    –
    android =
    {
        usesPermissions =
        {
            “android.permission.INTERNET”,
        },
    },
}
 

Any update ?

Hi @peterho386,

At this point, I suggest that you step back and try to build/install one of the Corona sample apps like “Hello World”. This may help determine if it’s an issue with your provisioning/certificate/keychain, or something with the app that you were trying to install (your project). Please try the sample project located in your local Corona application directory:

CoronaSDK > SampleCode > GettingStarted > HelloWorld

Also, how are you specifically trying to install the app on your iPad? Via the Xcode Organizer, or through iTunes?

Brent

Dear Brent,

I have debug my ios app (obj-c) in my iPad via XCode.

I do not understand why Corona cannot handle my provisioning profiles correctly. But XCode can.

Finally, I decide to install a new Yosemite in an external harddisk. Then install XCode 6.1.1 and Corona Simulator : 2014.2511

After compilng mygame.lua, the mygame.app can be insalled in my iPad.

Thanks for your help !

Is your distribution profile an “AdHoc” or a “For the store” profile? 

Did you add your Device to the developer’s provisioning portal?

Did you make sure to add your device to the the profile itself, download it, install it in ~/Library/MobileDevice/Provisioning Profiles/ folder?  Restart Corona after doing that?

Corona should grab your Bundle ID and such from the profile…

Rob

The distribution profile is “For the store”

I have added my device to the developer’s provisioning portal

If I build Xcode app using bundle identifier “com.mycompany.myapp”, I can debug it in my iPad and submit it to App store. That means all the profiles are installed correctly.

For using Corona,  I still got an error message “The applicaton does not have a valid signature” when I add myapp.app in Xcode > device after restarting Corona.

Below is the error log in XCode > device

================================

Dec 13 14:57:08 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:08 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:08 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:08 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:08 de-iPad streaming_zip_conduit[2236] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x16d2fbd0> myapp
Dec 13 14:57:08 de-iPad streaming_zip_conduit[2236] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x16d2fbd0> myapp since it is not a placeholder.
Dec 13 14:57:08 de-iPad installd[2211] <Notice>: 0x3c3000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of “/var/mobile/Media/PublicStaging/myapp.app” type Developer requested by streaming_zip_conduit (pid 2236)
Dec 13 14:57:09 de-iPad installd[2211] <Notice>: 0x3c3000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=myapp; Version=2014.12.131454, ShortVersion=1.0>
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 13 14:57:09 de-iPad MobileStorageMounter[3265] <Error>: 0x3467a9dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 13 14:57:09 de-iPad profiled[84] <Notice>: (Note ) MC: Provisioning profiles changed
Dec 13 14:57:09 de-iPad installd[2211] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Dec 13 14:57:09 de-iPad installd[2211] <Error>: 0x3c3000 -[MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid)
Dec 13 14:57:09 de-iPad installd[2211] <Error>: 0x3c3000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Dec 13 14:57:09 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:09 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:09 de-iPad streaming_zip_conduit[2236] <Error>: 0x1b5b000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 “Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid)” UserInfo=0x16e4a450 {LibMISErrorNumber=-402620391, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid), SourceFileLine=186}
Dec 13 14:57:09 de-iPad streaming_zip_conduit[2236] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Dec 13 14:57:09 de-iPad streaming_zip_conduit[2236] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/myapp.app/ : Error Domain=LaunchServicesError Code=0 “The operation couldn’t be completed. (LaunchServicesError error 0.)” UserInfo=0x16e4a540 {Error=ApplicationVerificationFailed, ErrorDetail=-402620391, ErrorDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.CEj65s/extracted/myapp.app identifier = myapp type = 4> : 0xe8008019 (Application signature not valid)}
Dec 13 14:57:09 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 13 14:57:09 de-iPad lockdownd[26] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 13 14:57:09 de-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
 

I have no idea. Any suggestion ?

Can you post a screen shot of your Corona SDK build screen just before you press the “build” button.  Please do not blur out any fields.

Common causes:

UTF8 characters in the project name

Spaces in the project name

A folder icon on the project folder

A folder in your project named “res” or “resources”

Outputting your build to the project folder.

In 2511 we should be catching most of thesee.

Rob

I create another project with app id : com.peterhohsy.mygame and its provisioning profiles.

But I still got an error message “The applicaton does not have a valid signature” when I add myapp.app in Xcode > device after restarting Corona.

corona_build.jpg

You cannot directly put an app built with a distribution for the store profile on a device.  It can only be sent to iTunes connect.   If you want to put a distribution profile built app on a device directly, you have to use an “AdHoc” profile.  

Rob

I have created “AdHoc” profile and re-build it. But it still fails

corona_build2.png

Below is the error log in XCode > device

================================

Dec 14 11:28:12 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:12 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:12 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:12 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:12 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: LaunchServices: installing app for existing placeholder <LSApplicationProxy: 0x16d78e50> com.peterhohsy.mygame
Dec 14 11:28:12 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: LaunchServices: Not creating progress for <LSApplicationProxy: 0x16d78e50> com.peterhohsy.mygame since it is not a placeholder.
Dec 14 11:28:12 Siu-Yuens-iPad installd[37] <Notice>: 0x443000 -[MIClientConnection _doBackgroundInstallationForPath:withOptions:completion:]: Install of “/var/mobile/Media/PublicStaging/mygame.app” type Developer requested by streaming_zip_conduit (pid 216)
Dec 14 11:28:12 Siu-Yuens-iPad installd[37] <Notice>: 0x443000 -[MIInstaller performInstallationWithError:]: Installing <MIInstallableBundle ID=com.peterhohsy.mygame; Version=2014.12.141135, ShortVersion=1.0>
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such process
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 14 11:28:13 Siu-Yuens-iPad MobileStorageMounter[234] <Error>: 0x3b3f59dc Device-O-Matic: iterate_ancestors IORegistryEntryGetParentIterator failed: No such file or directory
Dec 14 11:28:13 Siu-Yuens-iPad profiled[76] <Notice>: (Note ) MC: Provisioning profiles changed
Dec 14 11:28:13 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:13 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:13 Siu-Yuens-iPad installd[37] <Error>:  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
Dec 14 11:28:13 Siu-Yuens-iPad installd[37] <Error>: 0x443000 -[MICodeSigningVerifier performValidationWithError:]: 186: Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid)
Dec 14 11:28:13 Siu-Yuens-iPad installd[37] <Error>: 0x443000 -[MIInstaller performInstallationWithError:]: Verification stage failed
Dec 14 11:28:13 Siu-Yuens-iPad streaming_zip_conduit[216] <Error>: 0x425000 __MobileInstallationInstallForLaunchServices_block_invoke240: Returned error Error Domain=MIInstallerErrorDomain Code=13 “Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid)” UserInfo=0x16d7b0c0 {LibMISErrorNumber=-402620391, LegacyErrorString=ApplicationVerificationFailed, FunctionName=-[MICodeSigningVerifier performValidationWithError:], NSLocalizedDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid), SourceFileLine=186}
Dec 14 11:28:13 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Dec 14 11:28:13 Siu-Yuens-iPad streaming_zip_conduit[216] <Warning>: __dispatch_source_read_socket_block_invoke:203: Failed to install application at file:///var/mobile/Media/PublicStaging/mygame.app/ : Error Domain=LaunchServicesError Code=0 “The operation couldn’t be completed. (LaunchServicesError error 0.)” UserInfo=0x16d72fc0 {Error=ApplicationVerificationFailed, ErrorDetail=-402620391, ErrorDescription=Failed to verify code signature of <MIExecutableBundle : path = /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.D5xbg8/extracted/mygame.app identifier = com.peterhohsy.mygame type = 4> : 0xe8008019 (Application signature not valid)}
Dec 14 11:28:13 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:13 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument
Dec 14 11:28:13 Siu-Yuens-iPad kernel[0] <Notice>: flow_divert_token_set (0): Failed to get the key unit from the token: 22
Dec 14 11:28:13 Siu-Yuens-iPad lockdownd[27] <Error>: Could not set socket option SO_OPPORTUNISTIC: Invalid argument

Any suggestions ?

Thanks !

Can you post your build.settings file?

Here it is  :


– For more information on build.settings see the Corona SDK Build Guide at:
http://docs.coronalabs.com/guide/distribution/buildSettings/index.html

settings =
{
    
    orientation =
    {
        – Supported values for orientation:
        – portrait, portraitUpsideDown, landscapeLeft, landscapeRight

        default = “portrait”,
        supported = { “portrait”, }
    },
    
    excludeFiles =
    {
        – Include only the necessary icon files on each platform
        iphone = { “Icon-*dpi.png”, },
        android = { “Icon.png”, “Icon-Small-*.png”, “Icon*@2x.png”, },
    },

    –
    – iOS Section
    –
    iphone =
    {
        plist =
        {
            UIStatusBarHidden = false,
            UIPrerenderedIcon = true, – set to false for “shine” overlay
            --UIApplicationExitsOnSuspend = true, – uncomment to quit app on suspend

            CFBundleIconFiles =
            {
                “Icon.png”,
                “Icon@2x.png”,
                “Icon-60.png”,
                “Icon-60@2x.png”,
                “Icon-60@3x.png”,
                “Icon-72.png”,
                “Icon-72@2x.png”,
                “Icon-76.png”,
                “Icon-76@2x.png”,
                “Icon-Small.png”,
                “Icon-Small@2x.png”,
                “Icon-Small@3x.png”,
                “Icon-Small-40.png”,
                “Icon-Small-40@2x.png”,
                “Icon-Small-50.png”,
                “Icon-Small-50@2x.png”,
            },

            --[[
            – iOS app URL schemes:
            CFBundleURLTypes =
            {
                {
                    CFBundleURLSchemes =
                    {
                        “fbXXXXXXXXX”,  – replace XXXXXXXXX with your Facebook appId
                    }
                }
            }
            --]]
        }
    },
    
    –
    – Android Section
    –
    android =
    {
        usesPermissions =
        {
            “android.permission.INTERNET”,
        },
    },
}