Error with Jenkins & Xcode / can't generate IPA File

Viewed 47

After generating the xcarchive, I have to generate the .IPA file so i'm using the following code:

xcodebuild -exportArchive 
-archivePath "$WORKSPACE/ios/App/$PROJECTNAME.xcarchive" 
-exportPath "$WORKSPACE/ios/App/$PROJECTNAME.ipa" 
-exportOptionsPlist "$WORKSPACE/ios/App/export.plist"

But it ended with this error:

2022-09-06 12:29:42.205 xcodebuild[2755:797683] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path "/var/folders/3t/z80f1v757qv_2zzptl08r6wr0000gn/T/App_2022-09-06_12-29-42.203.xcdistributionlogs".
2022-09-06 12:29:42.226 xcodebuild[2755:797683] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
2022-09-06 12:29:42.226 xcodebuild[2755:797683] [MT] IDEDistributionMethodManager: -[IDEDistributionMethodManager orderedDistributionMethodsForTask:archive:]: Error = Error Domain=IDEDistributionMethodManagerErrorDomain Code=2 "Unknown Distribution Error" UserInfo={NSLocalizedDescription=Unknown Distribution Error}
error: exportArchive: Found no compatible export methods for: <DVTFilePath:0x7ffbeaf3ebc0:'/Users/sdaae/datos_apl/jenkins-dsa/workspace/PLANTILLA_IOS_NEW/ios/App/App.xcarchive'>
Error Domain=IDEFoundationErrorDomain Code=1 "Found no compatible export methods for: <DVTFilePath:0x7ffbeaf3ebc0:'/Users/sdaae/datos_apl/jenkins-dsa/workspace/PLANTILLA_IOS_NEW/ios/App/App.xcarchive'>" UserInfo={NSLocalizedDescription=Found no compatible export methods for: <DVTFilePath:0x7ffbeaf3ebc0:'/Users/sdaae/datos_apl/jenkins-dsa/workspace/PLANTILLA_IOS_NEW/ios/App/App.xcarchive'>}

EXPORT FAILED

And after a lot of hours searching for a solution, with no results, i decided to create this post to see if anyone can help me. Thanks for your time.

0 Answers
Related