kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.75k stars 503 forks source link

[iOS] build fails with xcodebuild: error: invalid option '-archivePath' (XCode 15.4 iOS 17.5). #1808

Open cederom opened 6 months ago

cederom commented 6 months ago

Versions

Description

buildozer.spec

Command:

buildozer ios release
buildozer ios debug

Spec file:

#
# iOS specific
#
#ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = v2024.03.17
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.12.2
ios.codesign.allowed = true
ios.codesign.debug = "Apple Development: BLAH (BLAH)"
ios.codesign.development_team.debug = BLAH
ios.codesign.release = %(ios.codesign.debug)s
ios.codesign.development_team.release = %(ios.codesign.development_team.debug)s

#ios.manifest.app_url =
#ios.manifest.display_image_url =
#ios.manifest.full_size_image_url =

Logs

(venv) buildozer ios release deploy run
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Run ['security', 'find-identity', '-v', '-p', 'codesigning']
# Cwd None
  1) BLAH "Apple Development: BLAH (BLAH)"
  2) BLAH "Apple Development: BLAH (BLAH)"
  3) BLAH "Apple Development: BLAH (BLAH)"
     3 valid identities found
# Preparing build
# Check requirements for ios
# Search for Xcode xcodebuild
#  -> found at /usr/bin/xcodebuild
# Search for Xcode xcode-select
#  -> found at /usr/bin/xcode-select
# Search for Git git
#  -> found at /opt/homebrew/Cellar/git/2.45.1/bin/git
# Search for Cython cython
#  -> found at /Users/BLAH/venv/bin/cython
# Search for pkg-config
#  -> found at /opt/homebrew/Cellar/pkg-config/0.29.2_3/bin/pkg-config
# Search for autoconf
#  -> found at /opt/homebrew/Cellar/autoconf/2.72/bin/autoconf
# Search for automake
#  -> found at /opt/homebrew/Cellar/automake/1.16.5/bin/automake
# Search for libtool
#  -> found at /usr/bin/libtool
# Check availability of a iPhone SDK
# Run 'xcodebuild -showsdks | fgrep "iphoneos" |tail -n 1 | awk \'{print $2}\''
# Cwd None
17.5
#  -> found '17.5\n'
# Check Xcode path
# Run ['xcode-select', '-print-path']
# Cwd None
/Applications/Xcode.app/Contents/Developer
#  -> found /Applications/Xcode.app/Contents/Developer

# Install platform

(..)

--
Project BLAH/BLAH.xcodeproj/project.pbxproj updated
# Captured version: BLAH
# Update Plist BLAH-Info.plist

(..)

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -configuration Release -allowProvisioningUpdates ENABLE_BITCODE=NO CODE_SIGNING_ALLOWED=YES DEVELOPMENT_TEAM=BLAH clean build

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
    CODE_SIGNING_ALLOWED = YES
    DEVELOPMENT_TEAM = BLAH
    ENABLE_BITCODE = NO

** CLEAN SUCCEEDED **

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (1 target)
    Target 'BLAH' in project 'BLAH' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

(..)

sent 14954683 bytes  received 28208 bytes  9988594.00 bytes/sec
total size is 77192156  speedup is 5.15

WriteAuxiliaryFile /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/build/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    write-file /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/build/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh

(..)

WriteAuxiliaryFile /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/build/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    write-file /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/build/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh

PhaseScriptExecution Run\ Script /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/build/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh (in target 'BLAH' from project 'BLAH')

(..)

** BUILD SUCCEEDED **

# Remove directory and subdirectory /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates
# Creating archive...
# Run ['xcodebuild', '-alltargets', '-configuration', 'Release', '-scheme', 'BLAH', '-archivePath', '/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates/BLAH-BLAH.xcarchive', '-destination', 'generic/platform=iOS', 'archive', 'ENABLE_BITCODE=NO', 'CODE_SIGNING_ALLOWED=YES', 'DEVELOPMENT_TEAM=BLAH']
# Cwd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -alltargets -configuration Release -scheme BLAH -archivePath /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates/BLAH-BLAH.xcarchive -destination generic/platform=iOS archive ENABLE_BITCODE=NO CODE_SIGNING_ALLOWED=YES DEVELOPMENT_TEAM=BLAH

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

Build settings from command line:
    CODE_SIGNING_ALLOWED = YES
    DEVELOPMENT_TEAM = BLAH
    ENABLE_BITCODE = NO

Prepare packages

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (1 target)
    Target 'BLAH' in project 'BLAH' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription

ExecuteExternalTool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -v -E -dM -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.5.sdk -x objective-c -c /dev/null

(..)

WriteAuxiliaryFile /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    write-file /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh

PhaseScriptExecution Run\ Script /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    export ACTION\=install

(..)

    /bin/sh -c /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Script-BLAH.sh

GenerateAssetSymbols /Users/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/BLAH/Images.xcassets (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios

(..)

CompileC /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Objects-normal/arm64/main.o /UBLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -ivfsstatcache /Users/BLAH/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos17.5-BLAH.sdkstatcache -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fno-color-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-implicit-atomic-properties -Wno-objc-interface-ivars -Wno-arc-repeated-use-of-weak -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wno-implicit-fallthrough -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body @/Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Objects-normal/arm64/BLAH-common-args.resp -MMD -MT dependencies -MF /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Objects-normal/arm64/main.d --serialize-diagnostics /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Objects-normal/arm64/main.dia -c /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m -o /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/Objects-normal/arm64/main.o
/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m:67:5: warning: 'PySys_SetArgv' is deprecated [-Wdeprecated-declarations]
    PySys_SetArgv(argc, python_argv);
    ^
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m:8:
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/Python.h:96:
/BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/sysmodule.h:13:1: note: 'PySys_SetArgv' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetArgv(int, wchar_t **);
^
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m:8:
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/Python.h:38:
/BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m:70:5: warning: 'PyEval_InitThreads' is deprecated [-Wdeprecated-declarations]
    PyEval_InitThreads();
    ^
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m:8:
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/Python.h:95:
/BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/ceval.h:132:1: note: 'PyEval_InitThreads' has been explicitly marked deprecated here
Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
^
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/main.m:8:
In file included from /BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/Python.h:38:
/BLAH/.buildozer/ios/platform/kivy-ios/dist/root/python3/include/python3.11/pyport.h:336:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
                                                     ^
2 warnings generated.

LinkStoryboards (in target 'BLAH' from project 'BLAH')

(..)

CodeSign /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios

    Signing Identity:     "Apple Development: BLAH (BLAH)"
    Provisioning Profile: "iOS Team Provisioning Profile: BLAH"
                          (BLAH)

    /usr/bin/codesign --force --sign BLAH --entitlements /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/IntermediateBuildFilesPath/BLAH.build/Release-iphoneos/BLAH.build/BLAH.app.xcent --generate-entitlement-der /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app

RegisterExecutionPolicyException /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    builtin-RegisterExecutionPolicyException /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app

Validate /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    builtin-validationUtility /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app -validate-for-store

Touch /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app (in target 'BLAH' from project 'BLAH')
    cd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
    /usr/bin/touch -c /Users/BLAH/Library/Developer/Xcode/DerivedData/BLAH-BLAH/Build/Intermediates.noindex/ArchiveIntermediates/BLAH/InstallationBuildProductsLocation/Applications/BLAH.app

/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/BLAH.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 17.5.99. (in target 'BLAH' from project 'BLAH')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BLAH' from project 'BLAH')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BLAH' from project 'BLAH')
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'BLAH' from project 'BLAH')
** ARCHIVE SUCCEEDED **

# Creating IPA...
# Run ['xcodebuild', '-exportArchive', '-archivePath "/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates/BLAH-BLAH.xcarchive"', '-exportOptionsPlist "/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/BLAH-Info.plist"', '-exportPath "/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates/BLAH-BLAH.ipa"', 'CODE_SIGN_IDENTITY="Apple Development: BLAH (BLAH)"', 'ENABLE_BITCODE=NO']
# Cwd /BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios
2024-05-24 22:09:09.538 xcodebuild[30408:505708] Writing error result bundle to /var/folders/gh/BLAH/T/ResultBundle_2024-24-05_22-09-0009.xcresult
xcodebuild: error: invalid option '-archivePath "/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates/BLAH-BLAH.xcarchive"'

Usage: xcodebuild [-project <projectname>] [[-target <targetname>]...|-alltargets] [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [-showBuildSettings [-json]] [<buildsetting>=<value>]... [<buildaction>]...
       xcodebuild [-project <projectname>] -scheme <schemeName> [-destination <destinationspecifier>]... [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [-showBuildSettings [-json]] [-showdestinations] [<buildsetting>=<value>]... [<buildaction>]...
       xcodebuild -workspace <workspacename> -scheme <schemeName> [-destination <destinationspecifier>]... [-configuration <configurationname>] [-arch <architecture>]... [-sdk [<sdkname>|<sdkpath>]] [-showBuildSettings] [-showdestinations] [<buildsetting>=<value>]... [<buildaction>]...
       xcodebuild -version [-sdk [<sdkfullpath>|<sdkname>] [-json] [<infoitem>] ]
       xcodebuild -list [[-project <projectname>]|[-workspace <workspacename>]] [-json]
       xcodebuild -showsdks [-json]
       xcodebuild -exportArchive -archivePath <xcarchivepath> [-exportPath <destinationpath>] -exportOptionsPlist <plistpath>
       xcodebuild -exportNotarizedApp -archivePath <xcarchivepath> -exportPath <destinationpath>
       xcodebuild -exportLocalizations -localizationPath <path> -project <projectname> [-defaultLanguage <language>] [-exportLanguage <targetlanguage>... [-includeScreenshots]]
       xcodebuild -importLocalizations -localizationPath <path> -project <projectname> [-mergeImport]
       xcodebuild -resolvePackageDependencies [-project <projectname>|-workspace <workspacename>] -clonedSourcePackagesDirPath <path>
       xcodebuild -create-xcframework [-help] [-framework <path>] [-library <path> [-headers <path>]] -output <path>

Options:
    -usage                                                   print brief usage
    -help                                                    print complete usage
    -verbose                                                 provide additional status output
    -license                                                 show the Xcode and SDK license agreements
    -checkFirstLaunchStatus                                  Check if any First Launch tasks need to be performed
    -runFirstLaunch                                          install packages and agree to the license
    -downloadAllPlatforms                                    download all platforms
    -downloadPlatform NAME                                   download the platform NAME
    -project NAME                                            build the project NAME
    -target NAME                                             build the target NAME
    -alltargets                                              build all targets
    -workspace NAME                                          build the workspace NAME
    -scheme NAME                                             build the scheme NAME
    -configuration NAME                                      use the build configuration NAME for building each target
    -xcconfig PATH                                           apply the build settings defined in the file at PATH as overrides
    -arch ARCH                                               build each target for the architecture ARCH; this will override architectures defined in the project
    -sdk SDK                                                 use SDK as the name or path of the base SDK when building the project
    -toolchain NAME                                          use the toolchain with identifier or name NAME
    -destination DESTINATIONSPECIFIER                        use the destination described by DESTINATIONSPECIFIER (a comma-separated set of key=value pairs describing the destination to use)
    -destination-timeout TIMEOUT                             wait for TIMEOUT seconds while searching for the destination device
    -parallelizeTargets                                      build independent targets in parallel
    -jobs NUMBER                                             specify the maximum number of concurrent build operations
    -maximum-concurrent-test-device-destinations NUMBER      the maximum number of device destinations to test on concurrently
    -maximum-concurrent-test-simulator-destinations NUMBER   the maximum number of simulator destinations to test on concurrently
    -parallel-testing-enabled YES|NO                         overrides the per-target setting in the scheme
    -parallel-testing-worker-count NUMBER                    the exact number of test runners that will be spawned during parallel testing
    -maximum-parallel-testing-workers NUMBER                 the maximum number of test runners that will be spawned during parallel testing
    -dry-run                                                 do everything except actually running the commands
    -quiet                                                   do not print any output except for warnings and errors
    -hideShellScriptEnvironment                              don't show shell script environment variables in build log
    -showsdks                                                display a compact list of the installed SDKs
    -showdestinations                                        display a list of destinations
    -showTestPlans                                           display a list of test plans
    -showBuildSettings                                       display a list of build settings and values
    -showBuildSettingsForIndex                               display build settings for the index service
    -list                                                    lists the targets and configurations in a project, or the schemes in a workspace
    -find-executable NAME                                    display the full path to executable NAME in the provided SDK and toolchain
    -find-library NAME                                       display the full path to library NAME in the provided SDK and toolchain
    -version                                                 display the version of Xcode; with -sdk will display info about one or all installed SDKs
    -enableAddressSanitizer YES|NO                           turn the address sanitizer on or off
    -enableThreadSanitizer YES|NO                            turn the thread sanitizer on or off
    -enableUndefinedBehaviorSanitizer YES|NO                 turn the undefined behavior sanitizer on or off
    -resultBundlePath PATH                                   specifies the directory where a result bundle describing what occurred will be placed
    -resultStreamPath PATH                                   specifies the file where a result stream will be written to (the file must already exist)
    -resultBundleVersion 3 [default]                         specifies which result bundle version should be used
    -clonedSourcePackagesDirPath PATH                        specifies the directory to which remote source packages are fetch or expected to be found
    -derivedDataPath PATH                                    specifies the directory where build products and other derived data will go
    -archivePath PATH                                        specifies the directory where any created archives will be placed, or the archive that should be exported
    -exportArchive                                           specifies that an archive should be exported
    -exportNotarizedApp                                      export an archive that has been notarized by Apple
    -exportOptionsPlist PATH                                 specifies a path to a plist file that configures archive exporting
    -enableCodeCoverage YES|NO                               turn code coverage on or off when testing
    -exportPath PATH                                         specifies the destination for the product exported from an archive
    -skipUnavailableActions                                  specifies that scheme actions that cannot be performed should be skipped instead of causing a failure
    -exportLocalizations                                     exports completed and outstanding project localizations
    -importLocalizations                                     imports localizations for a project, assuming any necessary localized resources have been created in Xcode
    -localizationPath                                        specifies a path to XLIFF localization files
    -exportLanguage                                          specifies multiple optional ISO 639-1 languages included in a localization export
    -defaultLanguage                                         specifies the default ISO 639-1 language to be used as the source language on export
    -xctestrun                                               specifies a path to a test run specification
    -testProductsPath                                        specifies a path for the test products
    -enablePerformanceTestsDiagnostics YES|NO                enables performance trace and memgraph collection for performance XCTests
    -testPlan                                                specifies the name of the test plan associated with the scheme to use for testing
    -only-testing                                            constrains testing by specifying tests to include, and excluding other tests
    -only-testing:TEST-IDENTIFIER                            constrains testing by specifying tests to include, and excluding other tests
    -skip-testing                                            constrains testing by specifying tests to exclude, but including other tests
    -skip-testing:TEST-IDENTIFIER                            constrains testing by specifying tests to exclude, but including other tests
    -test-timeouts-enabled YES|NO                            enable or disable test timeout behavior
    -default-test-execution-time-allowance SECONDS           the default execution time an individual test is given to execute, if test timeouts are enabled
    -maximum-test-execution-time-allowance SECONDS           the maximum execution time an individual test is given to execute, regardless of the test's preferred allowance
    -test-iterations <number>                                If specified, tests will run <number> times. May be used in conjunction with either -retry-tests-on-failure or -run-tests-until-failure, in which case this will become the maximum number of iterations.
    -retry-tests-on-failure                                  If specified, tests will retry on failure. May be used in conjunction with -test-iterations <number>, in which case <number> will be the maximum number of iterations. Otherwise, a maximum of 3 is assumed. May not be used with -run-tests-until-failure.
    -run-tests-until-failure                                 If specified, tests will run until they fail. May be used in conjunction with -test-iterations <number>, in which case <number> will be the maximum number of iterations. Otherwise, a maximum of 100 is assumed. May not be used with -retry-tests-on-failure.
    -test-repetition-relaunch-enabled YES|NO                 Enable or disable, tests repeating in a new process for each repetition.  Must be used in conjunction with -test-iterations, -retry-tests-on-failure, or -run-tests-until-failure. If not specified, tests will repeat in the same process.
    -only-test-configuration                                 constrains testing by specifying test configurations to include, and excluding other test configurations
    -skip-test-configuration                                 constrains testing by specifying test configurations to exclude, but including other test configurations
    -collect-test-diagnostics on-failure|never               Whether or not testing collects verbose diagnostics (like a sysdiagnose) when encountering a failure
    -testLanguage                                            constrains testing by specifying ISO 639-1 language in which to run the tests
    -testRegion                                              constrains testing by specifying ISO 3166-1 region in which to run the tests
    -enumerate-tests                                         Enumerate the tests that would be executed by this command without actually executing them
    -test-enumeration-style                                  The style in which to enumerate the tests. Valid styles: flat, hierarchical
    -test-enumeration-format                                 The output format of the enumerated tests. Valid formats: text, json
    -test-enumeration-output-path                            The path (relative or absolute) where the results of test enumeration should be written. If '-' is supplied, writes to standard out.
    -resolvePackageDependencies                              resolves any Swift package dependencies referenced by the project or workspace
    -disableAutomaticPackageResolution                       prevents packages from automatically being resolved to versions other than those recorded in the `Package.resolved` file
    -onlyUsePackageVersionsFromResolvedFile                  prevents packages from automatically being resolved to versions other than those recorded in the `Package.resolved` file
    -skipPackageUpdates                                      Skip updating package dependencies from their remote
    -disablePackageRepositoryCache                           disable use of a local cache of remote package repositories
    -skipPackagePluginValidation                             Skip validation of package plugins (this can be a security risk if they are not from trusted sources)
    -skipMacroValidation                                     Skip validation of macros (this can be a security risk if they are not from trusted sources)
    -packageCachePath                                        path of caches used for package support
    -defaultPackageRegistryURL                               URL of the default package registry
    -packageDependencySCMToRegistryTransformation            specifies the transformation to apply to SCM-based package dependencies (none, useRegistryIdentity, or useRegistryIdentityAndSources)
    -skipPackageSignatureValidation                          Skip validation of package signatures (this can be a security risk if they are not from trusted sources)
    -packageFingerprintPolicy                                Package fingerprint checking policy (`warn` or `strict`)
    -packageSigningEntityPolicy                              Package signing entity checking policy (`warn` or `strict`)
    -json                                                    output as JSON (note: -json implies -quiet)
    -allowProvisioningUpdates                                Allow xcodebuild to communicate with the Apple Developer website. For automatically signed targets, xcodebuild will create and update profiles, app IDs, and certificates. For manually signed targets, xcodebuild will download missing or updated provisioning profiles. Requires a developer account to have been added in Xcode's Accounts settings or an App Store Connect authentication key to be specified via the -authenticationKeyPath, -authenticationKeyID, and -authenticationKeyIssuerID parameters.
    -allowProvisioningDeviceRegistration                     Allow xcodebuild to register your destination device on the developer portal if necessary. This flag only takes effect if -allowProvisioningUpdates is also passed.
    -authenticationKeyPath                                   specifies the path to an authentication key issued by App Store Connect. If specified, xcodebuild will authenticate with the Apple Developer website using this credential. The -authenticationKeyID and -authenticationKeyIssuerID parameters are required.
    -authenticationKeyID                                     specifies the key identifier associated with the App Store Conect authentication key at -authenticationKeyPath. This string can be located in the users and access details for your provider at "https://appstoreconnect.apple.com".
    -authenticationKeyIssuerID                               specifies the App Store Connect issuer identifier associated with the authentication key at -authenticationKeyPath. This string can be located in the users and access details for your provider at "https://appstoreconnect.apple.com".
    -scmProvider                                             which implementation to use for Git operations (system/xcode)
    -showBuildTimingSummary                                  display a report of the timings of all the commands invoked during the build
    -create-xcframework                                      create an xcframework from prebuilt libraries; -help for more information.
# Command failed: ['xcodebuild', '-exportArchive', '-archivePath "/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates/BLAH-BLAH.xcarchive"', '-exportOptionsPlist "/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-ios/BLAH-Info.plist"', '-exportPath "/BLAH/.buildozer/ios/platform/kivy-ios/BLAH-BLAH.intermediates/BLAH-BLAH.ipa"', 'CODE_SIGN_IDENTITY="Apple Development: BLAH (BLAH)"', 'ENABLE_BITCODE=NO']
cederom commented 5 months ago

Hmm this is strange as running that command by hand works fine! o_O

xcodebuild -exportArchive -archivePath "/Users/XXX/.buildozer/ios/platform/kivy-ios/XXX-XXX.intermediates/XXX-XXX.xcarchive"  -exportOptionsPlist "/Users/XXX/.buildozer/ios/platform/kivy-ios/XXX-ios/XXX-Info.plist" -exportPath "/Users/XXX/.buildozer/ios/platform/kivy-ios/XXX-XXX.intermediates/XXX-XXX.ipa" CODE_SIGN_IDENTITY="Apple Development: XXX (XXX)" ENABLE_BITCODE=NO

2024-05-28 02:33:23.358 xcodebuild[2322:89250] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/gh/XXX/T/XXX_2024-05-28_02-33-23.357.xcdistributionlogs".
2024-05-28 02:33:23.952 xcodebuild[2322:89250] [MT] IDEDistribution: Command line name "development" is deprecated. Use "debugging" instead.
Exported XXX to: /Users/XXX/.buildozer/ios/platform/kivy-ios/XXX-XXX.intermediates/XXX-XXX.ipa
** EXPORT SUCCEEDED **
misl6 commented 5 months ago

Yeah, I guess it changed. Let's keep the issue open!