Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: force archive iOS destination #1392

Merged
merged 1 commit into from
Jan 7, 2022
Merged

iOS: force archive iOS destination #1392

merged 1 commit into from
Jan 7, 2022

Conversation

syrykh
Copy link
Contributor

@syrykh syrykh commented Jan 6, 2022

Without destination being set, archive command fails on a M1 Mac:

# Creating archive...
# Run 'xcodebuild -alltargets -configuration Debug -scheme app -archivePath ".../.buildozer/ios/platform/kivy-ios/app-0.0.1.intermediates/app-0.0.1.xcarchive" archive ENABLE_BITCODE=NO DEVELOPMENT_TEAM=...'
# Cwd .../.buildozer/ios/platform/kivy-ios/app-ios
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -alltargets -configuration Debug -scheme app -archivePath .../.buildozer/ios/platform/kivy-ios/app-0.0.1.intermediates/app-0.0.1.xcarchive archive ENABLE_BITCODE=NO DEVELOPMENT_TEAM=...

User defaults from command line:
    IDEArchivePathOverride = .../.buildozer/ios/platform/kivy-ios/app-0.0.1.intermediates/app-0.0.1.xcarchive
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    DEVELOPMENT_TEAM = ...
    ENABLE_BITCODE = NO

--- xcodebuild: WARNING: Using the first of multiple matching destinations:
{ platform:macOS, arch:arm64, variant:Designed for [iPad,iPhone], id:... }
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
...
note: Using new build system
note: Planning
Analyze workspace

Create build description
Build description signature: ...
Build description path: .../XCBuildData/d7301a4741f170119807e5d6d2248f00-desc.xcbuild

note: Build preparation complete
note: Building targets in dependency order
error: Provisioning profile "iOS Team Provisioning Profile: ..." doesn't include the currently selected device "mac-m1-mini’s Mac mini" (identifier ...). (in target 'app' from project 'app')
** ARCHIVE FAILED **

@misl6 misl6 self-assigned this Jan 6, 2022
Copy link
Member

@misl6 misl6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you.
Will add a test for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants