Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

“ExportOptions.plist” couldn’t be opened because there is no such file.”

We are trying to run the project using terminal instead of Xcode->Product->Archieve. We have completed the clean, build and archive successfully. When export .ipa I am getting this following error “The file “ExportOptions.plist” couldn’t be opened because there is no such file.”. When I surf in stack overflow I can’t get any idea about plist file.

For example: we have an app with the original name MyApp


xcodebuild clean -workspace MyApp.xcworkspace -scheme Development

xcodebuild build -workspace MyApp.xcworkspace -scheme Development

xcodebuild archive -workspace MyApp.xcworkspace -scheme Development -archivePath ~/Users/Desktop/SampleApp/MyApp.xcarchive

The above code works fine. When using the below line I am getting “ExportOptions.plist” error.





xcodebuild -exportArchive -archivePath ~/Users/Desktop/SampleApp/MyApp.xcarchive -exportPath ~/Users/Desktop/SampleApp/MyApp -exportOptionsPlist ~/Users/Desktop/SampleApp/ExportOptions.plist

My question is : 



  1. Do we need to create plist manually? I have exported the test flight build for the previous one. I have an “ExportOptions.plist” file with .ipa file. Do we need to move the ExportOptions.plist into the output folder?

  2. Do we need to create an output folder to export all .ipa and .plist? I have created “NewFolder” and tried it’s not working.
  3. Correct me if I am using the wrong path for archive path, export path and exportOptionsPlist
like image 546
HariKarthick Avatar asked Oct 16 '19 08:10

HariKarthick


People also ask

What is ExportOptions plist?

ExportOptions. plist is required in Xcode 9. It lets you to specify some options when you create an ipa file. You can select the options in a friendly UI when you use Xcode to archive your app.

How do I create an ipa file in Xcarchive?

Now you have to do below steps: Go to Window->Organiser->Archives Here, select your archive fine and click on "Distribute App" button on right side Then Instead of upload, select Export option, and continue selecting default options, it will end you up with generating ipa file.


1 Answers

ExportOptions.plist is required in Xcode 9. It lets you to specify some options when you create an ipa file. You can select the options in a friendly UI when you use Xcode to archive your app.

Follow this blog to generate one.

https://medium.com/@marksiu/how-to-build-ios-project-with-command-82f20fda5ec5

like image 98
Amit Avatar answered Oct 15 '22 21:10

Amit