Search code examples
iosobjective-cxcodeipacodesign

Failed to locate or generate matching singing assets:When i'm triyng to generate ad hoc ipa


Anyone can help me.Actually i'm 6 month kid for ios app development,this is my first app to submit in appstore.When i'm trying to generate the ad_hoc distribution IPA,it shows error(as like the below screenshot).But for appstore IPA generated successfully,i'm so confused.....what a magic this!

enter image description here

I have tried the follwing things To solve this problem:

1.Deleted all my mac keychain certificates.
2.Delete all xcode caches and and provisioning profiles and also deleted the developer account from xcode.

and restarted my mac... then,

1.Reinstalled the certifcates in keychain from exported .P12 from another mac

2.login in xcode preferences accounts tab.... and refresh it. it downlods all provisioning profiles from my developer account.

Status: Not working,still the same issue....all of another projects of my mac and appstore ipa too.

Even i have generated new developer certificate and updated all my project provisioning profiles.still have the same issue...,then try with it new bundle id and new provisioning profiles..i can't got it!

Bcoz of this problem i can't generete ipa for allof another app from my mac..for this issue i wasted entirely 2 working days.totally disturbed.....

Once i solve this then only i can sleep well.pls help me ,thanks in advance to you....


Solution

  • I was having same trouble few weeks back. Though I haven't yet figured out the exact issue behind it but I found that exporting an .ipa file via commandline works.

    1. Archive your project using your desired build settings.
    2. Locate the .xarchive file in finder (DON'T follow the usual procedure from this point).
    3. Copy it and paste it to your project directory (Where your .xcodeproj file is). (Though I usually rename it to remove all the spaces from the name as well)
    4. cd to your project directory in terminal
    5. Run following Command:

    xcodebuild -exportArchive  -archivePath  YourArchiveName.xcarchive -exportPath YourIpaName.ipa   -exportFormat ipa -exportProvisioningProfile YOUR_PROVISION_PROFILE_NAME
    

    Your .ipa file will be generated in your project directory. Use it as you will.

    For example if My archive name was mySillyApp and I wanted to create an ad hoc ipa from it named mySillyApp with provisioning profile named MySillyProfile, I'd run it like this

    xcodebuild -exportArchive  -archivePath  mySillyApp.xcarchive -exportPath mySillyApp.ipa   -exportFormat ipa -exportProvisioningProfile MySillyProfile
    

    NOTE: Even though this doesn't fix the issue of xcode but it gets the ipa. Just thought it would help someone looking for a quick way to get the ad hoc build, who doesn't have the time to figure out what's wrong with Xcode.