Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Export Failed with Xcode 7 - No applicable devices found #104

Closed
natanrolnik opened this issue Sep 23, 2015 · 16 comments
Closed

Export Failed with Xcode 7 - No applicable devices found #104

natanrolnik opened this issue Sep 23, 2015 · 16 comments
Labels

Comments

@natanrolnik
Copy link

Hey Felix! I'm trying to export a lane that in previous Fastlane worked. I'm running fastlane v. 1.29.1 and gym 0.8.1.

I receive the following error:

2015-09-24 00:31:00.811 xcodebuild[52660:811706] [MT] IDEDistribution: Step failed: <IDEDistributionThinningStep: 0x7fda446c5d90>: Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo=0x7fda44b61b80 {NSLocalizedDescription=No applicable devices found.}
error: exportArchive: No applicable devices found.

Error Domain=IDEDistributionErrorDomain Code=14 "No applicable devices found." UserInfo=0x7fda44b61b80 {NSLocalizedDescription=No applicable devices found.}

Archive succeeds, but the export fails. I took a look here #89 and here #90 and tried some suggestions there, with no success.

Before updating from 1.28 to 1.29.1, I was having provisioning profile errors, and now this one.

Any ideas of what is causing this?

Thanks!

@KrauseFx
Copy link
Contributor

I assume this is an Ad Hoc profile? If you can't get it to work, you could try using the use_legacy_build_api option in gym to fall back to the old way of building + signing.

@natanrolnik
Copy link
Author

Indeed Ad Hoc.
Could you please tell me how I send this option to gym? The lane looks like the following:

def fabricAndNotify(notifications)
    sigh(adhoc: true)
    ENV["PROFILE_UDID"] = lane_context[SharedValues::SIGH_UDID]
    gym(scheme: "MyProj AdHoc", sdk: "iphoneos9.0")
    crashlytics(notifications: notifications)
end

@KrauseFx
Copy link
Contributor

gym(scheme: "MyProj AdHoc", sdk: "iphoneos9.0", use_legacy_build_api: true)

@natanrolnik
Copy link
Author

Great, using the use_legacy_build_api: true made it.

Do you know what causes it to fail when not using the legacy? I'll pay attention in the new releases, to know when to remove it.

@KrauseFx
Copy link
Contributor

Sorry, I don't know why - somehow it seems to verify the devices in your Ad Hoc profile...

@jlpiedrahita
Copy link

Try performing:

gem update

https://forums.developer.apple.com/message/75096#75096

@bassrock
Copy link

bassrock commented Nov 9, 2015

I had the same issue occurring with a development profile just recently. I think this has to do with devices being connected to the machine. As it works fine on my laptop, but not on our CI server that has a bunch of iOS devices connected.

@mAu888
Copy link

mAu888 commented Nov 13, 2015

gem update didn't work for me directly, but the hint to the dev forums helped. Running gem install CFPropertyList -v 2.3.2 did the trick.

@bassrock
Copy link

Ok interesting enough I use Bundler with fast lane. I added CFPropertyList and sqlite3 to my gem file and it instantly started working. My guess is the way fast lane works with bundler may be the issue.

@mcfedr
Copy link

mcfedr commented Nov 16, 2015

I found that the problem was caused because of how xcrun uses ruby gems, somehow it is using the system ruby but with rvm gems.

Much as I tried, the only solution I have so far it to run rvm use system and install and run fastlane using the system ruby.

@dugalp
Copy link

dugalp commented Nov 26, 2015

use_legacy_build_api: true

This worked for me, but wondering what side effects this will have if any.

@howie-misfit
Copy link

I am using gym 1.1.6(also gym 1.0.0)
Tried:

  1. use_legacy_build_api: true, works.
  2. Do not use_legacy_build_api,
    $ gem update
    $ gem outdated
    does not work.
  3. Do not use_legacy_build_api,
    $ gem install CFPropertyList
    does not work.
  4. Do not use_legacy_build_api,
    $ gem install CFPropertyList
    $ gem install sqlite3
    It works !

@dugalp
Copy link

dugalp commented Nov 30, 2015

Thanks for that response.

I actually had a different error which I solved with use_legacy_build_api, but not sure I like that solution. So I tried your suggestion of 'gem install CFPropertyList' and 'gem install sqlite3' anyway for giggles.

With or without the 2 gem install commands, I use use_legacy_build_api, and TA DA! fastlane/gym is successful!

Again, not sure what ramifications of using the legacy api would be, versus new one. If someone could elaborate as well as provide some clues for a fix (are we still waiting on Apple?) that would help.

I have taken caution to de-identify the company I work for. It took me a while to do this de-identification, hopefully it is going to help others as well.

Error is here:
Archive Succeeded
[11:27:11]: Successfully stored the archive. You can find it in the Xcode Organizer.
[11:27:11]: /usr/bin/xcrun xcodebuild -exportArchive -exportOptionsPlist '/tmp/gym_config_1448584031.plist' -archivePath '/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive' -exportPath '/tmp/1448584031'
2015-11-27 11:27:12.079 xcodebuild[9206:18311] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/t2/jntzlyqs5sd8yj72s2ldwb0c0000gn/T/myApp_2015-11-27_11-27-12.078.xcdistributionlogs'.
2015-11-27 11:27:12.635 xcodebuild[9206:18311] [MT] IDEDistribution: -[IDEDistributionProvisioning _itemToSigningInfoMap:]: Can't find any applicable signing identities for items: (
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp' '<DVTFilePath:ID_REMOVED:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app'>'>",
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp.watchkitapp' '<DVTFilePath:ID_REMOVED:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app/Watch/myApp WatchKit App.app'>'>",
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp.watchkitapp.watchkitextension' '<DVTFilePath:0x7fc068fc85e0:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app/Watch/myApp WatchKit App.app/PlugIns/myApp WatchKit Extension.appex'>'>",
"<IDEDistributionItem: 0xID_REMOVED '(null)' '<DVTFilePath:0x7fc06c2f7fb0:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app/Watch/myApp WatchKit App.app/_WatchKitStub/WK'>'>"
)
Errors={
"<DVTSigningCertificate: 0xID_REMOVED; name='iPhone Distribution: mycompany ', hash='LONG_HASH_ID_REMOVED', certificateKind='1.2.840.113635.100.6.1.4'>" = {
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp' '<DVTFilePath:ID_REMOVED:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app'>'>" = "Error Domain=DVTCodesignResolverErrorDomain Code=7 "No matching provisioning profiles found" UserInfo={NSLocalizedRecoverySuggestion=None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups, keychain-access-groups., NSLocalizedDescription=No matching provisioning profiles found, DVTCodesignResolverError_ResolutionInputsKey=<DVTCodesignResolutionInputs: 0xRemove_ID; portalTeamID='REMOVED_ID', usingTeamBasedSigning='NO', bundleIdentifier='enterprise.com.mycompany.mycompanymyApp', targetName='(null)', provisioningProfileType='1', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n "beta-reports-active" = 1;\n "com.apple.security.application-groups" = (\n "group.enterprise.com.mycompany.mycompanymyApp.watchAppGroup"\n );\n "keychain-access-groups" = (\n "MyTEAM_ID_REMOVED..",\n "MyTEAM_ID_REMOVED..enterprise.com.mycompany.mycompanymyApp"\n );\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp.watchkitapp' '<DVTFilePath:ID_REMOVED:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app/Watch/myApp WatchKit App.app'>'>" = "Error Domain=DVTCodesignResolverErrorDomain Code=7 "No matching provisioning profiles found" UserInfo={NSLocalizedRecoverySuggestion=None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups, keychain-access-groups., NSLocalizedDescription=No matching provisioning profiles found, DVTCodesignResolverError_ResolutionInputsKey=<DVTCodesignResolutionInputs: 0xRemoved_ID; portalTeamID='REMOVED_ID', usingTeamBasedSigning='NO', bundleIdentifier='enterprise.com.mycompany.mycompanymyApp.watchkitapp', targetName='(null)', provisioningProfileType='1', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n "beta-reports-active" = 1;\n "com.apple.security.application-groups" = (\n "group.enterprise.com.mycompany.mycompanymyApp.watchAppGroup"\n );\n "keychain-access-groups" = (\n "MyTEAM_ID_REMOVED..
",\n "MyTEAM_ID_REMOVED..enterprise.com.mycompany.mycompanymyApp"\n );\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp.watchkitapp.watchkitextension' '<DVTFilePath:0x7fc068fc85e0:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app/Watch/myApp WatchKit App.app/PlugIns/myApp WatchKit Extension.appex'>'>" = "Error Domain=DVTCodesignResolverErrorDomain Code=7 "No matching provisioning profiles found" UserInfo={NSLocalizedRecoverySuggestion=None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups, keychain-access-groups., NSLocalizedDescription=No matching provisioning profiles found, DVTCodesignResolverError_ResolutionInputsKey=<DVTCodesignResolutionInputs: 0xRemoved_ID; portalTeamID='REMOVED_ID', usingTeamBasedSigning='NO', bundleIdentifier='enterprise.com.mycompany.mycompanymyApp.watchkitapp.watchkitextension', targetName='(null)', provisioningProfileType='1', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n "beta-reports-active" = 1;\n "com.apple.security.application-groups" = (\n "group.enterprise.com.mycompany.mycompanymyApp.watchAppGroup"\n );\n "keychain-access-groups" = (\n "MyTEAM_ID_REMOVED..",\n "MyTEAM_ID_REMOVED..enterprise.com.mycompany.mycompanymyApp"\n );\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
};
}
2015-11-27 11:27:12.636 xcodebuild[9206:18311] [MT] IDEDistribution: Step failed: <IDEDistributionSigningAssetsStep: 0x7fc06c0534e0>: Error Domain=IDEDistributionErrorDomain Code=3 "(null)" UserInfo={IDEDistributionErrorSigningIdentityToItemToUnderlyingErrorKey={
"<DVTSigningCertificate: 0xID_REMOVED; name='iPhone Distribution: mycompany ', hash='LONG_HASH_ID_REMOVED', certificateKind='1.2.840.113635.100.6.1.4'>" = {
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp' '<DVTFilePath:ID_REMOVED:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app'>'>" = "Error Domain=DVTCodesignResolverErrorDomain Code=7 "No matching provisioning profiles found" UserInfo={NSLocalizedRecoverySuggestion=None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups, keychain-access-groups., NSLocalizedDescription=No matching provisioning profiles found, DVTCodesignResolverError_ResolutionInputsKey=<DVTCodesignResolutionInputs: 0xRemove_ID; portalTeamID='REMOVED_ID', usingTeamBasedSigning='NO', bundleIdentifier='enterprise.com.mycompany.mycompanymyApp', targetName='(null)', provisioningProfileType='1', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n "beta-reports-active" = 1;\n "com.apple.security.application-groups" = (\n "group.enterprise.com.mycompany.mycompanymyApp.watchAppGroup"\n );\n "keychain-access-groups" = (\n "MyTEAM_ID_REMOVED..
",\n "MyTEAM_ID_REMOVED..enterprise.com.mycompany.mycompanymyApp"\n );\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp.watchkitapp' '<DVTFilePath:ID_REMOVED:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app/Watch/myApp WatchKit App.app'>'>" = "Error Domain=DVTCodesignResolverErrorDomain Code=7 "No matching provisioning profiles found" UserInfo={NSLocalizedRecoverySuggestion=None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups, keychain-access-groups., NSLocalizedDescription=No matching provisioning profiles found, DVTCodesignResolverError_ResolutionInputsKey=<DVTCodesignResolutionInputs: 0xRemoved_ID; portalTeamID='REMOVED_ID', usingTeamBasedSigning='NO', bundleIdentifier='enterprise.com.mycompany.mycompanymyApp.watchkitapp', targetName='(null)', provisioningProfileType='1', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n "beta-reports-active" = 1;\n "com.apple.security.application-groups" = (\n "group.enterprise.com.mycompany.mycompanymyApp.watchAppGroup"\n );\n "keychain-access-groups" = (\n "MyTEAM_ID_REMOVED..",\n "MyTEAM_ID_REMOVED..enterprise.com.mycompany.mycompanymyApp"\n );\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
"<IDEDistributionItem: 0xID_REMOVED 'enterprise.com.mycompany.mycompanymyApp.watchkitapp.watchkitextension' '<DVTFilePath:0x7fc068fc85e0:'/Users/myuser/Library/Developer/Xcode/Archives/2015-11-27/myApp-Testing 2015-11-27 11.24.46.xcarchive/Products/Applications/myApp.app/Watch/myApp WatchKit App.app/PlugIns/myApp WatchKit Extension.appex'>'>" = "Error Domain=DVTCodesignResolverErrorDomain Code=7 "No matching provisioning profiles found" UserInfo={NSLocalizedRecoverySuggestion=None of the valid provisioning profiles allowed the specified entitlements: beta-reports-active, com.apple.security.application-groups, keychain-access-groups., NSLocalizedDescription=No matching provisioning profiles found, DVTCodesignResolverError_ResolutionInputsKey=<DVTCodesignResolutionInputs: 0xRemoved_ID; portalTeamID='REMOVED_ID', usingTeamBasedSigning='NO', bundleIdentifier='enterprise.com.mycompany.mycompanymyApp.watchkitapp.watchkitextension', targetName='(null)', provisioningProfileType='1', requiresProvisioningProfile='YES', provisioningProfilePlatform='iOS', certificateKind='1.2.840.113635.100.6.1.4', requiredEntitlements='{\n "beta-reports-active" = 1;\n "com.apple.security.application-groups" = (\n "group.enterprise.com.mycompany.mycompanymyApp.watchAppGroup"\n );\n "keychain-access-groups" = (\n "MyTEAM_ID_REMOVED..
",\n "MyTEAM_ID_REMOVED..enterprise.com.mycompany.mycompanymyApp"\n );\n}', requiredCodesignableDevices='(null)', requiredFeatures='(null)'>\n}";
};
}}
error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 3.)

@lacostej
Copy link
Contributor

lacostej commented Jan 9, 2016

For the record, that one is also linked to #168.

@lemonkey-medhelp
Copy link

@bassrock I added those two gems to my Gemfile and it resolved it for me as well.

@fastlanebot
Copy link

This issue was migrated to fastlane/fastlane#3184. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests