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

前端 未结 8 1394
被撕碎了的回忆
被撕碎了的回忆 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:21

    I suspected xcodebuild tool initially, but it turned out the archive file was invaid. When I opened the archive file in Xcode and tried to export an ipa file manually, I noticed that "Upload to App Store" and "Validate" buttons were disabled. After clicking the "Export" button, it gave me two options: "Save Built Products" and "Export as an Xcode Archive", but there was no Export ad-hoc distribution and the other regular options.

    It turned out there were few library files along my .app file in the archive. Xcode considers this a generic archive and not an app archive. Check the Build Phases in your project settings for copying header and library files.

    For more details, see https://developer.apple. com/library/ios/technotes/tn2215/_index.html

提交回复
热议问题