xcodebuild -exportArchive: exportOptionsPlist error for key 'method': expected one of {}

前端 未结 8 1418
被撕碎了的回忆
被撕碎了的回忆 2020-12-28 12:23

I\'m using command line xcodebuild tool to export ad-hoc distribution ipa file out of my archive like this:

xcodebuild -exportArchive -archivePath /path/Arch         


        
8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-28 13:11

    I had this issue in one of my projects. After updating Cocoapods from 0.38.2 to 0.39.0 it was gone.

    Also, I had a different related issue. Exporting was failing with the following error:

    2015-10-22 17:16:12.568 xcodebuild[91172:2171408] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/_l/2rl169m16p717gzldvh7n0600000gq/T/MyDriveEU_2015-10-22_17-16-12.568.xcdistributionlogs'.
    2015-10-22 17:16:12.860 xcodebuild[91172:2171408] [MT] IDEDistribution: Step failed: : Error Domain=IDEDistributionErrorDomain Code=1 "The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)"
    error: exportArchive: The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)
    
    Error Domain=IDEDistributionErrorDomain Code=1 "The operation couldn’t be completed. (IDEDistributionErrorDomain error 1.)"
    
    ** EXPORT FAILED **
    

    It turned out that xcodebuild didn't like teamID parameter I added to the exportOptions.plist. After I removed it, the app was exported successfully.

提交回复
热议问题